@airtop/sdk 1.0.0-alpha2.20 → 1.0.0-alpha2.21
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 +19 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
@@ -4,7 +4,6 @@ import { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
|
4
4
|
export { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
5
5
|
import { ILogLayer } from 'loglayer';
|
6
6
|
export { ILogLayer } from 'loglayer';
|
7
|
-
import * as _airtop_core_resources_shared_js from '@airtop/core/resources/shared.js';
|
8
7
|
import { Issue, SessionConfigV1, GetFileResponse, FilesResponse, ListAutomationsOutput, AutomationData, ServicePromptActionResponseEnvelope, ExternalSessionWithConnectionInfo, EnvelopeDefaultMeta, ExtractActionResponseEnvelope, ActActionResponseEnvelope, LlmActionResponseEnvelope, NodeHandle, WaitForPageActionResponseEnvelope, NavigateActionResponseEnvelope, FindOneActionResponseEnvelope, FindManyActionResponseEnvelope, AIPromptResponse as AIPromptResponse$1, WindowIDDataResponse, OperationOutcomeResponse } from '@airtop/core/resources/shared.js';
|
9
8
|
export { AIResponseEnvelope, ActActionResponseData, AgentInvocationData, AgentVersionData, AirtopPagination, AsyncConfig, AsyncSessionAIResponseEnvelope, BrowserWaitNavigationConfig, ClickConfig, ClientProvidedResponseMetadata, CreateFileData, EnvelopeDefaultMeta, ExternalSessionAIResponseMetadata, ExternalSessionAIResponseMetadataUsage, ExternalSessionConfig, ExternalSessionWithConnectionInfo, ExtractActionResponseData, FindManyActionResponseData, FindOneActionResponseData, GetFileData, IntervalMonitorConfig, Issue, LlmActionResponseData, MicroInteractionConfig, MonitorConfig, NavigateActionResponseData, OperationOutcome, OperationOutcomeResponse, PageQueryConfig, PageQueryExperimentalConfig, PaginatedExtractionConfig, ScrapeResponseContent, ScrapeResponseEnvelope, ScrapeResponseOutput, ScreenshotConfig, ScreenshotMetadata, ScreenshotRequestConfig, ScreenshotScrollPosition, ScreenshotViewportDimensions, ScrollByConfig, ScrollToEdgeConfig, ServicePromptActionResponseData, SummaryExperimentalConfig, VisualAnalysisConfig, WaitForPageActionResponseData, WindowIDData, WindowIDDataResponse, WindowInfo, WindowResponse } from '@airtop/core/resources/shared.js';
|
10
9
|
import * as _airtop_core_resources_shared_mjs from '@airtop/core/resources/shared.mjs';
|
@@ -14,6 +13,8 @@ export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.j
|
|
14
13
|
import * as _airtop_core_resources_sessions_mjs from '@airtop/core/resources/sessions.mjs';
|
15
14
|
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
16
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
|
+
import * as _airtop_core_resources_js from '@airtop/core/resources.js';
|
17
|
+
import { ConnectedServicesActionResponseEnvelope } from '@airtop/core/resources.js';
|
17
18
|
export { DeepOmit } from 'deep-utility-types';
|
18
19
|
|
19
20
|
/**
|
@@ -692,10 +693,10 @@ declare class AirtopWindowScreenshot {
|
|
692
693
|
* Returns response data as a JSON object.
|
693
694
|
*/
|
694
695
|
toJSON(): {
|
695
|
-
data:
|
696
|
-
meta:
|
697
|
-
warnings:
|
698
|
-
errors:
|
696
|
+
data: _airtop_core_resources_js.AIResponseEnvelope;
|
697
|
+
meta: _airtop_core_resources_js.ExternalSessionAIResponseMetadata;
|
698
|
+
warnings: _airtop_core_resources_js.Issue[];
|
699
|
+
errors: _airtop_core_resources_js.Issue[];
|
699
700
|
};
|
700
701
|
}
|
701
702
|
|
@@ -941,6 +942,12 @@ declare class AirtopSessionClient extends AirtopBase {
|
|
941
942
|
* @param requestOptions - Request options
|
942
943
|
*/
|
943
944
|
service(prompt: string, service?: string, requestOptions?: AirtopRequestOptions): Promise<SessionServiceResponse>;
|
945
|
+
/**
|
946
|
+
* Retrieves the list of connected services available for the current session.
|
947
|
+
* @param requestOptions - Request options
|
948
|
+
* @returns A promise that resolves to the connected services response containing service details
|
949
|
+
*/
|
950
|
+
getConnectedServices(requestOptions?: AirtopRequestOptions): Promise<ConnectedServicesActionResponseEnvelope>;
|
944
951
|
}
|
945
952
|
|
946
953
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -4,7 +4,6 @@ import { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
|
4
4
|
export { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
5
5
|
import { ILogLayer } from 'loglayer';
|
6
6
|
export { ILogLayer } from 'loglayer';
|
7
|
-
import * as _airtop_core_resources_shared_js from '@airtop/core/resources/shared.js';
|
8
7
|
import { Issue, SessionConfigV1, GetFileResponse, FilesResponse, ListAutomationsOutput, AutomationData, ServicePromptActionResponseEnvelope, ExternalSessionWithConnectionInfo, EnvelopeDefaultMeta, ExtractActionResponseEnvelope, ActActionResponseEnvelope, LlmActionResponseEnvelope, NodeHandle, WaitForPageActionResponseEnvelope, NavigateActionResponseEnvelope, FindOneActionResponseEnvelope, FindManyActionResponseEnvelope, AIPromptResponse as AIPromptResponse$1, WindowIDDataResponse, OperationOutcomeResponse } from '@airtop/core/resources/shared.js';
|
9
8
|
export { AIResponseEnvelope, ActActionResponseData, AgentInvocationData, AgentVersionData, AirtopPagination, AsyncConfig, AsyncSessionAIResponseEnvelope, BrowserWaitNavigationConfig, ClickConfig, ClientProvidedResponseMetadata, CreateFileData, EnvelopeDefaultMeta, ExternalSessionAIResponseMetadata, ExternalSessionAIResponseMetadataUsage, ExternalSessionConfig, ExternalSessionWithConnectionInfo, ExtractActionResponseData, FindManyActionResponseData, FindOneActionResponseData, GetFileData, IntervalMonitorConfig, Issue, LlmActionResponseData, MicroInteractionConfig, MonitorConfig, NavigateActionResponseData, OperationOutcome, OperationOutcomeResponse, PageQueryConfig, PageQueryExperimentalConfig, PaginatedExtractionConfig, ScrapeResponseContent, ScrapeResponseEnvelope, ScrapeResponseOutput, ScreenshotConfig, ScreenshotMetadata, ScreenshotRequestConfig, ScreenshotScrollPosition, ScreenshotViewportDimensions, ScrollByConfig, ScrollToEdgeConfig, ServicePromptActionResponseData, SummaryExperimentalConfig, VisualAnalysisConfig, WaitForPageActionResponseData, WindowIDData, WindowIDDataResponse, WindowInfo, WindowResponse } from '@airtop/core/resources/shared.js';
|
10
9
|
import * as _airtop_core_resources_shared_mjs from '@airtop/core/resources/shared.mjs';
|
@@ -14,6 +13,8 @@ export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.j
|
|
14
13
|
import * as _airtop_core_resources_sessions_mjs from '@airtop/core/resources/sessions.mjs';
|
15
14
|
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
16
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
|
+
import * as _airtop_core_resources_js from '@airtop/core/resources.js';
|
17
|
+
import { ConnectedServicesActionResponseEnvelope } from '@airtop/core/resources.js';
|
17
18
|
export { DeepOmit } from 'deep-utility-types';
|
18
19
|
|
19
20
|
/**
|
@@ -692,10 +693,10 @@ declare class AirtopWindowScreenshot {
|
|
692
693
|
* Returns response data as a JSON object.
|
693
694
|
*/
|
694
695
|
toJSON(): {
|
695
|
-
data:
|
696
|
-
meta:
|
697
|
-
warnings:
|
698
|
-
errors:
|
696
|
+
data: _airtop_core_resources_js.AIResponseEnvelope;
|
697
|
+
meta: _airtop_core_resources_js.ExternalSessionAIResponseMetadata;
|
698
|
+
warnings: _airtop_core_resources_js.Issue[];
|
699
|
+
errors: _airtop_core_resources_js.Issue[];
|
699
700
|
};
|
700
701
|
}
|
701
702
|
|
@@ -941,6 +942,12 @@ declare class AirtopSessionClient extends AirtopBase {
|
|
941
942
|
* @param requestOptions - Request options
|
942
943
|
*/
|
943
944
|
service(prompt: string, service?: string, requestOptions?: AirtopRequestOptions): Promise<SessionServiceResponse>;
|
945
|
+
/**
|
946
|
+
* Retrieves the list of connected services available for the current session.
|
947
|
+
* @param requestOptions - Request options
|
948
|
+
* @returns A promise that resolves to the connected services response containing service details
|
949
|
+
*/
|
950
|
+
getConnectedServices(requestOptions?: AirtopRequestOptions): Promise<ConnectedServicesActionResponseEnvelope>;
|
944
951
|
}
|
945
952
|
|
946
953
|
/**
|
package/dist/index.js
CHANGED
@@ -9,7 +9,7 @@ var require_package = __commonJS({
|
|
9
9
|
module.exports = {
|
10
10
|
name: "@airtop/sdk",
|
11
11
|
description: "Airtop SDK for TypeScript",
|
12
|
-
version: "1.0.0-alpha2.
|
12
|
+
version: "1.0.0-alpha2.21",
|
13
13
|
type: "module",
|
14
14
|
main: "./dist/index.cjs",
|
15
15
|
module: "./dist/index.js",
|
@@ -44,26 +44,26 @@ var require_package = __commonJS({
|
|
44
44
|
clean: "rm -rf .turbo node_modules dist",
|
45
45
|
lint: "biome check --no-errors-on-unmatched --write --unsafe src",
|
46
46
|
"lint:staged": "biome check --no-errors-on-unmatched --write --unsafe --staged src",
|
47
|
-
"verify-types": "tsc --noEmit"
|
47
|
+
"verify-types": "tsc --noEmit && tsc --noEmit --project tsconfig.e2e.json"
|
48
48
|
},
|
49
49
|
dependencies: {
|
50
50
|
"@airtop/json-schema-adapter": "workspace:*",
|
51
|
-
"@airtop/core": "0.1.0-alpha.
|
51
|
+
"@airtop/core": "0.1.0-alpha.37",
|
52
52
|
"date-fns": "4.1.0",
|
53
53
|
loglayer: "6.6.0",
|
54
54
|
"serialize-error": "12.0.0",
|
55
55
|
uuid: "11.1.0"
|
56
56
|
},
|
57
57
|
devDependencies: {
|
58
|
-
"@biomejs/biome": "2.1.
|
59
|
-
"@dotenvx/dotenvx": "1.48.
|
58
|
+
"@biomejs/biome": "2.1.3",
|
59
|
+
"@dotenvx/dotenvx": "1.48.4",
|
60
60
|
"@internal/tsconfig": "workspace:*",
|
61
61
|
"deep-utility-types": "1.3.1",
|
62
62
|
"env-var": "7.5.0",
|
63
|
-
"hash-runner": "
|
63
|
+
"hash-runner": "3.1.0",
|
64
64
|
nanoid: "5.1.5",
|
65
65
|
tsup: "8.5.0",
|
66
|
-
typescript: "5.
|
66
|
+
typescript: "5.9.2",
|
67
67
|
"utility-types": "3.11.0",
|
68
68
|
uuid: "11.1.0",
|
69
69
|
vitest: "3.2.4",
|
@@ -1273,6 +1273,18 @@ var AirtopSessionClient = class extends AirtopBase {
|
|
1273
1273
|
requestOptions
|
1274
1274
|
);
|
1275
1275
|
}
|
1276
|
+
/**
|
1277
|
+
* Retrieves the list of connected services available for the current session.
|
1278
|
+
* @param requestOptions - Request options
|
1279
|
+
* @returns A promise that resolves to the connected services response containing service details
|
1280
|
+
*/
|
1281
|
+
async getConnectedServices(requestOptions = {}) {
|
1282
|
+
return withRequestCompletionPolling(
|
1283
|
+
this.client,
|
1284
|
+
() => this.client.sessions.getConnectedServices(this.sessionId),
|
1285
|
+
requestOptions
|
1286
|
+
);
|
1287
|
+
}
|
1276
1288
|
};
|
1277
1289
|
|
1278
1290
|
// src/session/AirtopSession.ts
|