asteroid-odyssey 1.2.4 → 1.3.1

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,89 +0,0 @@
1
- import { type Options as ClientOptions, type TDataShape, type Client } from '@hey-api/client-fetch';
2
- import type { GetOpenApiData, UploadExecutionFilesData, HealthCheckData, ExecuteAgentData, ExecuteAgentStructuredData, GetExecutionStatusData, GetExecutionResultData, GetBrowserSessionRecordingData, GetAgentProfilesData, CreateAgentProfileData, DeleteAgentProfileData, GetAgentProfileData, UpdateAgentProfileData, GetCredentialsPublicKeyData } from './types.gen';
3
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
- /**
5
- * You can provide a client instance returned by `createClient()` instead of
6
- * individual options. This might be also useful if you want to implement a
7
- * custom client.
8
- */
9
- client?: Client;
10
- /**
11
- * You can pass arbitrary values through the `meta` object. This can be
12
- * used to access values that aren't defined as part of the SDK function.
13
- */
14
- meta?: Record<string, unknown>;
15
- };
16
- /**
17
- * Get the OpenAPI schema
18
- */
19
- export declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options<GetOpenApiData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
20
- /**
21
- * Upload files to an execution
22
- */
23
- export declare const uploadExecutionFiles: <ThrowOnError extends boolean = false>(options: Options<UploadExecutionFilesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
24
- message?: string;
25
- file_ids?: Array<string>;
26
- }, import("./types.gen").ErrorResponse, ThrowOnError>;
27
- /**
28
- * Check the health of the API
29
- */
30
- export declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options<HealthCheckData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
31
- status?: string;
32
- }, {
33
- error?: string;
34
- }, ThrowOnError>;
35
- /**
36
- * @deprecated
37
- * Execute an agent
38
- * Executes an agent with the provided parameters
39
- */
40
- export declare const executeAgent: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ExecutionResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
41
- /**
42
- * Execute an agent with structured parameters
43
- * Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
44
- */
45
- export declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentStructuredData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ExecutionResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
46
- /**
47
- * Get execution status
48
- */
49
- export declare const getExecutionStatus: <ThrowOnError extends boolean = false>(options: Options<GetExecutionStatusData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ExecutionStatusResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
50
- /**
51
- * Get execution result
52
- */
53
- export declare const getExecutionResult: <ThrowOnError extends boolean = false>(options: Options<GetExecutionResultData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ExecutionResultResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
54
- /**
55
- * Get browser session recording
56
- * Retrieves the browser session recording URL for a completed execution
57
- */
58
- export declare const getBrowserSessionRecording: <ThrowOnError extends boolean = false>(options: Options<GetBrowserSessionRecordingData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").BrowserSessionRecordingResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
59
- /**
60
- * Get agent profiles
61
- * Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
62
- */
63
- export declare const getAgentProfiles: <ThrowOnError extends boolean = false>(options?: Options<GetAgentProfilesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AgentProfile[], import("./types.gen").ErrorResponse, ThrowOnError>;
64
- /**
65
- * Create an agent profile
66
- * Creates a new agent profile for the organization
67
- */
68
- export declare const createAgentProfile: <ThrowOnError extends boolean = false>(options: Options<CreateAgentProfileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AgentProfile, import("./types.gen").ErrorResponse, ThrowOnError>;
69
- /**
70
- * Delete an agent profile
71
- * Deletes the specified agent profile
72
- */
73
- export declare const deleteAgentProfile: <ThrowOnError extends boolean = false>(options: Options<DeleteAgentProfileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
74
- message?: string;
75
- }, import("./types.gen").ErrorResponse, ThrowOnError>;
76
- /**
77
- * Get an agent profile by ID
78
- * Returns the complete agent profile including credentials
79
- */
80
- export declare const getAgentProfile: <ThrowOnError extends boolean = false>(options: Options<GetAgentProfileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AgentProfile, import("./types.gen").ErrorResponse, ThrowOnError>;
81
- /**
82
- * Update an agent profile
83
- * Updates an agent profile including metadata and/or credentials
84
- */
85
- export declare const updateAgentProfile: <ThrowOnError extends boolean = false>(options: Options<UpdateAgentProfileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AgentProfile, import("./types.gen").ErrorResponse, ThrowOnError>;
86
- /**
87
- * Get the public key for credentials
88
- */
89
- export declare const getCredentialsPublicKey: <ThrowOnError extends boolean = false>(options?: Options<GetCredentialsPublicKeyData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<string, unknown, ThrowOnError>;
@@ -1,248 +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.getCredentialsPublicKey = 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;
233
- /**
234
- * Get the public key for credentials
235
- */
236
- const getCredentialsPublicKey = (options) => {
237
- return (options?.client ?? client_gen_1.client).get({
238
- security: [
239
- {
240
- name: 'X-Asteroid-Agents-Api-Key',
241
- type: 'apiKey'
242
- }
243
- ],
244
- url: '/credentials/public_key',
245
- ...options
246
- });
247
- };
248
- exports.getCredentialsPublicKey = getCredentialsPublicKey;