@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.
Files changed (114) hide show
  1. package/README.md +155 -0
  2. package/dist/apis/AccountsApi.d.ts +41 -0
  3. package/dist/apis/AccountsApi.js +100 -0
  4. package/dist/apis/ChatsApi.d.ts +105 -0
  5. package/dist/apis/ChatsApi.js +289 -0
  6. package/dist/apis/HealthApi.d.ts +28 -0
  7. package/dist/apis/HealthApi.js +61 -0
  8. package/dist/apis/MessagesApi.d.ts +34 -0
  9. package/dist/apis/MessagesApi.js +80 -0
  10. package/dist/apis/ServiceTokensApi.d.ts +81 -0
  11. package/dist/apis/ServiceTokensApi.js +209 -0
  12. package/dist/apis/TagsApi.d.ts +28 -0
  13. package/dist/apis/TagsApi.js +61 -0
  14. package/dist/apis/index.d.ts +6 -0
  15. package/dist/apis/index.js +24 -0
  16. package/dist/esm/apis/AccountsApi.d.ts +41 -0
  17. package/dist/esm/apis/AccountsApi.js +96 -0
  18. package/dist/esm/apis/ChatsApi.d.ts +105 -0
  19. package/dist/esm/apis/ChatsApi.js +285 -0
  20. package/dist/esm/apis/HealthApi.d.ts +28 -0
  21. package/dist/esm/apis/HealthApi.js +57 -0
  22. package/dist/esm/apis/MessagesApi.d.ts +34 -0
  23. package/dist/esm/apis/MessagesApi.js +76 -0
  24. package/dist/esm/apis/ServiceTokensApi.d.ts +81 -0
  25. package/dist/esm/apis/ServiceTokensApi.js +205 -0
  26. package/dist/esm/apis/TagsApi.d.ts +28 -0
  27. package/dist/esm/apis/TagsApi.js +57 -0
  28. package/dist/esm/apis/index.d.ts +6 -0
  29. package/dist/esm/apis/index.js +8 -0
  30. package/dist/esm/index.d.ts +3 -0
  31. package/dist/esm/index.js +5 -0
  32. package/dist/esm/models/Account.d.ts +50 -0
  33. package/dist/esm/models/Account.js +55 -0
  34. package/dist/esm/models/Chat.d.ts +112 -0
  35. package/dist/esm/models/Chat.js +84 -0
  36. package/dist/esm/models/ChatRequest.d.ts +38 -0
  37. package/dist/esm/models/ChatRequest.js +45 -0
  38. package/dist/esm/models/CreateAccountRequest.d.ts +32 -0
  39. package/dist/esm/models/CreateAccountRequest.js +43 -0
  40. package/dist/esm/models/CreateChatRequest.d.ts +32 -0
  41. package/dist/esm/models/CreateChatRequest.js +41 -0
  42. package/dist/esm/models/CreateTokenRequest.d.ts +52 -0
  43. package/dist/esm/models/CreateTokenRequest.js +58 -0
  44. package/dist/esm/models/CreateTokenResponse.d.ts +50 -0
  45. package/dist/esm/models/CreateTokenResponse.js +55 -0
  46. package/dist/esm/models/HealthCheck.d.ts +39 -0
  47. package/dist/esm/models/HealthCheck.js +49 -0
  48. package/dist/esm/models/Message.d.ts +63 -0
  49. package/dist/esm/models/Message.js +64 -0
  50. package/dist/esm/models/MessagePartsInner.d.ts +38 -0
  51. package/dist/esm/models/MessagePartsInner.js +43 -0
  52. package/dist/esm/models/ModelError.d.ts +32 -0
  53. package/dist/esm/models/ModelError.js +43 -0
  54. package/dist/esm/models/PaginatedChats.d.ts +39 -0
  55. package/dist/esm/models/PaginatedChats.js +48 -0
  56. package/dist/esm/models/PaginatedMessages.d.ts +39 -0
  57. package/dist/esm/models/PaginatedMessages.js +48 -0
  58. package/dist/esm/models/ServiceToken.d.ts +70 -0
  59. package/dist/esm/models/ServiceToken.js +70 -0
  60. package/dist/esm/models/Tag.d.ts +38 -0
  61. package/dist/esm/models/Tag.js +47 -0
  62. package/dist/esm/models/UpdateChatRequest.d.ts +32 -0
  63. package/dist/esm/models/UpdateChatRequest.js +41 -0
  64. package/dist/esm/models/UpdateTokenRequest.d.ts +32 -0
  65. package/dist/esm/models/UpdateTokenRequest.js +43 -0
  66. package/dist/esm/models/UpdateTokenResponse.d.ts +50 -0
  67. package/dist/esm/models/UpdateTokenResponse.js +55 -0
  68. package/dist/esm/models/index.d.ts +18 -0
  69. package/dist/esm/models/index.js +20 -0
  70. package/dist/esm/runtime.d.ts +184 -0
  71. package/dist/esm/runtime.js +334 -0
  72. package/dist/index.d.ts +3 -0
  73. package/dist/index.js +21 -0
  74. package/dist/models/Account.d.ts +50 -0
  75. package/dist/models/Account.js +62 -0
  76. package/dist/models/Chat.d.ts +112 -0
  77. package/dist/models/Chat.js +92 -0
  78. package/dist/models/ChatRequest.d.ts +38 -0
  79. package/dist/models/ChatRequest.js +52 -0
  80. package/dist/models/CreateAccountRequest.d.ts +32 -0
  81. package/dist/models/CreateAccountRequest.js +50 -0
  82. package/dist/models/CreateChatRequest.d.ts +32 -0
  83. package/dist/models/CreateChatRequest.js +48 -0
  84. package/dist/models/CreateTokenRequest.d.ts +52 -0
  85. package/dist/models/CreateTokenRequest.js +66 -0
  86. package/dist/models/CreateTokenResponse.d.ts +50 -0
  87. package/dist/models/CreateTokenResponse.js +62 -0
  88. package/dist/models/HealthCheck.d.ts +39 -0
  89. package/dist/models/HealthCheck.js +57 -0
  90. package/dist/models/Message.d.ts +63 -0
  91. package/dist/models/Message.js +71 -0
  92. package/dist/models/MessagePartsInner.d.ts +38 -0
  93. package/dist/models/MessagePartsInner.js +50 -0
  94. package/dist/models/ModelError.d.ts +32 -0
  95. package/dist/models/ModelError.js +50 -0
  96. package/dist/models/PaginatedChats.d.ts +39 -0
  97. package/dist/models/PaginatedChats.js +55 -0
  98. package/dist/models/PaginatedMessages.d.ts +39 -0
  99. package/dist/models/PaginatedMessages.js +55 -0
  100. package/dist/models/ServiceToken.d.ts +70 -0
  101. package/dist/models/ServiceToken.js +78 -0
  102. package/dist/models/Tag.d.ts +38 -0
  103. package/dist/models/Tag.js +54 -0
  104. package/dist/models/UpdateChatRequest.d.ts +32 -0
  105. package/dist/models/UpdateChatRequest.js +48 -0
  106. package/dist/models/UpdateTokenRequest.d.ts +32 -0
  107. package/dist/models/UpdateTokenRequest.js +50 -0
  108. package/dist/models/UpdateTokenResponse.d.ts +50 -0
  109. package/dist/models/UpdateTokenResponse.js +62 -0
  110. package/dist/models/index.d.ts +18 -0
  111. package/dist/models/index.js +36 -0
  112. package/dist/runtime.d.ts +184 -0
  113. package/dist/runtime.js +350 -0
  114. package/package.json +30 -0
