asteroid-odyssey 1.0.7

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 (160) hide show
  1. package/README.md +54 -0
  2. package/dist/generated/agents/core/ApiError.d.ts +10 -0
  3. package/dist/generated/agents/core/ApiError.js +20 -0
  4. package/dist/generated/agents/core/ApiRequestOptions.d.ts +13 -0
  5. package/dist/generated/agents/core/ApiRequestOptions.js +2 -0
  6. package/dist/generated/agents/core/ApiResult.d.ts +7 -0
  7. package/dist/generated/agents/core/ApiResult.js +2 -0
  8. package/dist/generated/agents/core/CancelablePromise.d.ts +20 -0
  9. package/dist/generated/agents/core/CancelablePromise.js +104 -0
  10. package/dist/generated/agents/core/OpenAPI.d.ts +16 -0
  11. package/dist/generated/agents/core/OpenAPI.js +14 -0
  12. package/dist/generated/agents/core/request.d.ts +30 -0
  13. package/dist/generated/agents/core/request.js +294 -0
  14. package/dist/generated/agents/index.d.ts +16 -0
  15. package/dist/generated/agents/index.js +24 -0
  16. package/dist/generated/agents/models/Agent.d.ts +22 -0
  17. package/dist/generated/agents/models/Agent.js +2 -0
  18. package/dist/generated/agents/models/CreateWorkflowRequest.d.ts +27 -0
  19. package/dist/generated/agents/models/CreateWorkflowRequest.js +14 -0
  20. package/dist/generated/agents/models/Execution.d.ts +18 -0
  21. package/dist/generated/agents/models/Execution.js +2 -0
  22. package/dist/generated/agents/models/OptimisationRequest.d.ts +6 -0
  23. package/dist/generated/agents/models/OptimisationRequest.js +2 -0
  24. package/dist/generated/agents/models/Workflow.d.ts +26 -0
  25. package/dist/generated/agents/models/Workflow.js +2 -0
  26. package/dist/generated/agents/models/WorkflowExecution.d.ts +6 -0
  27. package/dist/generated/agents/models/WorkflowExecution.js +2 -0
  28. package/dist/generated/agents/models/WorkflowExecutionRequest.d.ts +4 -0
  29. package/dist/generated/agents/models/WorkflowExecutionRequest.js +2 -0
  30. package/dist/generated/agents/services/AgentService.d.ts +10 -0
  31. package/dist/generated/agents/services/AgentService.js +19 -0
  32. package/dist/generated/agents/services/ApiService.d.ts +9 -0
  33. package/dist/generated/agents/services/ApiService.js +19 -0
  34. package/dist/generated/agents/services/DefaultService.d.ts +23 -0
  35. package/dist/generated/agents/services/DefaultService.js +43 -0
  36. package/dist/generated/agents/services/OptimiserService.d.ts +11 -0
  37. package/dist/generated/agents/services/OptimiserService.js +22 -0
  38. package/dist/generated/agents/services/WorkflowService.d.ts +19 -0
  39. package/dist/generated/agents/services/WorkflowService.js +40 -0
  40. package/dist/generated/platform/core/ApiError.d.ts +10 -0
  41. package/dist/generated/platform/core/ApiError.js +20 -0
  42. package/dist/generated/platform/core/ApiRequestOptions.d.ts +13 -0
  43. package/dist/generated/platform/core/ApiRequestOptions.js +2 -0
  44. package/dist/generated/platform/core/ApiResult.d.ts +7 -0
  45. package/dist/generated/platform/core/ApiResult.js +2 -0
  46. package/dist/generated/platform/core/CancelablePromise.d.ts +20 -0
  47. package/dist/generated/platform/core/CancelablePromise.js +104 -0
  48. package/dist/generated/platform/core/OpenAPI.d.ts +16 -0
  49. package/dist/generated/platform/core/OpenAPI.js +14 -0
  50. package/dist/generated/platform/core/request.d.ts +30 -0
  51. package/dist/generated/platform/core/request.js +294 -0
  52. package/dist/generated/platform/index.d.ts +56 -0
  53. package/dist/generated/platform/index.js +58 -0
  54. package/dist/generated/platform/models/APIKey.d.ts +9 -0
  55. package/dist/generated/platform/models/APIKey.js +2 -0
  56. package/dist/generated/platform/models/AgentReport.d.ts +45 -0
  57. package/dist/generated/platform/models/AgentReport.js +2 -0
  58. package/dist/generated/platform/models/AsteroidChat.d.ts +9 -0
  59. package/dist/generated/platform/models/AsteroidChat.js +2 -0
  60. package/dist/generated/platform/models/AsteroidChoice.d.ts +16 -0
  61. package/dist/generated/platform/models/AsteroidChoice.js +14 -0
  62. package/dist/generated/platform/models/AsteroidMessage.d.ts +27 -0
  63. package/dist/generated/platform/models/AsteroidMessage.js +15 -0
  64. package/dist/generated/platform/models/AsteroidToolCall.d.ts +11 -0
  65. package/dist/generated/platform/models/AsteroidToolCall.js +2 -0
  66. package/dist/generated/platform/models/ChainExecution.d.ts +6 -0
  67. package/dist/generated/platform/models/ChainExecution.js +2 -0
  68. package/dist/generated/platform/models/ChainExecutionState.d.ts +8 -0
  69. package/dist/generated/platform/models/ChainExecutionState.js +2 -0
  70. package/dist/generated/platform/models/ChainRequest.d.ts +6 -0
  71. package/dist/generated/platform/models/ChainRequest.js +2 -0
  72. package/dist/generated/platform/models/ChatFormat.d.ts +5 -0
  73. package/dist/generated/platform/models/ChatFormat.js +13 -0
  74. package/dist/generated/platform/models/ChatIds.d.ts +5 -0
  75. package/dist/generated/platform/models/ChatIds.js +2 -0
  76. package/dist/generated/platform/models/ChoiceIds.d.ts +6 -0
  77. package/dist/generated/platform/models/ChoiceIds.js +2 -0
  78. package/dist/generated/platform/models/Decision.d.ts +7 -0
  79. package/dist/generated/platform/models/Decision.js +15 -0
  80. package/dist/generated/platform/models/ErrorResponse.d.ts +4 -0
  81. package/dist/generated/platform/models/ErrorResponse.js +2 -0
  82. package/dist/generated/platform/models/FailureCategory.d.ts +12 -0
  83. package/dist/generated/platform/models/FailureCategory.js +20 -0
  84. package/dist/generated/platform/models/FailureReport.d.ts +33 -0
  85. package/dist/generated/platform/models/FailureReport.js +13 -0
  86. package/dist/generated/platform/models/Feedback.d.ts +13 -0
  87. package/dist/generated/platform/models/Feedback.js +2 -0
  88. package/dist/generated/platform/models/FeedbackRequest.d.ts +6 -0
  89. package/dist/generated/platform/models/FeedbackRequest.js +2 -0
  90. package/dist/generated/platform/models/HubStats.d.ts +10 -0
  91. package/dist/generated/platform/models/HubStats.js +2 -0
  92. package/dist/generated/platform/models/MessageRole.d.ts +5 -0
  93. package/dist/generated/platform/models/MessageRole.js +13 -0
  94. package/dist/generated/platform/models/MessageType.d.ts +6 -0
  95. package/dist/generated/platform/models/MessageType.js +14 -0
  96. package/dist/generated/platform/models/Permission.d.ts +5 -0
  97. package/dist/generated/platform/models/Permission.js +13 -0
  98. package/dist/generated/platform/models/Project.d.ts +8 -0
  99. package/dist/generated/platform/models/Project.js +2 -0
  100. package/dist/generated/platform/models/ReviewPayload.d.ts +29 -0
  101. package/dist/generated/platform/models/ReviewPayload.js +2 -0
  102. package/dist/generated/platform/models/Run.d.ts +9 -0
  103. package/dist/generated/platform/models/Run.js +2 -0
  104. package/dist/generated/platform/models/RunExecution.d.ts +8 -0
  105. package/dist/generated/platform/models/RunExecution.js +2 -0
  106. package/dist/generated/platform/models/RunState.d.ts +2 -0
  107. package/dist/generated/platform/models/RunState.js +2 -0
  108. package/dist/generated/platform/models/Status.d.ts +8 -0
  109. package/dist/generated/platform/models/Status.js +16 -0
  110. package/dist/generated/platform/models/SupervisionRequest.d.ts +9 -0
  111. package/dist/generated/platform/models/SupervisionRequest.js +2 -0
  112. package/dist/generated/platform/models/SupervisionRequestState.d.ts +8 -0
  113. package/dist/generated/platform/models/SupervisionRequestState.js +2 -0
  114. package/dist/generated/platform/models/SupervisionResult.d.ts +9 -0
  115. package/dist/generated/platform/models/SupervisionResult.js +2 -0
  116. package/dist/generated/platform/models/SupervisionStatus.d.ts +7 -0
  117. package/dist/generated/platform/models/SupervisionStatus.js +2 -0
  118. package/dist/generated/platform/models/Supervisor.d.ts +10 -0
  119. package/dist/generated/platform/models/Supervisor.js +2 -0
  120. package/dist/generated/platform/models/SupervisorChain.d.ts +5 -0
  121. package/dist/generated/platform/models/SupervisorChain.js +2 -0
  122. package/dist/generated/platform/models/SupervisorStats.d.ts +21 -0
  123. package/dist/generated/platform/models/SupervisorStats.js +2 -0
  124. package/dist/generated/platform/models/SupervisorType.d.ts +8 -0
  125. package/dist/generated/platform/models/SupervisorType.js +16 -0
  126. package/dist/generated/platform/models/Task.d.ts +7 -0
  127. package/dist/generated/platform/models/Task.js +2 -0
  128. package/dist/generated/platform/models/Tool.d.ts +9 -0
  129. package/dist/generated/platform/models/Tool.js +2 -0
  130. package/dist/generated/platform/models/ToolCallIds.d.ts +4 -0
  131. package/dist/generated/platform/models/ToolCallIds.js +2 -0
  132. package/dist/generated/platform/models/ToolSupervisionResult.d.ts +36 -0
  133. package/dist/generated/platform/models/ToolSupervisionResult.js +2 -0
  134. package/dist/generated/platform/models/User.d.ts +4 -0
  135. package/dist/generated/platform/models/User.js +2 -0
  136. package/dist/generated/platform/services/ApiKeyService.d.ts +33 -0
  137. package/dist/generated/platform/services/ApiKeyService.js +64 -0
  138. package/dist/generated/platform/services/ApiService.d.ts +9 -0
  139. package/dist/generated/platform/services/ApiService.js +19 -0
  140. package/dist/generated/platform/services/ImproveService.d.ts +20 -0
  141. package/dist/generated/platform/services/ImproveService.js +47 -0
  142. package/dist/generated/platform/services/ProjectService.d.ts +34 -0
  143. package/dist/generated/platform/services/ProjectService.js +72 -0
  144. package/dist/generated/platform/services/RunService.d.ts +103 -0
  145. package/dist/generated/platform/services/RunService.js +227 -0
  146. package/dist/generated/platform/services/StatsService.d.ts +10 -0
  147. package/dist/generated/platform/services/StatsService.js +22 -0
  148. package/dist/generated/platform/services/SupervisionService.d.ts +46 -0
  149. package/dist/generated/platform/services/SupervisionService.js +100 -0
  150. package/dist/generated/platform/services/SupervisorService.d.ts +43 -0
  151. package/dist/generated/platform/services/SupervisorService.js +92 -0
  152. package/dist/generated/platform/services/TaskService.d.ts +29 -0
  153. package/dist/generated/platform/services/TaskService.js +59 -0
  154. package/dist/generated/platform/services/ToolCallService.d.ts +42 -0
  155. package/dist/generated/platform/services/ToolCallService.js +92 -0
  156. package/dist/generated/platform/services/ToolService.d.ts +47 -0
  157. package/dist/generated/platform/services/ToolService.js +92 -0
  158. package/dist/index.d.ts +70 -0
  159. package/dist/index.js +102 -0
  160. package/package.json +30 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ApiKeyService {
7
+ /**
8
+ * Validate an API key
9
+ * @returns User API key is valid, returns a validated user object
10
+ * @throws ApiError
11
+ */
12
+ static validateApiKey() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/api_key/validate',
16
+ errors: {
17
+ 401: `API key is invalid`,
18
+ },
19
+ });
20
+ }
21
+ /**
22
+ * Get all API keys for the current user
23
+ * @returns APIKey API keys
24
+ * @throws ApiError
25
+ */
26
+ static getApiKeys() {
27
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
28
+ method: 'GET',
29
+ url: '/api_key',
30
+ });
31
+ }
32
+ /**
33
+ * Create an API key
34
+ * @param requestBody
35
+ * @returns APIKey API key created
36
+ * @throws ApiError
37
+ */
38
+ static createApiKey(requestBody) {
39
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
40
+ method: 'POST',
41
+ url: '/api_key',
42
+ body: requestBody,
43
+ mediaType: 'application/json',
44
+ });
45
+ }
46
+ /**
47
+ * Revoke an API key
48
+ * @param requestBody
49
+ * @returns any API key revoked
50
+ * @throws ApiError
51
+ */
52
+ static revokeApiKey(requestBody) {
53
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
54
+ method: 'DELETE',
55
+ url: '/api_key',
56
+ body: requestBody,
57
+ mediaType: 'application/json',
58
+ errors: {
59
+ 400: `Bad request`,
60
+ },
61
+ });
62
+ }
63
+ }
64
+ exports.ApiKeyService = ApiKeyService;
@@ -0,0 +1,9 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class ApiService {
3
+ /**
4
+ * Get the OpenAPI schema
5
+ * @returns any OpenAPI schema
6
+ * @throws ApiError
7
+ */
8
+ static getOpenApi(): CancelablePromise<any>;
9
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ApiService {
7
+ /**
8
+ * Get the OpenAPI schema
9
+ * @returns any OpenAPI schema
10
+ * @throws ApiError
11
+ */
12
+ static getOpenApi() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/openapi.yaml',
16
+ });
17
+ }
18
+ }
19
+ exports.ApiService = ApiService;
@@ -0,0 +1,20 @@
1
+ import type { Feedback } from '../models/Feedback';
2
+ import type { FeedbackRequest } from '../models/FeedbackRequest';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class ImproveService {
5
+ /**
6
+ * Get feedback for a run
7
+ * @param runId
8
+ * @returns Feedback Feedback
9
+ * @throws ApiError
10
+ */
11
+ static getFeedback(runId: string): CancelablePromise<Array<Feedback>>;
12
+ /**
13
+ * Create feedback for a run
14
+ * @param runId
15
+ * @param requestBody
16
+ * @returns any Feedback created
17
+ * @throws ApiError
18
+ */
19
+ static createFeedback(runId: string, requestBody: FeedbackRequest): CancelablePromise<any>;
20
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImproveService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ImproveService {
7
+ /**
8
+ * Get feedback for a run
9
+ * @param runId
10
+ * @returns Feedback Feedback
11
+ * @throws ApiError
12
+ */
13
+ static getFeedback(runId) {
14
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
+ method: 'GET',
16
+ url: '/run/{run_id}/feedback',
17
+ path: {
18
+ 'run_id': runId,
19
+ },
20
+ errors: {
21
+ 404: `Run not found`,
22
+ },
23
+ });
24
+ }
25
+ /**
26
+ * Create feedback for a run
27
+ * @param runId
28
+ * @param requestBody
29
+ * @returns any Feedback created
30
+ * @throws ApiError
31
+ */
32
+ static createFeedback(runId, requestBody) {
33
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
34
+ method: 'POST',
35
+ url: '/run/{run_id}/feedback',
36
+ path: {
37
+ 'run_id': runId,
38
+ },
39
+ body: requestBody,
40
+ mediaType: 'application/json',
41
+ errors: {
42
+ 404: `Run not found`,
43
+ },
44
+ });
45
+ }
46
+ }
47
+ exports.ImproveService = ImproveService;
@@ -0,0 +1,34 @@
1
+ import type { Project } from '../models/Project';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class ProjectService {
4
+ /**
5
+ * Get all projects
6
+ * @returns Project List of projects
7
+ * @throws ApiError
8
+ */
9
+ static getProjects(): CancelablePromise<Array<Project>>;
10
+ /**
11
+ * Create a new project
12
+ * @param requestBody
13
+ * @returns string Project found
14
+ * @throws ApiError
15
+ */
16
+ static createProject(requestBody: {
17
+ name: string;
18
+ run_result_tags: Array<string>;
19
+ }): CancelablePromise<string>;
20
+ /**
21
+ * Get a project
22
+ * @param projectId
23
+ * @returns Project Project
24
+ * @throws ApiError
25
+ */
26
+ static getProject(projectId: string): CancelablePromise<Project>;
27
+ /**
28
+ * Delete a project
29
+ * @param projectId
30
+ * @returns any Project deleted
31
+ * @throws ApiError
32
+ */
33
+ static deleteProject(projectId: string): CancelablePromise<any>;
34
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ProjectService {
7
+ /**
8
+ * Get all projects
9
+ * @returns Project List of projects
10
+ * @throws ApiError
11
+ */
12
+ static getProjects() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/project',
16
+ });
17
+ }
18
+ /**
19
+ * Create a new project
20
+ * @param requestBody
21
+ * @returns string Project found
22
+ * @throws ApiError
23
+ */
24
+ static createProject(requestBody) {
25
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
26
+ method: 'POST',
27
+ url: '/project',
28
+ body: requestBody,
29
+ mediaType: 'application/json',
30
+ errors: {
31
+ 400: `Bad request`,
32
+ },
33
+ });
34
+ }
35
+ /**
36
+ * Get a project
37
+ * @param projectId
38
+ * @returns Project Project
39
+ * @throws ApiError
40
+ */
41
+ static getProject(projectId) {
42
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
43
+ method: 'GET',
44
+ url: '/project/{projectId}',
45
+ path: {
46
+ 'projectId': projectId,
47
+ },
48
+ errors: {
49
+ 404: `Project not found`,
50
+ },
51
+ });
52
+ }
53
+ /**
54
+ * Delete a project
55
+ * @param projectId
56
+ * @returns any Project deleted
57
+ * @throws ApiError
58
+ */
59
+ static deleteProject(projectId) {
60
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
61
+ method: 'DELETE',
62
+ url: '/project/{projectId}',
63
+ path: {
64
+ 'projectId': projectId,
65
+ },
66
+ errors: {
67
+ 404: `Project not found`,
68
+ },
69
+ });
70
+ }
71
+ }
72
+ exports.ProjectService = ProjectService;
@@ -0,0 +1,103 @@
1
+ import type { AsteroidChat } from '../models/AsteroidChat';
2
+ import type { AsteroidMessage } from '../models/AsteroidMessage';
3
+ import type { ChatIds } from '../models/ChatIds';
4
+ import type { Run } from '../models/Run';
5
+ import type { Status } from '../models/Status';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ export declare class RunService {
8
+ /**
9
+ * Get all runs for a task
10
+ * @param taskId
11
+ * @returns Run List of runs
12
+ * @throws ApiError
13
+ */
14
+ static getTaskRuns(taskId: string): CancelablePromise<Array<Run>>;
15
+ /**
16
+ * Create a new run for a task
17
+ * @param taskId
18
+ * @param requestBody
19
+ * @returns string Run created
20
+ * @throws ApiError
21
+ */
22
+ static createRun(taskId: string, requestBody?: {
23
+ name?: string;
24
+ run_id?: string;
25
+ }): CancelablePromise<string>;
26
+ /**
27
+ * Get a run
28
+ * @param runId
29
+ * @returns Run Run
30
+ * @throws ApiError
31
+ */
32
+ static getRun(runId: string): CancelablePromise<Run>;
33
+ /**
34
+ * Delete a run
35
+ * @param runId
36
+ * @returns any Run deleted
37
+ * @throws ApiError
38
+ */
39
+ static deleteRun(runId: string): CancelablePromise<any>;
40
+ /**
41
+ * Update the metadata of a run
42
+ * @param runId
43
+ * @param requestBody
44
+ * @returns void
45
+ * @throws ApiError
46
+ */
47
+ static updateRunMetadata(runId: string, requestBody: Record<string, any>): CancelablePromise<void>;
48
+ /**
49
+ * Get the status of a run
50
+ * @param runId
51
+ * @returns Status Run status
52
+ * @throws ApiError
53
+ */
54
+ static getRunStatus(runId: string): CancelablePromise<Status>;
55
+ /**
56
+ * Update the status of a run
57
+ * @param runId
58
+ * @param requestBody
59
+ * @returns void
60
+ * @throws ApiError
61
+ */
62
+ static updateRunStatus(runId: string, requestBody: Status): CancelablePromise<void>;
63
+ /**
64
+ * Update a run with a result
65
+ * @param runId
66
+ * @param requestBody
67
+ * @returns any Run result created
68
+ * @throws ApiError
69
+ */
70
+ static updateRunResult(runId: string, requestBody: {
71
+ result?: string;
72
+ }): CancelablePromise<any>;
73
+ /**
74
+ * Get the image messages for a run
75
+ * @param runId
76
+ * @returns AsteroidMessage Run image messages
77
+ * @throws ApiError
78
+ */
79
+ static getRunImageMessages(runId: string): CancelablePromise<Array<AsteroidMessage>>;
80
+ /**
81
+ * Create a new chat completion request from an existing run
82
+ * @param runId
83
+ * @param requestBody
84
+ * @returns ChatIds New chat completion created
85
+ * @throws ApiError
86
+ */
87
+ static createNewChat(runId: string, requestBody: AsteroidChat): CancelablePromise<ChatIds>;
88
+ /**
89
+ * Get the messages for a run
90
+ * @param runId
91
+ * @param index
92
+ * @returns AsteroidMessage Run messages
93
+ * @throws ApiError
94
+ */
95
+ static getRunMessages(runId: string, index: number): CancelablePromise<Array<AsteroidMessage>>;
96
+ /**
97
+ * Count the number of chat entries for a run
98
+ * @param runId
99
+ * @returns number Number of chat entries for the run
100
+ * @throws ApiError
101
+ */
102
+ static getRunChatCount(runId: string): CancelablePromise<number>;
103
+ }
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RunService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class RunService {
7
+ /**
8
+ * Get all runs for a task
9
+ * @param taskId
10
+ * @returns Run List of runs
11
+ * @throws ApiError
12
+ */
13
+ static getTaskRuns(taskId) {
14
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
+ method: 'GET',
16
+ url: '/task/{taskId}/run',
17
+ path: {
18
+ 'taskId': taskId,
19
+ },
20
+ });
21
+ }
22
+ /**
23
+ * Create a new run for a task
24
+ * @param taskId
25
+ * @param requestBody
26
+ * @returns string Run created
27
+ * @throws ApiError
28
+ */
29
+ static createRun(taskId, requestBody) {
30
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
31
+ method: 'POST',
32
+ url: '/task/{taskId}/run',
33
+ path: {
34
+ 'taskId': taskId,
35
+ },
36
+ body: requestBody,
37
+ mediaType: 'application/json',
38
+ });
39
+ }
40
+ /**
41
+ * Get a run
42
+ * @param runId
43
+ * @returns Run Run
44
+ * @throws ApiError
45
+ */
46
+ static getRun(runId) {
47
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
48
+ method: 'GET',
49
+ url: '/run/{runId}',
50
+ path: {
51
+ 'runId': runId,
52
+ },
53
+ errors: {
54
+ 404: `Run not found`,
55
+ },
56
+ });
57
+ }
58
+ /**
59
+ * Delete a run
60
+ * @param runId
61
+ * @returns any Run deleted
62
+ * @throws ApiError
63
+ */
64
+ static deleteRun(runId) {
65
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
66
+ method: 'DELETE',
67
+ url: '/run/{runId}',
68
+ path: {
69
+ 'runId': runId,
70
+ },
71
+ });
72
+ }
73
+ /**
74
+ * Update the metadata of a run
75
+ * @param runId
76
+ * @param requestBody
77
+ * @returns void
78
+ * @throws ApiError
79
+ */
80
+ static updateRunMetadata(runId, requestBody) {
81
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
82
+ method: 'PUT',
83
+ url: '/run/{runId}/metadata',
84
+ path: {
85
+ 'runId': runId,
86
+ },
87
+ body: requestBody,
88
+ mediaType: 'application/json',
89
+ errors: {
90
+ 404: `Run not found`,
91
+ },
92
+ });
93
+ }
94
+ /**
95
+ * Get the status of a run
96
+ * @param runId
97
+ * @returns Status Run status
98
+ * @throws ApiError
99
+ */
100
+ static getRunStatus(runId) {
101
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
102
+ method: 'GET',
103
+ url: '/run/{runId}/status',
104
+ path: {
105
+ 'runId': runId,
106
+ },
107
+ errors: {
108
+ 404: `Run not found`,
109
+ },
110
+ });
111
+ }
112
+ /**
113
+ * Update the status of a run
114
+ * @param runId
115
+ * @param requestBody
116
+ * @returns void
117
+ * @throws ApiError
118
+ */
119
+ static updateRunStatus(runId, requestBody) {
120
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
121
+ method: 'PUT',
122
+ url: '/run/{runId}/status',
123
+ path: {
124
+ 'runId': runId,
125
+ },
126
+ body: requestBody,
127
+ mediaType: 'application/json',
128
+ });
129
+ }
130
+ /**
131
+ * Update a run with a result
132
+ * @param runId
133
+ * @param requestBody
134
+ * @returns any Run result created
135
+ * @throws ApiError
136
+ */
137
+ static updateRunResult(runId, requestBody) {
138
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
139
+ method: 'PUT',
140
+ url: '/run/{runId}/result',
141
+ path: {
142
+ 'runId': runId,
143
+ },
144
+ body: requestBody,
145
+ mediaType: 'application/json',
146
+ errors: {
147
+ 400: `Bad request`,
148
+ },
149
+ });
150
+ }
151
+ /**
152
+ * Get the image messages for a run
153
+ * @param runId
154
+ * @returns AsteroidMessage Run image messages
155
+ * @throws ApiError
156
+ */
157
+ static getRunImageMessages(runId) {
158
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
159
+ method: 'GET',
160
+ url: '/run/{run_id}/image_messages',
161
+ path: {
162
+ 'run_id': runId,
163
+ },
164
+ errors: {
165
+ 404: `Run not found`,
166
+ },
167
+ });
168
+ }
169
+ /**
170
+ * Create a new chat completion request from an existing run
171
+ * @param runId
172
+ * @param requestBody
173
+ * @returns ChatIds New chat completion created
174
+ * @throws ApiError
175
+ */
176
+ static createNewChat(runId, requestBody) {
177
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
178
+ method: 'POST',
179
+ url: '/run/{run_id}/chat',
180
+ path: {
181
+ 'run_id': runId,
182
+ },
183
+ body: requestBody,
184
+ mediaType: 'application/json',
185
+ errors: {
186
+ 400: `Bad request`,
187
+ 404: `Run not found`,
188
+ },
189
+ });
190
+ }
191
+ /**
192
+ * Get the messages for a run
193
+ * @param runId
194
+ * @param index
195
+ * @returns AsteroidMessage Run messages
196
+ * @throws ApiError
197
+ */
198
+ static getRunMessages(runId, index) {
199
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
200
+ method: 'GET',
201
+ url: '/run/{run_id}/messages/{index}',
202
+ path: {
203
+ 'run_id': runId,
204
+ 'index': index,
205
+ },
206
+ errors: {
207
+ 404: `Run not found`,
208
+ },
209
+ });
210
+ }
211
+ /**
212
+ * Count the number of chat entries for a run
213
+ * @param runId
214
+ * @returns number Number of chat entries for the run
215
+ * @throws ApiError
216
+ */
217
+ static getRunChatCount(runId) {
218
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
219
+ method: 'GET',
220
+ url: '/run/{run_id}/chat_count',
221
+ path: {
222
+ 'run_id': runId,
223
+ },
224
+ });
225
+ }
226
+ }
227
+ exports.RunService = RunService;
@@ -0,0 +1,10 @@
1
+ import type { HubStats } from '../models/HubStats';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class StatsService {
4
+ /**
5
+ * Get hub stats
6
+ * @returns HubStats Hub stats
7
+ * @throws ApiError
8
+ */
9
+ static getHubStats(): CancelablePromise<HubStats>;
10
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class StatsService {
7
+ /**
8
+ * Get hub stats
9
+ * @returns HubStats Hub stats
10
+ * @throws ApiError
11
+ */
12
+ static getHubStats() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/stats',
16
+ errors: {
17
+ 400: `Invalid request`,
18
+ },
19
+ });
20
+ }
21
+ }
22
+ exports.StatsService = StatsService;
@@ -0,0 +1,46 @@
1
+ import type { ReviewPayload } from '../models/ReviewPayload';
2
+ import type { SupervisionRequest } from '../models/SupervisionRequest';
3
+ import type { SupervisionResult } from '../models/SupervisionResult';
4
+ import type { SupervisionStatus } from '../models/SupervisionStatus';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class SupervisionService {
7
+ /**
8
+ * Create a supervision request for a supervisor in a chain on a tool call
9
+ * @param toolCallId
10
+ * @param chainId
11
+ * @param supervisorId
12
+ * @param requestBody
13
+ * @returns string Supervision request created
14
+ * @throws ApiError
15
+ */
16
+ static createSupervisionRequest(toolCallId: string, chainId: string, supervisorId: string, requestBody: SupervisionRequest): CancelablePromise<string>;
17
+ /**
18
+ * Get a supervision request status
19
+ * @param supervisionRequestId
20
+ * @returns SupervisionStatus Get the supervision request status
21
+ * @throws ApiError
22
+ */
23
+ static getSupervisionRequestStatus(supervisionRequestId: string): CancelablePromise<SupervisionStatus>;
24
+ /**
25
+ * Get a supervision result
26
+ * @param supervisionRequestId
27
+ * @returns SupervisionResult Get the supervision result for a supervision request
28
+ * @throws ApiError
29
+ */
30
+ static getSupervisionResult(supervisionRequestId: string): CancelablePromise<SupervisionResult>;
31
+ /**
32
+ * Create a supervision result for a supervision request
33
+ * @param supervisionRequestId
34
+ * @param requestBody
35
+ * @returns string Supervision result created
36
+ * @throws ApiError
37
+ */
38
+ static createSupervisionResult(supervisionRequestId: string, requestBody: SupervisionResult): CancelablePromise<string>;
39
+ /**
40
+ * Get the review payload for a supervision request
41
+ * @param supervisionRequestId
42
+ * @returns ReviewPayload Review payload for the supervision request
43
+ * @throws ApiError
44
+ */
45
+ static getSupervisionReviewPayload(supervisionRequestId: string): CancelablePromise<ReviewPayload>;
46
+ }