notte-sdk 1.10.21 → 1.10.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.d.mts +506 -42
- package/dist/index.d.ts +506 -42
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -1
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +2 -0
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +2 -0
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +2 -0
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +2 -0
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
|
-
var SDK_VERSION = true ? "1.10.
|
|
2
|
+
var SDK_VERSION = true ? "1.10.22" : "dev";
|
|
3
3
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
4
4
|
|
|
5
5
|
// src/version-check.ts
|
|
@@ -1445,6 +1445,25 @@ var profileStateSet = (options) => (options.client ?? client).post({
|
|
|
1445
1445
|
...options.headers
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
|
+
var profileSessionConfigDelete = (options) => (options.client ?? client).delete({
|
|
1449
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1450
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1451
|
+
...options
|
|
1452
|
+
});
|
|
1453
|
+
var profileSessionConfigGet = (options) => (options.client ?? client).get({
|
|
1454
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1455
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1456
|
+
...options
|
|
1457
|
+
});
|
|
1458
|
+
var profileSessionConfigSet = (options) => (options.client ?? client).put({
|
|
1459
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1460
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1461
|
+
...options,
|
|
1462
|
+
headers: {
|
|
1463
|
+
"Content-Type": "application/json",
|
|
1464
|
+
...options.headers
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1448
1467
|
var profileList = (options) => (options?.client ?? client).get({
|
|
1449
1468
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1450
1469
|
url: "/profiles",
|
|
@@ -2651,6 +2670,21 @@ function createResources(client2, getApiKey) {
|
|
|
2651
2670
|
const response = await profileList({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, query });
|
|
2652
2671
|
return response.data;
|
|
2653
2672
|
},
|
|
2673
|
+
/** profileSessionConfigDelete: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2674
|
+
sessionConfigDelete: async (profileId, requestOptions = {}) => {
|
|
2675
|
+
const response = await profileSessionConfigDelete({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2676
|
+
return response.data;
|
|
2677
|
+
},
|
|
2678
|
+
/** profileSessionConfigGet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2679
|
+
sessionConfigGet: async (profileId, requestOptions = {}) => {
|
|
2680
|
+
const response = await profileSessionConfigGet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2681
|
+
return response.data;
|
|
2682
|
+
},
|
|
2683
|
+
/** profileSessionConfigSet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2684
|
+
sessionConfigSet: async (profileId, body, requestOptions = {}) => {
|
|
2685
|
+
const response = await profileSessionConfigSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
2686
|
+
return response.data;
|
|
2687
|
+
},
|
|
2654
2688
|
/** profileStateSet: /profiles/{profile_id}/state. Returns the API response body. */
|
|
2655
2689
|
stateSet: async (profileId, body, requestOptions = {}) => {
|
|
2656
2690
|
const response = await profileStateSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
@@ -6658,6 +6692,9 @@ var wait = builder("wait");
|
|
|
6658
6692
|
var pressKey = builder("press_key");
|
|
6659
6693
|
var scrollUp = builder("scroll_up");
|
|
6660
6694
|
var scrollDown = builder("scroll_down");
|
|
6695
|
+
var mouseClick = builder("mouse_click");
|
|
6696
|
+
var mouseMove = builder("mouse_move");
|
|
6697
|
+
var mouseDrag = builder("mouse_drag");
|
|
6661
6698
|
var captchaSolve = builder("captcha_solve");
|
|
6662
6699
|
var help = builder("help");
|
|
6663
6700
|
var completion = builder("completion");
|
|
@@ -6687,6 +6724,9 @@ var actions = {
|
|
|
6687
6724
|
pressKey,
|
|
6688
6725
|
scrollUp,
|
|
6689
6726
|
scrollDown,
|
|
6727
|
+
mouseClick,
|
|
6728
|
+
mouseMove,
|
|
6729
|
+
mouseDrag,
|
|
6690
6730
|
captchaSolve,
|
|
6691
6731
|
help,
|
|
6692
6732
|
completion,
|
|
@@ -6895,6 +6935,9 @@ export {
|
|
|
6895
6935
|
profileDuplicate,
|
|
6896
6936
|
profileGet,
|
|
6897
6937
|
profileList,
|
|
6938
|
+
profileSessionConfigDelete,
|
|
6939
|
+
profileSessionConfigGet,
|
|
6940
|
+
profileSessionConfigSet,
|
|
6898
6941
|
profileStateSet,
|
|
6899
6942
|
readCookiesFile,
|
|
6900
6943
|
readyCheck,
|