@airtop/sdk 1.0.0-alpha2.20 → 1.0.0-alpha2.22
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 +23 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -8
- package/dist/index.d.ts +17 -8
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
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.22",
|
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",
|
@@ -80,7 +80,7 @@ var require_package = __commonJS({
|
|
80
80
|
optionalDependencies: {
|
81
81
|
"@airtop/json-schema-adapter-zod": "workspace:*"
|
82
82
|
},
|
83
|
-
packageManager: "pnpm@10.
|
83
|
+
packageManager: "pnpm@10.14.0"
|
84
84
|
};
|
85
85
|
}
|
86
86
|
});
|
@@ -1180,12 +1180,13 @@ var AirtopSessionClient = class extends AirtopBase {
|
|
1180
1180
|
* @param requestOptions - Request options
|
1181
1181
|
* @returns A new AirtopWindow<AirtopWindowCreateResponse> instance
|
1182
1182
|
*/
|
1183
|
-
async createWindow(url, requestOptions = {}) {
|
1183
|
+
async createWindow(url, createOptions = {}, requestOptions = {}) {
|
1184
1184
|
this.log.info("Creating window");
|
1185
1185
|
const results = await this.client.windows.create(
|
1186
1186
|
this.sessionId,
|
1187
1187
|
{
|
1188
|
-
url
|
1188
|
+
url,
|
1189
|
+
...createOptions
|
1189
1190
|
},
|
1190
1191
|
this.resolveRequestOptions(requestOptions)
|
1191
1192
|
);
|
@@ -1273,6 +1274,18 @@ var AirtopSessionClient = class extends AirtopBase {
|
|
1273
1274
|
requestOptions
|
1274
1275
|
);
|
1275
1276
|
}
|
1277
|
+
/**
|
1278
|
+
* Retrieves the list of connected services available for the current session.
|
1279
|
+
* @param requestOptions - Request options
|
1280
|
+
* @returns A promise that resolves to the connected services response containing service details
|
1281
|
+
*/
|
1282
|
+
async getConnectedServices(requestOptions = {}) {
|
1283
|
+
return withRequestCompletionPolling(
|
1284
|
+
this.client,
|
1285
|
+
() => this.client.sessions.getConnectedServices(this.sessionId),
|
1286
|
+
requestOptions
|
1287
|
+
);
|
1288
|
+
}
|
1276
1289
|
};
|
1277
1290
|
|
1278
1291
|
// src/session/AirtopSession.ts
|