asteroid-odyssey 1.2.3 → 1.3.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.
@@ -1,232 +0,0 @@
1
- "use strict";
2
- // This file is auto-generated by @hey-api/openapi-ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateAgentProfile = exports.getAgentProfile = exports.deleteAgentProfile = exports.createAgentProfile = exports.getAgentProfiles = exports.getBrowserSessionRecording = exports.getExecutionResult = exports.getExecutionStatus = exports.executeAgentStructured = exports.executeAgent = exports.healthCheck = exports.uploadExecutionFiles = exports.getOpenApi = void 0;
5
- const client_fetch_1 = require("@hey-api/client-fetch");
6
- const client_gen_1 = require("./client.gen");
7
- /**
8
- * Get the OpenAPI schema
9
- */
10
- const getOpenApi = (options) => {
11
- return (options?.client ?? client_gen_1.client).get({
12
- url: '/openapi.yaml',
13
- ...options
14
- });
15
- };
16
- exports.getOpenApi = getOpenApi;
17
- /**
18
- * Upload files to an execution
19
- */
20
- const uploadExecutionFiles = (options) => {
21
- return (options.client ?? client_gen_1.client).post({
22
- ...client_fetch_1.formDataBodySerializer,
23
- security: [
24
- {
25
- name: 'X-Asteroid-Agents-Api-Key',
26
- type: 'apiKey'
27
- }
28
- ],
29
- url: '/execution/{id}/files',
30
- ...options,
31
- headers: {
32
- 'Content-Type': null,
33
- ...options?.headers
34
- }
35
- });
36
- };
37
- exports.uploadExecutionFiles = uploadExecutionFiles;
38
- /**
39
- * Check the health of the API
40
- */
41
- const healthCheck = (options) => {
42
- return (options?.client ?? client_gen_1.client).get({
43
- url: '/health',
44
- ...options
45
- });
46
- };
47
- exports.healthCheck = healthCheck;
48
- /**
49
- * @deprecated
50
- * Execute an agent
51
- * Executes an agent with the provided parameters
52
- */
53
- const executeAgent = (options) => {
54
- return (options.client ?? client_gen_1.client).post({
55
- security: [
56
- {
57
- name: 'X-Asteroid-Agents-Api-Key',
58
- type: 'apiKey'
59
- }
60
- ],
61
- url: '/agent/{id}',
62
- ...options,
63
- headers: {
64
- 'Content-Type': 'application/json',
65
- ...options?.headers
66
- }
67
- });
68
- };
69
- exports.executeAgent = executeAgent;
70
- /**
71
- * Execute an agent with structured parameters
72
- * Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
73
- */
74
- const executeAgentStructured = (options) => {
75
- return (options.client ?? client_gen_1.client).post({
76
- security: [
77
- {
78
- name: 'X-Asteroid-Agents-Api-Key',
79
- type: 'apiKey'
80
- }
81
- ],
82
- url: '/agent/{id}/execute',
83
- ...options,
84
- headers: {
85
- 'Content-Type': 'application/json',
86
- ...options?.headers
87
- }
88
- });
89
- };
90
- exports.executeAgentStructured = executeAgentStructured;
91
- /**
92
- * Get execution status
93
- */
94
- const getExecutionStatus = (options) => {
95
- return (options.client ?? client_gen_1.client).get({
96
- security: [
97
- {
98
- name: 'X-Asteroid-Agents-Api-Key',
99
- type: 'apiKey'
100
- }
101
- ],
102
- url: '/execution/{id}/status',
103
- ...options
104
- });
105
- };
106
- exports.getExecutionStatus = getExecutionStatus;
107
- /**
108
- * Get execution result
109
- */
110
- const getExecutionResult = (options) => {
111
- return (options.client ?? client_gen_1.client).get({
112
- security: [
113
- {
114
- name: 'X-Asteroid-Agents-Api-Key',
115
- type: 'apiKey'
116
- }
117
- ],
118
- url: '/execution/{id}/result',
119
- ...options
120
- });
121
- };
122
- exports.getExecutionResult = getExecutionResult;
123
- /**
124
- * Get browser session recording
125
- * Retrieves the browser session recording URL for a completed execution
126
- */
127
- const getBrowserSessionRecording = (options) => {
128
- return (options.client ?? client_gen_1.client).get({
129
- security: [
130
- {
131
- name: 'X-Asteroid-Agents-Api-Key',
132
- type: 'apiKey'
133
- }
134
- ],
135
- url: '/execution/{id}/browser_session/recording',
136
- ...options
137
- });
138
- };
139
- exports.getBrowserSessionRecording = getBrowserSessionRecording;
140
- /**
141
- * Get agent profiles
142
- * Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
143
- */
144
- const getAgentProfiles = (options) => {
145
- return (options?.client ?? client_gen_1.client).get({
146
- security: [
147
- {
148
- name: 'X-Asteroid-Agents-Api-Key',
149
- type: 'apiKey'
150
- }
151
- ],
152
- url: '/agent-profiles',
153
- ...options
154
- });
155
- };
156
- exports.getAgentProfiles = getAgentProfiles;
157
- /**
158
- * Create an agent profile
159
- * Creates a new agent profile for the organization
160
- */
161
- const createAgentProfile = (options) => {
162
- return (options.client ?? client_gen_1.client).post({
163
- security: [
164
- {
165
- name: 'X-Asteroid-Agents-Api-Key',
166
- type: 'apiKey'
167
- }
168
- ],
169
- url: '/agent-profiles',
170
- ...options,
171
- headers: {
172
- 'Content-Type': 'application/json',
173
- ...options?.headers
174
- }
175
- });
176
- };
177
- exports.createAgentProfile = createAgentProfile;
178
- /**
179
- * Delete an agent profile
180
- * Deletes the specified agent profile
181
- */
182
- const deleteAgentProfile = (options) => {
183
- return (options.client ?? client_gen_1.client).delete({
184
- security: [
185
- {
186
- name: 'X-Asteroid-Agents-Api-Key',
187
- type: 'apiKey'
188
- }
189
- ],
190
- url: '/agent-profiles/{profile_id}',
191
- ...options
192
- });
193
- };
194
- exports.deleteAgentProfile = deleteAgentProfile;
195
- /**
196
- * Get an agent profile by ID
197
- * Returns the complete agent profile including credentials
198
- */
199
- const getAgentProfile = (options) => {
200
- return (options.client ?? client_gen_1.client).get({
201
- security: [
202
- {
203
- name: 'X-Asteroid-Agents-Api-Key',
204
- type: 'apiKey'
205
- }
206
- ],
207
- url: '/agent-profiles/{profile_id}',
208
- ...options
209
- });
210
- };
211
- exports.getAgentProfile = getAgentProfile;
212
- /**
213
- * Update an agent profile
214
- * Updates an agent profile including metadata and/or credentials
215
- */
216
- const updateAgentProfile = (options) => {
217
- return (options.client ?? client_gen_1.client).patch({
218
- security: [
219
- {
220
- name: 'X-Asteroid-Agents-Api-Key',
221
- type: 'apiKey'
222
- }
223
- ],
224
- url: '/agent-profiles/{profile_id}',
225
- ...options,
226
- headers: {
227
- 'Content-Type': 'application/json',
228
- ...options?.headers
229
- }
230
- });
231
- };
232
- exports.updateAgentProfile = updateAgentProfile;