@@ -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 MessagePartsInner interface.
16
+ */
17
+ export function instanceOfMessagePartsInner(value) {
18
+ return true;
19
+ }
20
+ export function MessagePartsInnerFromJSON(json) {
21
+ return MessagePartsInnerFromJSONTyped(json, false);
22
+ }
23
+ export function MessagePartsInnerFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'type': json['type'] == null ? undefined : json['type'],
29
+ 'text': json['text'] == null ? undefined : json['text'],
30
+ };
31
+ }
32
+ export function MessagePartsInnerToJSON(json) {
33
+ return MessagePartsInnerToJSONTyped(json, false);
34
+ }
35
+ export function MessagePartsInnerToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'type': value['type'],
41
+ 'text': value['text'],
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 ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ * Error message
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ error: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ModelError interface.
27
+ */
28
+ export declare function instanceOfModelError(value: object): value is ModelError;
29
+ export declare function ModelErrorFromJSON(json: any): ModelError;
30
+ export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
31
+ export declare function ModelErrorToJSON(json: any): ModelError;
32
+ export declare function ModelErrorToJSONTyped(value?: ModelError | 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 ModelError interface.
16
+ */
17
+ export function instanceOfModelError(value) {
18
+ if (!('error' in value) || value['error'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ModelErrorFromJSON(json) {
23
+ return ModelErrorFromJSONTyped(json, false);
24
+ }
25
+ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'error': json['error'],
31
+ };
32
+ }
33
+ export function ModelErrorToJSON(json) {
34
+ return ModelErrorToJSONTyped(json, false);
35
+ }
36
+ export function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'error': value['error'],
42
+ };
43
+ }
@@ -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
+ import type { Chat } from './Chat';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedChats
17
+ */
18
+ export interface PaginatedChats {
19
+ /**
20
+ * Array of chat objects
21
+ * @type {Array<Chat>}
22
+ * @memberof PaginatedChats
23
+ */
24
+ data: Array<Chat>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedChats
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedChats interface.
34
+ */
35
+ export declare function instanceOfPaginatedChats(value: object): value is PaginatedChats;
36
+ export declare function PaginatedChatsFromJSON(json: any): PaginatedChats;
37
+ export declare function PaginatedChatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedChats;
38
+ export declare function PaginatedChatsToJSON(json: any): PaginatedChats;
39
+ export declare function PaginatedChatsToJSONTyped(value?: PaginatedChats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { ChatFromJSON, ChatToJSON, } from './Chat';
15
+ /**
16
+ * Check if a given object implements the PaginatedChats interface.
17
+ */
18
+ export function instanceOfPaginatedChats(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PaginatedChatsFromJSON(json) {
26
+ return PaginatedChatsFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedChatsFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(ChatFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedChatsToJSON(json) {
38
+ return PaginatedChatsToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedChatsToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(ChatToJSON)),
46
+ 'nextCursor': value['nextCursor'],
47
+ };
48
+ }
@@ -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
+ import type { Message } from './Message';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedMessages
17
+ */
18
+ export interface PaginatedMessages {
19
+ /**
20
+ *
21
+ * @type {Array<Message>}
22
+ * @memberof PaginatedMessages
23
+ */
24
+ data: Array<Message>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedMessages
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedMessages interface.
34
+ */
35
+ export declare function instanceOfPaginatedMessages(value: object): value is PaginatedMessages;
36
+ export declare function PaginatedMessagesFromJSON(json: any): PaginatedMessages;
37
+ export declare function PaginatedMessagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMessages;
38
+ export declare function PaginatedMessagesToJSON(json: any): PaginatedMessages;
39
+ export declare function PaginatedMessagesToJSONTyped(value?: PaginatedMessages | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { MessageFromJSON, MessageToJSON, } from './Message';
15
+ /**
16
+ * Check if a given object implements the PaginatedMessages interface.
17
+ */
18
+ export function instanceOfPaginatedMessages(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PaginatedMessagesFromJSON(json) {
26
+ return PaginatedMessagesFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedMessagesFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(MessageFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedMessagesToJSON(json) {
38
+ return PaginatedMessagesToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedMessagesToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(MessageToJSON)),
46
+ 'nextCursor': value['nextCursor'],
47
+ };
48
+ }
@@ -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,70 @@
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 ServiceTokenRoleEnum = {
18
+ Consumer: 'consumer',
19
+ Admin: 'admin'
20
+ };
21
+ /**
22
+ * Check if a given object implements the ServiceToken interface.
23
+ */
24
+ export function instanceOfServiceToken(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 (!('role' in value) || value['role'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function ServiceTokenFromJSON(json) {
40
+ return ServiceTokenFromJSONTyped(json, false);
41
+ }
42
+ export function ServiceTokenFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'consumerName': json['consumerName'],
49
+ 'active': json['active'],
50
+ 'role': json['role'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ };
54
+ }
55
+ export function ServiceTokenToJSON(json) {
56
+ return ServiceTokenToJSONTyped(json, false);
57
+ }
58
+ export function ServiceTokenToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'consumerName': value['consumerName'],
65
+ 'active': value['active'],
66
+ 'role': value['role'],
67
+ 'createdAt': value['createdAt'].toISOString(),
68
+ 'updatedAt': value['updatedAt'].toISOString(),
69
+ };
70
+ }
@@ -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,47 @@
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 Tag interface.
16
+ */
17
+ export function instanceOfTag(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function TagFromJSON(json) {
25
+ return TagFromJSONTyped(json, false);
26
+ }
27
+ export function TagFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function TagToJSON(json) {
37
+ return TagToJSONTyped(json, false);
38
+ }
39
+ export function TagToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -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,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 UpdateChatRequest interface.
16
+ */
17
+ export function instanceOfUpdateChatRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateChatRequestFromJSON(json) {
21
+ return UpdateChatRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateChatRequestFromJSONTyped(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 UpdateChatRequestToJSON(json) {
32
+ return UpdateChatRequestToJSONTyped(json, false);
33
+ }
34
+ export function UpdateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'title': value['title'],
40
+ };
41
+ }
@@ -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,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 UpdateTokenRequest interface.
16
+ */
17
+ export function instanceOfUpdateTokenRequest(value) {
18
+ if (!('active' in value) || value['active'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateTokenRequestFromJSON(json) {
23
+ return UpdateTokenRequestFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'active': json['active'],
31
+ };
32
+ }
33
+ export function UpdateTokenRequestToJSON(json) {
34
+ return UpdateTokenRequestToJSONTyped(json, false);
35
+ }
36
+ export function UpdateTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'active': value['active'],
42
+ };
43
+ }