@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 Account
16
+ */
17
+ export interface Account {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof Account
22
+ */
23
+ id: string;
24
+ /**
25
+ * Name of the account
26
+ * @type {string}
27
+ * @memberof Account
28
+ */
29
+ name: string;
30
+ /**
31
+ * Creation timestamp
32
+ * @type {Date}
33
+ * @memberof Account
34
+ */
35
+ createdAt: Date;
36
+ /**
37
+ * Last update timestamp
38
+ * @type {Date}
39
+ * @memberof Account
40
+ */
41
+ updatedAt: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Account interface.
45
+ */
46
+ export declare function instanceOfAccount(value: object): value is Account;
47
+ export declare function AccountFromJSON(json: any): Account;
48
+ export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
49
+ export declare function AccountToJSON(json: any): Account;
50
+ export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,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.instanceOfAccount = instanceOfAccount;
17
+ exports.AccountFromJSON = AccountFromJSON;
18
+ exports.AccountFromJSONTyped = AccountFromJSONTyped;
19
+ exports.AccountToJSON = AccountToJSON;
20
+ exports.AccountToJSONTyped = AccountToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Account interface.
23
+ */
24
+ function instanceOfAccount(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AccountFromJSON(json) {
36
+ return AccountFromJSONTyped(json, false);
37
+ }
38
+ function AccountFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'createdAt': (new Date(json['createdAt'])),
46
+ 'updatedAt': (new Date(json['updatedAt'])),
47
+ };
48
+ }
49
+ function AccountToJSON(json) {
50
+ return AccountToJSONTyped(json, false);
51
+ }
52
+ function AccountToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'name': value['name'],
59
+ 'createdAt': value['createdAt'].toISOString(),
60
+ 'updatedAt': value['updatedAt'].toISOString(),
61
+ };
62
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Chat
16
+ */
17
+ export interface Chat {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof Chat
22
+ */
23
+ id: string;
24
+ /**
25
+ * Creation timestamp
26
+ * @type {Date}
27
+ * @memberof Chat
28
+ */
29
+ createdAt: Date;
30
+ /**
31
+ * Chat title
32
+ * @type {string}
33
+ * @memberof Chat
34
+ */
35
+ title: string;
36
+ /**
37
+ * Type of chat
38
+ * @type {string}
39
+ * @memberof Chat
40
+ */
41
+ chatType?: string | null;
42
+ /**
43
+ * Last viewed timestamp
44
+ * @type {Date}
45
+ * @memberof Chat
46
+ */
47
+ lastViewedAt?: Date | null;
48
+ /**
49
+ * ID of the account user who owns this chat
50
+ * @type {string}
51
+ * @memberof Chat
52
+ */
53
+ accountUserId: string;
54
+ /**
55
+ * Chat visibility
56
+ * @type {string}
57
+ * @memberof Chat
58
+ */
59
+ visibility: ChatVisibilityEnum;
60
+ /**
61
+ * Optional subject ID
62
+ * @type {string}
63
+ * @memberof Chat
64
+ */
65
+ subjectId?: string | null;
66
+ /**
67
+ * Latest job ID
68
+ * @type {string}
69
+ * @memberof Chat
70
+ */
71
+ latestJobId?: string | null;
72
+ /**
73
+ * Scheduled analysis timestamp
74
+ * @type {Date}
75
+ * @memberof Chat
76
+ */
77
+ analysisScheduledFor?: Date | null;
78
+ /**
79
+ * Chat goal
80
+ * @type {string}
81
+ * @memberof Chat
82
+ */
83
+ goal?: string | null;
84
+ /**
85
+ * Whether the goal has been achieved
86
+ * @type {boolean}
87
+ * @memberof Chat
88
+ */
89
+ goalAchieved?: boolean | null;
90
+ /**
91
+ * Whether the chat is marked for review
92
+ * @type {boolean}
93
+ * @memberof Chat
94
+ */
95
+ forReview: boolean;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const ChatVisibilityEnum: {
101
+ readonly Public: "public";
102
+ readonly Private: "private";
103
+ };
104
+ export type ChatVisibilityEnum = typeof ChatVisibilityEnum[keyof typeof ChatVisibilityEnum];
105
+ /**
106
+ * Check if a given object implements the Chat interface.
107
+ */
108
+ export declare function instanceOfChat(value: object): value is Chat;
109
+ export declare function ChatFromJSON(json: any): Chat;
110
+ export declare function ChatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Chat;
111
+ export declare function ChatToJSON(json: any): Chat;
112
+ export declare function ChatToJSONTyped(value?: Chat | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.ChatVisibilityEnum = void 0;
17
+ exports.instanceOfChat = instanceOfChat;
18
+ exports.ChatFromJSON = ChatFromJSON;
19
+ exports.ChatFromJSONTyped = ChatFromJSONTyped;
20
+ exports.ChatToJSON = ChatToJSON;
21
+ exports.ChatToJSONTyped = ChatToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ChatVisibilityEnum = {
26
+ Public: 'public',
27
+ Private: 'private'
28
+ };
29
+ /**
30
+ * Check if a given object implements the Chat interface.
31
+ */
32
+ function instanceOfChat(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ if (!('title' in value) || value['title'] === undefined)
38
+ return false;
39
+ if (!('accountUserId' in value) || value['accountUserId'] === undefined)
40
+ return false;
41
+ if (!('visibility' in value) || value['visibility'] === undefined)
42
+ return false;
43
+ if (!('forReview' in value) || value['forReview'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function ChatFromJSON(json) {
48
+ return ChatFromJSONTyped(json, false);
49
+ }
50
+ function ChatFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'id': json['id'],
56
+ 'createdAt': (new Date(json['createdAt'])),
57
+ 'title': json['title'],
58
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
59
+ 'lastViewedAt': json['lastViewedAt'] == null ? undefined : (new Date(json['lastViewedAt'])),
60
+ 'accountUserId': json['accountUserId'],
61
+ 'visibility': json['visibility'],
62
+ 'subjectId': json['subjectId'] == null ? undefined : json['subjectId'],
63
+ 'latestJobId': json['latestJobId'] == null ? undefined : json['latestJobId'],
64
+ 'analysisScheduledFor': json['analysisScheduledFor'] == null ? undefined : (new Date(json['analysisScheduledFor'])),
65
+ 'goal': json['goal'] == null ? undefined : json['goal'],
66
+ 'goalAchieved': json['goalAchieved'] == null ? undefined : json['goalAchieved'],
67
+ 'forReview': json['forReview'],
68
+ };
69
+ }
70
+ function ChatToJSON(json) {
71
+ return ChatToJSONTyped(json, false);
72
+ }
73
+ function ChatToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'createdAt': value['createdAt'].toISOString(),
80
+ 'title': value['title'],
81
+ 'chatType': value['chatType'],
82
+ 'lastViewedAt': value['lastViewedAt'] == null ? value['lastViewedAt'] : value['lastViewedAt'].toISOString(),
83
+ 'accountUserId': value['accountUserId'],
84
+ 'visibility': value['visibility'],
85
+ 'subjectId': value['subjectId'],
86
+ 'latestJobId': value['latestJobId'],
87
+ 'analysisScheduledFor': value['analysisScheduledFor'] == null ? value['analysisScheduledFor'] : value['analysisScheduledFor'].toISOString(),
88
+ 'goal': value['goal'],
89
+ 'goalAchieved': value['goalAchieved'],
90
+ 'forReview': value['forReview'],
91
+ };
92
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ChatRequest
16
+ */
17
+ export interface ChatRequest {
18
+ /**
19
+ * The user's message to send to the AI assistant
20
+ * @type {string}
21
+ * @memberof ChatRequest
22
+ */
23
+ message: string;
24
+ /**
25
+ * Optional ID of an existing chat to continue. If omitted, a new chat will be created.
26
+ * @type {string}
27
+ * @memberof ChatRequest
28
+ */
29
+ chatId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ChatRequest interface.
33
+ */
34
+ export declare function instanceOfChatRequest(value: object): value is ChatRequest;
35
+ export declare function ChatRequestFromJSON(json: any): ChatRequest;
36
+ export declare function ChatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequest;
37
+ export declare function ChatRequestToJSON(json: any): ChatRequest;
38
+ export declare function ChatRequestToJSONTyped(value?: ChatRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfChatRequest = instanceOfChatRequest;
17
+ exports.ChatRequestFromJSON = ChatRequestFromJSON;
18
+ exports.ChatRequestFromJSONTyped = ChatRequestFromJSONTyped;
19
+ exports.ChatRequestToJSON = ChatRequestToJSON;
20
+ exports.ChatRequestToJSONTyped = ChatRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatRequest interface.
23
+ */
24
+ function instanceOfChatRequest(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ChatRequestFromJSON(json) {
30
+ return ChatRequestFromJSONTyped(json, false);
31
+ }
32
+ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'message': json['message'],
38
+ 'chatId': json['chatId'] == null ? undefined : json['chatId'],
39
+ };
40
+ }
41
+ function ChatRequestToJSON(json) {
42
+ return ChatRequestToJSONTyped(json, false);
43
+ }
44
+ function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'message': value['message'],
50
+ 'chatId': value['chatId'],
51
+ };
52
+ }
@@ -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,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.instanceOfCreateAccountRequest = instanceOfCreateAccountRequest;
17
+ exports.CreateAccountRequestFromJSON = CreateAccountRequestFromJSON;
18
+ exports.CreateAccountRequestFromJSONTyped = CreateAccountRequestFromJSONTyped;
19
+ exports.CreateAccountRequestToJSON = CreateAccountRequestToJSON;
20
+ exports.CreateAccountRequestToJSONTyped = CreateAccountRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateAccountRequest interface.
23
+ */
24
+ function instanceOfCreateAccountRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateAccountRequestFromJSON(json) {
30
+ return CreateAccountRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function CreateAccountRequestToJSON(json) {
41
+ return CreateAccountRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateAccountRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
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 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,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.instanceOfCreateChatRequest = instanceOfCreateChatRequest;
17
+ exports.CreateChatRequestFromJSON = CreateChatRequestFromJSON;
18
+ exports.CreateChatRequestFromJSONTyped = CreateChatRequestFromJSONTyped;
19
+ exports.CreateChatRequestToJSON = CreateChatRequestToJSON;
20
+ exports.CreateChatRequestToJSONTyped = CreateChatRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateChatRequest interface.
23
+ */
24
+ function instanceOfCreateChatRequest(value) {
25
+ return true;
26
+ }
27
+ function CreateChatRequestFromJSON(json) {
28
+ return CreateChatRequestFromJSONTyped(json, false);
29
+ }
30
+ function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'title': json['title'] == null ? undefined : json['title'],
36
+ };
37
+ }
38
+ function CreateChatRequestToJSON(json) {
39
+ return CreateChatRequestToJSONTyped(json, false);
40
+ }
41
+ function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'title': value['title'],
47
+ };
48
+ }
@@ -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,66 @@
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.CreateTokenRequestRoleEnum = void 0;
17
+ exports.instanceOfCreateTokenRequest = instanceOfCreateTokenRequest;
18
+ exports.CreateTokenRequestFromJSON = CreateTokenRequestFromJSON;
19
+ exports.CreateTokenRequestFromJSONTyped = CreateTokenRequestFromJSONTyped;
20
+ exports.CreateTokenRequestToJSON = CreateTokenRequestToJSON;
21
+ exports.CreateTokenRequestToJSONTyped = CreateTokenRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateTokenRequestRoleEnum = {
26
+ Consumer: 'consumer',
27
+ Admin: 'admin'
28
+ };
29
+ /**
30
+ * Check if a given object implements the CreateTokenRequest interface.
31
+ */
32
+ function instanceOfCreateTokenRequest(value) {
33
+ if (!('consumerName' in value) || value['consumerName'] === undefined)
34
+ return false;
35
+ if (!('role' in value) || value['role'] === undefined)
36
+ return false;
37
+ if (!('accountId' in value) || value['accountId'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function CreateTokenRequestFromJSON(json) {
42
+ return CreateTokenRequestFromJSONTyped(json, false);
43
+ }
44
+ function CreateTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'consumerName': json['consumerName'],
50
+ 'role': json['role'],
51
+ 'accountId': json['accountId'],
52
+ };
53
+ }
54
+ function CreateTokenRequestToJSON(json) {
55
+ return CreateTokenRequestToJSONTyped(json, false);
56
+ }
57
+ function CreateTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'consumerName': value['consumerName'],
63
+ 'role': value['role'],
64
+ 'accountId': value['accountId'],
65
+ };
66
+ }