@airtop/sdk 1.0.0-alpha2.22 → 1.0.0-alpha2.23
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.
- package/dist/index.cjs +75 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -60
- package/dist/index.d.ts +60 -60
- package/dist/index.js +75 -50
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
@@ -11,10 +11,10 @@ import { AutomationUpdateDescriptionParams } from '@airtop/core/resources/automa
|
|
11
11
|
import { SessionListParams, ProfileOutput, FileListParams, FileCreateFileParams, WindowCreateParams, WindowIDData, EnvelopeDefaultMeta as EnvelopeDefaultMeta$1, Issue as Issue$1, WindowInfo, WindowGetParams, AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
12
12
|
export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
13
13
|
import * as _airtop_core_resources_sessions_mjs from '@airtop/core/resources/sessions.mjs';
|
14
|
-
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
15
|
-
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
16
14
|
import * as _airtop_core_resources_js from '@airtop/core/resources.js';
|
17
15
|
import { ConnectedServicesActionResponseEnvelope } from '@airtop/core/resources.js';
|
16
|
+
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
17
|
+
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
18
18
|
export { DeepOmit } from 'deep-utility-types';
|
19
19
|
|
20
20
|
/**
|
@@ -214,7 +214,7 @@ interface AirtopConstructorConfig {
|
|
214
214
|
apiKey: string;
|
215
215
|
/**
|
216
216
|
* The base URL for the Airtop API.
|
217
|
-
* Defaults to https://api.airtop.ai/api
|
217
|
+
* Defaults to https://api.airtop.ai/api if not specified.
|
218
218
|
*/
|
219
219
|
airtopUrl?: string;
|
220
220
|
/**
|
@@ -1127,17 +1127,15 @@ interface AirtopAgentUpdateAgentParams extends Airtop.AgentUpdateAgentParams {
|
|
1127
1127
|
}
|
1128
1128
|
interface AirtopAgentDeleteAgentsParams extends Airtop.AgentDeleteAgentsParams {
|
1129
1129
|
}
|
1130
|
-
interface AirtopAgentDuplicateAgentParams extends Airtop.AgentDuplicateAgentParams {
|
1131
|
-
}
|
1132
|
-
interface AirtopAgentCreateVersionParams extends Airtop.AgentCreateVersionParams {
|
1133
|
-
}
|
1134
|
-
interface AirtopAgentGetVersionsParams extends Airtop.AgentGetVersionsParams {
|
1135
|
-
}
|
1136
1130
|
interface AirtopAgentCreateInvocationParams extends Airtop.AgentCreateInvocationParams {
|
1137
1131
|
}
|
1138
1132
|
interface AirtopAgentGetInvocationsParams extends Airtop.AgentGetInvocationsParams {
|
1139
1133
|
}
|
1140
|
-
interface AirtopAgentCancelInvocationParams extends Airtop.AgentCancelInvocationParams {
|
1134
|
+
interface AirtopAgentCancelInvocationParams extends Omit<Airtop.AgentCancelInvocationParams, "id"> {
|
1135
|
+
}
|
1136
|
+
interface AirtopAgentGetVersionDataParams extends Airtop.AgentGetCurrentAgentVersionParams {
|
1137
|
+
}
|
1138
|
+
interface AirtopAgentUpdateVersionDataParams extends Omit<Airtop.AgentUpdateAgentVersionDataParams, "id"> {
|
1141
1139
|
}
|
1142
1140
|
interface AirtopCreateAgentResponse extends Airtop.CreateAgentResponse {
|
1143
1141
|
}
|
@@ -1149,18 +1147,20 @@ interface AirtopUpdateAgentResponse extends Airtop.UpdateAgentResponse {
|
|
1149
1147
|
}
|
1150
1148
|
interface AirtopDeleteAgentsResponse extends Airtop.DeleteResponse {
|
1151
1149
|
}
|
1152
|
-
interface AirtopDuplicateAgentResponse extends Airtop.DuplicateAgentResponse {
|
1153
|
-
}
|
1154
|
-
interface AirtopCreateAgentVersionResponse extends Airtop.CreateAgentVersionResponse {
|
1155
|
-
}
|
1156
|
-
interface AirtopGetAgentVersionsResponse extends Airtop.GetAgentVersionsResponse {
|
1157
|
-
}
|
1158
1150
|
interface AirtopCreateAgentInvocationResponse extends Airtop.CreateAgentInvocationResponse {
|
1159
1151
|
}
|
1160
1152
|
interface AirtopGetAgentInvocationsResponse extends Airtop.GetAgentInvocationsResponse {
|
1161
1153
|
}
|
1162
1154
|
interface AirtopAgentResponse extends Airtop.GetAgentResponse {
|
1163
1155
|
}
|
1156
|
+
interface AirtopCreateNewAgentDraftResponse extends Airtop.AgentCreateDraftResponse {
|
1157
|
+
}
|
1158
|
+
interface AirtopPublishNewAgentResponse extends Airtop.AgentPublishAgentResponse {
|
1159
|
+
}
|
1160
|
+
interface AirtopGetAgentVersionDataResponse extends Airtop.AgentGetVersionDataResponse {
|
1161
|
+
}
|
1162
|
+
interface AirtopUpdateVersionDataResponse extends Airtop.AgentUpdateVersionDataResponse {
|
1163
|
+
}
|
1164
1164
|
|
1165
1165
|
/**
|
1166
1166
|
* Client for making Agent-specific requests to the Airtop API.
|
@@ -1172,85 +1172,85 @@ declare class AirtopAgentClient extends AirtopBase {
|
|
1172
1172
|
*/
|
1173
1173
|
constructor(config: AirtopConstructorConfig);
|
1174
1174
|
/**
|
1175
|
-
* Creates a new agent.
|
1176
|
-
* @param params - Parameters for creating the agent.
|
1175
|
+
* Creates a new agent. A new draft version is created by default.
|
1176
|
+
* @param params - Parameters for creating the agent.
|
1177
1177
|
* @param requestOptions - Request options.
|
1178
|
-
* @returns The created agent data
|
1178
|
+
* @returns The created agent data.
|
1179
1179
|
*/
|
1180
1180
|
createAgent(params: AirtopAgentCreateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentResponse>;
|
1181
1181
|
/**
|
1182
1182
|
* Retrieves a specific agent by its ID.
|
1183
1183
|
* @param agentId - The ID of the agent to retrieve.
|
1184
1184
|
* @param requestOptions - Request options.
|
1185
|
-
* @returns The agent data
|
1185
|
+
* @returns The agent data.
|
1186
1186
|
*/
|
1187
|
-
getAgent(agentId: string,
|
1188
|
-
requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentResponse>;
|
1187
|
+
getAgent(agentId: string, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentResponse>;
|
1189
1188
|
/**
|
1190
1189
|
* Lists agents.
|
1191
|
-
* @param params - Optional parameters for listing agents (e.g., pagination).
|
1190
|
+
* @param params - Optional parameters for listing agents (e.g., pagination).
|
1192
1191
|
* @param requestOptions - Request options.
|
1193
|
-
* @returns A list of agents
|
1192
|
+
* @returns A list of agents.
|
1194
1193
|
*/
|
1195
1194
|
listAgents(params?: AirtopAgentGetAgentsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentsResponse>;
|
1196
1195
|
/**
|
1197
|
-
*
|
1198
|
-
* @param agentId - The ID of the agent to
|
1199
|
-
* @param params - The new data for the agent. Corresponds to `AirtopAgentUpdateAgentParams`.
|
1196
|
+
* Creates a new draft version of an agent. If one already exists, does nothing.
|
1197
|
+
* @param agentId - The ID of the agent for which to create a new draft version.
|
1200
1198
|
* @param requestOptions - Request options.
|
1201
|
-
* @returns The
|
1199
|
+
* @returns The draft version data.
|
1202
1200
|
*/
|
1203
|
-
|
1204
|
-
params: AirtopAgentUpdateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateAgentResponse>;
|
1201
|
+
createNewAgentDraftVersion(agentId: string, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateNewAgentDraftResponse>;
|
1205
1202
|
/**
|
1206
|
-
*
|
1207
|
-
* @param
|
1203
|
+
* Publishes a new version of an agent from the current draft.
|
1204
|
+
* @param agentId - The ID of the agent to publish.
|
1205
|
+
* @returns The published version data
|
1206
|
+
*/
|
1207
|
+
publishNewAgentVersion(agentId: string): Promise<AirtopPublishNewAgentResponse>;
|
1208
|
+
/**
|
1209
|
+
* Retrieves the data for a specific version of an agent.
|
1210
|
+
* @param agentId - The ID of the agent.
|
1211
|
+
* @param version - The version number of the agent to retrieve.
|
1208
1212
|
* @param requestOptions - Request options.
|
1209
|
-
* @returns
|
1213
|
+
* @returns The agent version data.
|
1210
1214
|
*/
|
1211
|
-
|
1215
|
+
getAgentVersionData(agentId: string, version: number, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentVersionDataResponse>;
|
1216
|
+
updateAgentVersionData(agentId: string, version: number, params: AirtopAgentUpdateVersionDataParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateVersionDataResponse>;
|
1212
1217
|
/**
|
1213
|
-
*
|
1214
|
-
* @param agentId - The ID of the agent
|
1215
|
-
* @param params -
|
1218
|
+
* Retrieves the current version data of an agent. This is the version that is currently active or in draft state.
|
1219
|
+
* @param agentId - The ID of the agent.
|
1220
|
+
* @param params - Optional parameters for retrieving the version data.
|
1216
1221
|
* @param requestOptions - Request options.
|
1217
|
-
* @returns The
|
1222
|
+
* @returns The current agent version data
|
1218
1223
|
*/
|
1219
|
-
|
1220
|
-
params: AirtopAgentDuplicateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopDuplicateAgentResponse>;
|
1224
|
+
getCurrentAgentVersionData(agentId: string, params?: AirtopAgentGetVersionDataParams, requestOptions?: AirtopRequestOptions): Promise<_airtop_core_resources_shared_mjs.AgentGetCurrentVersionDataResponse>;
|
1221
1225
|
/**
|
1222
|
-
*
|
1223
|
-
* @param agentId - The ID of the agent
|
1224
|
-
* @param params -
|
1226
|
+
* Updates an existing agent.
|
1227
|
+
* @param agentId - The ID of the agent to update.
|
1228
|
+
* @param params - The new data for the agent.
|
1225
1229
|
* @param requestOptions - Request options.
|
1226
|
-
* @returns The
|
1230
|
+
* @returns The updated agent data.
|
1227
1231
|
*/
|
1228
|
-
|
1229
|
-
params: AirtopAgentCreateVersionParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentVersionResponse>;
|
1232
|
+
updateAgent(agentId: string, params: AirtopAgentUpdateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateAgentResponse>;
|
1230
1233
|
/**
|
1231
|
-
*
|
1232
|
-
* @param
|
1233
|
-
* @param params - Optional parameters for listing agent versions. Corresponds to `AirtopAgentGetVersionsParams`.
|
1234
|
+
* Deletes one or more agents.
|
1235
|
+
* @param params - Parameters for deleting agents.
|
1234
1236
|
* @param requestOptions - Request options.
|
1235
|
-
* @returns A
|
1237
|
+
* @returns A response confirming the deletion.
|
1236
1238
|
*/
|
1237
|
-
|
1238
|
-
params?: AirtopAgentGetVersionsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentVersionsResponse>;
|
1239
|
+
deleteAgents(params: AirtopAgentDeleteAgentsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopDeleteAgentsResponse>;
|
1239
1240
|
/**
|
1240
1241
|
* Creates an invocation for an agent.
|
1241
1242
|
* @param agentId - The ID of the agent for which to create an invocation.
|
1242
|
-
* @param params - Parameters for creating the agent invocation.
|
1243
|
+
* @param params - Parameters for creating the agent invocation.
|
1243
1244
|
* @param requestOptions - Request options.
|
1244
|
-
* @returns The created agent invocation data
|
1245
|
+
* @returns The created agent invocation data.
|
1245
1246
|
*/
|
1246
|
-
createAgentInvocation(agentId: string,
|
1247
|
-
params: AirtopAgentCreateInvocationParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentInvocationResponse>;
|
1247
|
+
createAgentInvocation(agentId: string, params: AirtopAgentCreateInvocationParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentInvocationResponse>;
|
1248
1248
|
/**
|
1249
1249
|
* Lists invocations of an agent.
|
1250
1250
|
* @param agentIds - The ID of the agent whose invocations to list.
|
1251
|
-
* @param params - Optional parameters for listing agent invocations.
|
1251
|
+
* @param params - Optional parameters for listing agent invocations.
|
1252
1252
|
* @param requestOptions - Request options.
|
1253
|
-
* @returns A list of agent invocations
|
1253
|
+
* @returns A list of agent invocations.
|
1254
1254
|
*/
|
1255
1255
|
listAgentInvocations(agentIds: string, // Renamed
|
1256
1256
|
params?: AirtopAgentGetInvocationsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentInvocationsResponse>;
|
@@ -1258,7 +1258,7 @@ declare class AirtopAgentClient extends AirtopBase {
|
|
1258
1258
|
* Cancels a specific invocation of an agent.
|
1259
1259
|
* @param agentId - The ID of the agent.
|
1260
1260
|
* @param invocationId - The ID of the invocation to cancel.
|
1261
|
-
* @param paramsBody - Optional body parameters for cancelling the invocation.
|
1261
|
+
* @param paramsBody - Optional body parameters for cancelling the invocation.
|
1262
1262
|
* @param requestOptions - Request options.
|
1263
1263
|
* @returns A promise that resolves when the operation is complete.
|
1264
1264
|
*/
|
@@ -1433,4 +1433,4 @@ interface AirtopPluginRegistration {
|
|
1433
1433
|
*/
|
1434
1434
|
declare function registerAirtopPlugin(plugin: AirtopPluginRegistration): void;
|
1435
1435
|
|
1436
|
-
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type
|
1436
|
+
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type AirtopAgentDeleteAgentsParams, type AirtopAgentGetAgentsParams, type AirtopAgentGetInvocationsParams, type AirtopAgentGetVersionDataParams, type AirtopAgentResponse, type AirtopAgentUpdateAgentParams, type AirtopAgentUpdateVersionDataParams, type AirtopAutomationData, type AirtopAutomationListResponse, type AirtopAutomationUpdateDescriptionConfig, AirtopBase, AirtopClient, type AirtopClientPlugin, type AirtopConstructorConfig, type AirtopCreateAgentInvocationResponse, type AirtopCreateAgentResponse, type AirtopCreateNewAgentDraftResponse, type AirtopDeleteAgentsResponse, AirtopError, type AirtopFileListParams, type AirtopFileResponse, type AirtopFilesResponse, type AirtopGetAgentInvocationsResponse, type AirtopGetAgentResponse, type AirtopGetAgentVersionDataResponse, type AirtopGetAgentsResponse, AirtopMocks, AirtopNode, type AirtopNodeApiResponseData, AirtopPluginAugmentationType, type AirtopPluginRegistration, type AirtopPluginType, type AirtopProfile, type AirtopPublishNewAgentResponse, type AirtopRequestOptions, AirtopSession, AirtopSessionClient, type AirtopSessionClientPlugin, type AirtopSessionPlugin, type AirtopSessionResponse, type AirtopUpdateAgentResponse, type AirtopUpdateVersionDataResponse, AirtopWindow, AirtopWindowClient, type AirtopWindowClientPlugin, type AirtopWindowCreateResponse, type AirtopWindowGetInfoResponse, type AirtopWindowPlugin, AirtopWindowScreenshot, type AirtopWindowScreenshotPlugin, type AirtopWindowScreenshotResponse, type CommonAirtopConfig, type CommonResponse, type CommonWindowResponse, type CreateFileConfig, type CreateSessionConfig, type GetFilesConfig, type GetSessionsConfig, type OutputJsonSchemaConfig, type ScreenshotData, type SessionData, type SessionError, type SessionMetadata, type SessionServiceResponse, type SessionWarning, type WindowActConfig, type WindowActResponse, type WindowClickConfig, type WindowCreateData, type WindowCreateOptions, type WindowError, type WindowExtractConfig, type WindowExtractResponse, type WindowFillFormConfig, type WindowFindManyConfig, type WindowFindManyResponse, type WindowFindOneConfig, type WindowFindOneResponse, type WindowGetConfig, type WindowHoverConfig, type WindowInfoData, type WindowLlmConfig, type WindowLlmResponse, type WindowLoadUrlConfig, type WindowMetadata, type WindowMonitorConfig, type WindowNavigateConfig, WindowNavigateDirection, type WindowNavigateResponse, type WindowPageQueryConfig, type WindowPaginatedExtractionConfig, type WindowPromptResponse, type WindowScrapeConfig, type WindowScrapeResponse, type WindowScreenshotConfig, type WindowScrollConfig, type WindowTypeConfig, type WindowWaitForPageConfig, type WindowWaitForPageResponse, type WindowWarning, registerAirtopPlugin };
|
package/dist/index.d.ts
CHANGED
@@ -11,10 +11,10 @@ import { AutomationUpdateDescriptionParams } from '@airtop/core/resources/automa
|
|
11
11
|
import { SessionListParams, ProfileOutput, FileListParams, FileCreateFileParams, WindowCreateParams, WindowIDData, EnvelopeDefaultMeta as EnvelopeDefaultMeta$1, Issue as Issue$1, WindowInfo, WindowGetParams, AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
12
12
|
export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
13
13
|
import * as _airtop_core_resources_sessions_mjs from '@airtop/core/resources/sessions.mjs';
|
14
|
-
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
15
|
-
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
16
14
|
import * as _airtop_core_resources_js from '@airtop/core/resources.js';
|
17
15
|
import { ConnectedServicesActionResponseEnvelope } from '@airtop/core/resources.js';
|
16
|
+
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
17
|
+
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
18
18
|
export { DeepOmit } from 'deep-utility-types';
|
19
19
|
|
20
20
|
/**
|
@@ -214,7 +214,7 @@ interface AirtopConstructorConfig {
|
|
214
214
|
apiKey: string;
|
215
215
|
/**
|
216
216
|
* The base URL for the Airtop API.
|
217
|
-
* Defaults to https://api.airtop.ai/api
|
217
|
+
* Defaults to https://api.airtop.ai/api if not specified.
|
218
218
|
*/
|
219
219
|
airtopUrl?: string;
|
220
220
|
/**
|
@@ -1127,17 +1127,15 @@ interface AirtopAgentUpdateAgentParams extends Airtop.AgentUpdateAgentParams {
|
|
1127
1127
|
}
|
1128
1128
|
interface AirtopAgentDeleteAgentsParams extends Airtop.AgentDeleteAgentsParams {
|
1129
1129
|
}
|
1130
|
-
interface AirtopAgentDuplicateAgentParams extends Airtop.AgentDuplicateAgentParams {
|
1131
|
-
}
|
1132
|
-
interface AirtopAgentCreateVersionParams extends Airtop.AgentCreateVersionParams {
|
1133
|
-
}
|
1134
|
-
interface AirtopAgentGetVersionsParams extends Airtop.AgentGetVersionsParams {
|
1135
|
-
}
|
1136
1130
|
interface AirtopAgentCreateInvocationParams extends Airtop.AgentCreateInvocationParams {
|
1137
1131
|
}
|
1138
1132
|
interface AirtopAgentGetInvocationsParams extends Airtop.AgentGetInvocationsParams {
|
1139
1133
|
}
|
1140
|
-
interface AirtopAgentCancelInvocationParams extends Airtop.AgentCancelInvocationParams {
|
1134
|
+
interface AirtopAgentCancelInvocationParams extends Omit<Airtop.AgentCancelInvocationParams, "id"> {
|
1135
|
+
}
|
1136
|
+
interface AirtopAgentGetVersionDataParams extends Airtop.AgentGetCurrentAgentVersionParams {
|
1137
|
+
}
|
1138
|
+
interface AirtopAgentUpdateVersionDataParams extends Omit<Airtop.AgentUpdateAgentVersionDataParams, "id"> {
|
1141
1139
|
}
|
1142
1140
|
interface AirtopCreateAgentResponse extends Airtop.CreateAgentResponse {
|
1143
1141
|
}
|
@@ -1149,18 +1147,20 @@ interface AirtopUpdateAgentResponse extends Airtop.UpdateAgentResponse {
|
|
1149
1147
|
}
|
1150
1148
|
interface AirtopDeleteAgentsResponse extends Airtop.DeleteResponse {
|
1151
1149
|
}
|
1152
|
-
interface AirtopDuplicateAgentResponse extends Airtop.DuplicateAgentResponse {
|
1153
|
-
}
|
1154
|
-
interface AirtopCreateAgentVersionResponse extends Airtop.CreateAgentVersionResponse {
|
1155
|
-
}
|
1156
|
-
interface AirtopGetAgentVersionsResponse extends Airtop.GetAgentVersionsResponse {
|
1157
|
-
}
|
1158
1150
|
interface AirtopCreateAgentInvocationResponse extends Airtop.CreateAgentInvocationResponse {
|
1159
1151
|
}
|
1160
1152
|
interface AirtopGetAgentInvocationsResponse extends Airtop.GetAgentInvocationsResponse {
|
1161
1153
|
}
|
1162
1154
|
interface AirtopAgentResponse extends Airtop.GetAgentResponse {
|
1163
1155
|
}
|
1156
|
+
interface AirtopCreateNewAgentDraftResponse extends Airtop.AgentCreateDraftResponse {
|
1157
|
+
}
|
1158
|
+
interface AirtopPublishNewAgentResponse extends Airtop.AgentPublishAgentResponse {
|
1159
|
+
}
|
1160
|
+
interface AirtopGetAgentVersionDataResponse extends Airtop.AgentGetVersionDataResponse {
|
1161
|
+
}
|
1162
|
+
interface AirtopUpdateVersionDataResponse extends Airtop.AgentUpdateVersionDataResponse {
|
1163
|
+
}
|
1164
1164
|
|
1165
1165
|
/**
|
1166
1166
|
* Client for making Agent-specific requests to the Airtop API.
|
@@ -1172,85 +1172,85 @@ declare class AirtopAgentClient extends AirtopBase {
|
|
1172
1172
|
*/
|
1173
1173
|
constructor(config: AirtopConstructorConfig);
|
1174
1174
|
/**
|
1175
|
-
* Creates a new agent.
|
1176
|
-
* @param params - Parameters for creating the agent.
|
1175
|
+
* Creates a new agent. A new draft version is created by default.
|
1176
|
+
* @param params - Parameters for creating the agent.
|
1177
1177
|
* @param requestOptions - Request options.
|
1178
|
-
* @returns The created agent data
|
1178
|
+
* @returns The created agent data.
|
1179
1179
|
*/
|
1180
1180
|
createAgent(params: AirtopAgentCreateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentResponse>;
|
1181
1181
|
/**
|
1182
1182
|
* Retrieves a specific agent by its ID.
|
1183
1183
|
* @param agentId - The ID of the agent to retrieve.
|
1184
1184
|
* @param requestOptions - Request options.
|
1185
|
-
* @returns The agent data
|
1185
|
+
* @returns The agent data.
|
1186
1186
|
*/
|
1187
|
-
getAgent(agentId: string,
|
1188
|
-
requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentResponse>;
|
1187
|
+
getAgent(agentId: string, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentResponse>;
|
1189
1188
|
/**
|
1190
1189
|
* Lists agents.
|
1191
|
-
* @param params - Optional parameters for listing agents (e.g., pagination).
|
1190
|
+
* @param params - Optional parameters for listing agents (e.g., pagination).
|
1192
1191
|
* @param requestOptions - Request options.
|
1193
|
-
* @returns A list of agents
|
1192
|
+
* @returns A list of agents.
|
1194
1193
|
*/
|
1195
1194
|
listAgents(params?: AirtopAgentGetAgentsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentsResponse>;
|
1196
1195
|
/**
|
1197
|
-
*
|
1198
|
-
* @param agentId - The ID of the agent to
|
1199
|
-
* @param params - The new data for the agent. Corresponds to `AirtopAgentUpdateAgentParams`.
|
1196
|
+
* Creates a new draft version of an agent. If one already exists, does nothing.
|
1197
|
+
* @param agentId - The ID of the agent for which to create a new draft version.
|
1200
1198
|
* @param requestOptions - Request options.
|
1201
|
-
* @returns The
|
1199
|
+
* @returns The draft version data.
|
1202
1200
|
*/
|
1203
|
-
|
1204
|
-
params: AirtopAgentUpdateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateAgentResponse>;
|
1201
|
+
createNewAgentDraftVersion(agentId: string, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateNewAgentDraftResponse>;
|
1205
1202
|
/**
|
1206
|
-
*
|
1207
|
-
* @param
|
1203
|
+
* Publishes a new version of an agent from the current draft.
|
1204
|
+
* @param agentId - The ID of the agent to publish.
|
1205
|
+
* @returns The published version data
|
1206
|
+
*/
|
1207
|
+
publishNewAgentVersion(agentId: string): Promise<AirtopPublishNewAgentResponse>;
|
1208
|
+
/**
|
1209
|
+
* Retrieves the data for a specific version of an agent.
|
1210
|
+
* @param agentId - The ID of the agent.
|
1211
|
+
* @param version - The version number of the agent to retrieve.
|
1208
1212
|
* @param requestOptions - Request options.
|
1209
|
-
* @returns
|
1213
|
+
* @returns The agent version data.
|
1210
1214
|
*/
|
1211
|
-
|
1215
|
+
getAgentVersionData(agentId: string, version: number, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentVersionDataResponse>;
|
1216
|
+
updateAgentVersionData(agentId: string, version: number, params: AirtopAgentUpdateVersionDataParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateVersionDataResponse>;
|
1212
1217
|
/**
|
1213
|
-
*
|
1214
|
-
* @param agentId - The ID of the agent
|
1215
|
-
* @param params -
|
1218
|
+
* Retrieves the current version data of an agent. This is the version that is currently active or in draft state.
|
1219
|
+
* @param agentId - The ID of the agent.
|
1220
|
+
* @param params - Optional parameters for retrieving the version data.
|
1216
1221
|
* @param requestOptions - Request options.
|
1217
|
-
* @returns The
|
1222
|
+
* @returns The current agent version data
|
1218
1223
|
*/
|
1219
|
-
|
1220
|
-
params: AirtopAgentDuplicateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopDuplicateAgentResponse>;
|
1224
|
+
getCurrentAgentVersionData(agentId: string, params?: AirtopAgentGetVersionDataParams, requestOptions?: AirtopRequestOptions): Promise<_airtop_core_resources_shared_mjs.AgentGetCurrentVersionDataResponse>;
|
1221
1225
|
/**
|
1222
|
-
*
|
1223
|
-
* @param agentId - The ID of the agent
|
1224
|
-
* @param params -
|
1226
|
+
* Updates an existing agent.
|
1227
|
+
* @param agentId - The ID of the agent to update.
|
1228
|
+
* @param params - The new data for the agent.
|
1225
1229
|
* @param requestOptions - Request options.
|
1226
|
-
* @returns The
|
1230
|
+
* @returns The updated agent data.
|
1227
1231
|
*/
|
1228
|
-
|
1229
|
-
params: AirtopAgentCreateVersionParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentVersionResponse>;
|
1232
|
+
updateAgent(agentId: string, params: AirtopAgentUpdateAgentParams, requestOptions?: AirtopRequestOptions): Promise<AirtopUpdateAgentResponse>;
|
1230
1233
|
/**
|
1231
|
-
*
|
1232
|
-
* @param
|
1233
|
-
* @param params - Optional parameters for listing agent versions. Corresponds to `AirtopAgentGetVersionsParams`.
|
1234
|
+
* Deletes one or more agents.
|
1235
|
+
* @param params - Parameters for deleting agents.
|
1234
1236
|
* @param requestOptions - Request options.
|
1235
|
-
* @returns A
|
1237
|
+
* @returns A response confirming the deletion.
|
1236
1238
|
*/
|
1237
|
-
|
1238
|
-
params?: AirtopAgentGetVersionsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentVersionsResponse>;
|
1239
|
+
deleteAgents(params: AirtopAgentDeleteAgentsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopDeleteAgentsResponse>;
|
1239
1240
|
/**
|
1240
1241
|
* Creates an invocation for an agent.
|
1241
1242
|
* @param agentId - The ID of the agent for which to create an invocation.
|
1242
|
-
* @param params - Parameters for creating the agent invocation.
|
1243
|
+
* @param params - Parameters for creating the agent invocation.
|
1243
1244
|
* @param requestOptions - Request options.
|
1244
|
-
* @returns The created agent invocation data
|
1245
|
+
* @returns The created agent invocation data.
|
1245
1246
|
*/
|
1246
|
-
createAgentInvocation(agentId: string,
|
1247
|
-
params: AirtopAgentCreateInvocationParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentInvocationResponse>;
|
1247
|
+
createAgentInvocation(agentId: string, params: AirtopAgentCreateInvocationParams, requestOptions?: AirtopRequestOptions): Promise<AirtopCreateAgentInvocationResponse>;
|
1248
1248
|
/**
|
1249
1249
|
* Lists invocations of an agent.
|
1250
1250
|
* @param agentIds - The ID of the agent whose invocations to list.
|
1251
|
-
* @param params - Optional parameters for listing agent invocations.
|
1251
|
+
* @param params - Optional parameters for listing agent invocations.
|
1252
1252
|
* @param requestOptions - Request options.
|
1253
|
-
* @returns A list of agent invocations
|
1253
|
+
* @returns A list of agent invocations.
|
1254
1254
|
*/
|
1255
1255
|
listAgentInvocations(agentIds: string, // Renamed
|
1256
1256
|
params?: AirtopAgentGetInvocationsParams, requestOptions?: AirtopRequestOptions): Promise<AirtopGetAgentInvocationsResponse>;
|
@@ -1258,7 +1258,7 @@ declare class AirtopAgentClient extends AirtopBase {
|
|
1258
1258
|
* Cancels a specific invocation of an agent.
|
1259
1259
|
* @param agentId - The ID of the agent.
|
1260
1260
|
* @param invocationId - The ID of the invocation to cancel.
|
1261
|
-
* @param paramsBody - Optional body parameters for cancelling the invocation.
|
1261
|
+
* @param paramsBody - Optional body parameters for cancelling the invocation.
|
1262
1262
|
* @param requestOptions - Request options.
|
1263
1263
|
* @returns A promise that resolves when the operation is complete.
|
1264
1264
|
*/
|
@@ -1433,4 +1433,4 @@ interface AirtopPluginRegistration {
|
|
1433
1433
|
*/
|
1434
1434
|
declare function registerAirtopPlugin(plugin: AirtopPluginRegistration): void;
|
1435
1435
|
|
1436
|
-
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type
|
1436
|
+
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type AirtopAgentDeleteAgentsParams, type AirtopAgentGetAgentsParams, type AirtopAgentGetInvocationsParams, type AirtopAgentGetVersionDataParams, type AirtopAgentResponse, type AirtopAgentUpdateAgentParams, type AirtopAgentUpdateVersionDataParams, type AirtopAutomationData, type AirtopAutomationListResponse, type AirtopAutomationUpdateDescriptionConfig, AirtopBase, AirtopClient, type AirtopClientPlugin, type AirtopConstructorConfig, type AirtopCreateAgentInvocationResponse, type AirtopCreateAgentResponse, type AirtopCreateNewAgentDraftResponse, type AirtopDeleteAgentsResponse, AirtopError, type AirtopFileListParams, type AirtopFileResponse, type AirtopFilesResponse, type AirtopGetAgentInvocationsResponse, type AirtopGetAgentResponse, type AirtopGetAgentVersionDataResponse, type AirtopGetAgentsResponse, AirtopMocks, AirtopNode, type AirtopNodeApiResponseData, AirtopPluginAugmentationType, type AirtopPluginRegistration, type AirtopPluginType, type AirtopProfile, type AirtopPublishNewAgentResponse, type AirtopRequestOptions, AirtopSession, AirtopSessionClient, type AirtopSessionClientPlugin, type AirtopSessionPlugin, type AirtopSessionResponse, type AirtopUpdateAgentResponse, type AirtopUpdateVersionDataResponse, AirtopWindow, AirtopWindowClient, type AirtopWindowClientPlugin, type AirtopWindowCreateResponse, type AirtopWindowGetInfoResponse, type AirtopWindowPlugin, AirtopWindowScreenshot, type AirtopWindowScreenshotPlugin, type AirtopWindowScreenshotResponse, type CommonAirtopConfig, type CommonResponse, type CommonWindowResponse, type CreateFileConfig, type CreateSessionConfig, type GetFilesConfig, type GetSessionsConfig, type OutputJsonSchemaConfig, type ScreenshotData, type SessionData, type SessionError, type SessionMetadata, type SessionServiceResponse, type SessionWarning, type WindowActConfig, type WindowActResponse, type WindowClickConfig, type WindowCreateData, type WindowCreateOptions, type WindowError, type WindowExtractConfig, type WindowExtractResponse, type WindowFillFormConfig, type WindowFindManyConfig, type WindowFindManyResponse, type WindowFindOneConfig, type WindowFindOneResponse, type WindowGetConfig, type WindowHoverConfig, type WindowInfoData, type WindowLlmConfig, type WindowLlmResponse, type WindowLoadUrlConfig, type WindowMetadata, type WindowMonitorConfig, type WindowNavigateConfig, WindowNavigateDirection, type WindowNavigateResponse, type WindowPageQueryConfig, type WindowPaginatedExtractionConfig, type WindowPromptResponse, type WindowScrapeConfig, type WindowScrapeResponse, type WindowScreenshotConfig, type WindowScrollConfig, type WindowTypeConfig, type WindowWaitForPageConfig, type WindowWaitForPageResponse, type WindowWarning, registerAirtopPlugin };
|