@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,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,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.instanceOfCreateTokenResponse = instanceOfCreateTokenResponse;
17
+ exports.CreateTokenResponseFromJSON = CreateTokenResponseFromJSON;
18
+ exports.CreateTokenResponseFromJSONTyped = CreateTokenResponseFromJSONTyped;
19
+ exports.CreateTokenResponseToJSON = CreateTokenResponseToJSON;
20
+ exports.CreateTokenResponseToJSONTyped = CreateTokenResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateTokenResponse interface.
23
+ */
24
+ function instanceOfCreateTokenResponse(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 (!('token' in value) || value['token'] === undefined)
30
+ return false;
31
+ if (!('message' in value) || value['message'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function CreateTokenResponseFromJSON(json) {
36
+ return CreateTokenResponseFromJSONTyped(json, false);
37
+ }
38
+ function CreateTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'consumerName': json['consumerName'],
45
+ 'token': json['token'],
46
+ 'message': json['message'],
47
+ };
48
+ }
49
+ function CreateTokenResponseToJSON(json) {
50
+ return CreateTokenResponseToJSONTyped(json, false);
51
+ }
52
+ function CreateTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'consumerName': value['consumerName'],
59
+ 'token': value['token'],
60
+ 'message': value['message'],
61
+ };
62
+ }
@@ -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,57 @@
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.HealthCheckStatusEnum = void 0;
17
+ exports.instanceOfHealthCheck = instanceOfHealthCheck;
18
+ exports.HealthCheckFromJSON = HealthCheckFromJSON;
19
+ exports.HealthCheckFromJSONTyped = HealthCheckFromJSONTyped;
20
+ exports.HealthCheckToJSON = HealthCheckToJSON;
21
+ exports.HealthCheckToJSONTyped = HealthCheckToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.HealthCheckStatusEnum = {
26
+ Ok: 'ok'
27
+ };
28
+ /**
29
+ * Check if a given object implements the HealthCheck interface.
30
+ */
31
+ function instanceOfHealthCheck(value) {
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function HealthCheckFromJSON(json) {
37
+ return HealthCheckFromJSONTyped(json, false);
38
+ }
39
+ function HealthCheckFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'status': json['status'],
45
+ };
46
+ }
47
+ function HealthCheckToJSON(json) {
48
+ return HealthCheckToJSONTyped(json, false);
49
+ }
50
+ function HealthCheckToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'status': value['status'],
56
+ };
57
+ }
@@ -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,71 @@
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.instanceOfMessage = instanceOfMessage;
17
+ exports.MessageFromJSON = MessageFromJSON;
18
+ exports.MessageFromJSONTyped = MessageFromJSONTyped;
19
+ exports.MessageToJSON = MessageToJSON;
20
+ exports.MessageToJSONTyped = MessageToJSONTyped;
21
+ const MessagePartsInner_1 = require("./MessagePartsInner");
22
+ /**
23
+ * Check if a given object implements the Message interface.
24
+ */
25
+ function instanceOfMessage(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('chatId' in value) || value['chatId'] === undefined)
29
+ return false;
30
+ if (!('role' in value) || value['role'] === undefined)
31
+ return false;
32
+ if (!('parts' in value) || value['parts'] === undefined)
33
+ return false;
34
+ if (!('attachments' in value) || value['attachments'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function MessageFromJSON(json) {
41
+ return MessageFromJSONTyped(json, false);
42
+ }
43
+ function MessageFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'chatId': json['chatId'],
50
+ 'role': json['role'],
51
+ 'parts': (json['parts'].map(MessagePartsInner_1.MessagePartsInnerFromJSON)),
52
+ 'attachments': json['attachments'],
53
+ 'createdAt': (new Date(json['createdAt'])),
54
+ };
55
+ }
56
+ function MessageToJSON(json) {
57
+ return MessageToJSONTyped(json, false);
58
+ }
59
+ function MessageToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'chatId': value['chatId'],
66
+ 'role': value['role'],
67
+ 'parts': (value['parts'].map(MessagePartsInner_1.MessagePartsInnerToJSON)),
68
+ 'attachments': value['attachments'],
69
+ 'createdAt': value['createdAt'].toISOString(),
70
+ };
71
+ }
@@ -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;
@@ -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.instanceOfMessagePartsInner = instanceOfMessagePartsInner;
17
+ exports.MessagePartsInnerFromJSON = MessagePartsInnerFromJSON;
18
+ exports.MessagePartsInnerFromJSONTyped = MessagePartsInnerFromJSONTyped;
19
+ exports.MessagePartsInnerToJSON = MessagePartsInnerToJSON;
20
+ exports.MessagePartsInnerToJSONTyped = MessagePartsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MessagePartsInner interface.
23
+ */
24
+ function instanceOfMessagePartsInner(value) {
25
+ return true;
26
+ }
27
+ function MessagePartsInnerFromJSON(json) {
28
+ return MessagePartsInnerFromJSONTyped(json, false);
29
+ }
30
+ function MessagePartsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'type': json['type'] == null ? undefined : json['type'],
36
+ 'text': json['text'] == null ? undefined : json['text'],
37
+ };
38
+ }
39
+ function MessagePartsInnerToJSON(json) {
40
+ return MessagePartsInnerToJSONTyped(json, false);
41
+ }
42
+ function MessagePartsInnerToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'type': value['type'],
48
+ 'text': value['text'],
49
+ };
50
+ }
@@ -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,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.instanceOfModelError = instanceOfModelError;
17
+ exports.ModelErrorFromJSON = ModelErrorFromJSON;
18
+ exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
19
+ exports.ModelErrorToJSON = ModelErrorToJSON;
20
+ exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ModelError interface.
23
+ */
24
+ function instanceOfModelError(value) {
25
+ if (!('error' in value) || value['error'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ModelErrorFromJSON(json) {
30
+ return ModelErrorFromJSONTyped(json, false);
31
+ }
32
+ function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'error': json['error'],
38
+ };
39
+ }
40
+ function ModelErrorToJSON(json) {
41
+ return ModelErrorToJSONTyped(json, false);
42
+ }
43
+ function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'error': value['error'],
49
+ };
50
+ }
@@ -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,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.instanceOfPaginatedChats = instanceOfPaginatedChats;
17
+ exports.PaginatedChatsFromJSON = PaginatedChatsFromJSON;
18
+ exports.PaginatedChatsFromJSONTyped = PaginatedChatsFromJSONTyped;
19
+ exports.PaginatedChatsToJSON = PaginatedChatsToJSON;
20
+ exports.PaginatedChatsToJSONTyped = PaginatedChatsToJSONTyped;
21
+ const Chat_1 = require("./Chat");
22
+ /**
23
+ * Check if a given object implements the PaginatedChats interface.
24
+ */
25
+ function instanceOfPaginatedChats(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 PaginatedChatsFromJSON(json) {
33
+ return PaginatedChatsFromJSONTyped(json, false);
34
+ }
35
+ function PaginatedChatsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(Chat_1.ChatFromJSON)),
41
+ 'nextCursor': json['nextCursor'],
42
+ };
43
+ }
44
+ function PaginatedChatsToJSON(json) {
45
+ return PaginatedChatsToJSONTyped(json, false);
46
+ }
47
+ function PaginatedChatsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(Chat_1.ChatToJSON)),
53
+ 'nextCursor': value['nextCursor'],
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
+ 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;