notte-sdk 1.10.9 → 1.10.11
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 +807 -518
- package/dist/index.d.ts +807 -518
- package/dist/index.js +44 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -17
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +6 -0
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +6 -0
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +6 -0
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +6 -0
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +1 -1
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.11" : "dev";
|
|
3
3
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
4
4
|
|
|
5
5
|
// src/version-check.ts
|
|
@@ -980,6 +980,16 @@ var sessionStop = (options) => (options.client ?? client).delete({
|
|
|
980
980
|
url: "/sessions/{session_id}/stop",
|
|
981
981
|
...options
|
|
982
982
|
});
|
|
983
|
+
var sessionPause = (options) => (options.client ?? client).post({
|
|
984
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
985
|
+
url: "/sessions/{session_id}/pause",
|
|
986
|
+
...options
|
|
987
|
+
});
|
|
988
|
+
var sessionResume = (options) => (options.client ?? client).post({
|
|
989
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
990
|
+
url: "/sessions/{session_id}/resume",
|
|
991
|
+
...options
|
|
992
|
+
});
|
|
983
993
|
var sessionCookiesGet = (options) => (options.client ?? client).get({
|
|
984
994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
985
995
|
url: "/sessions/{session_id}/cookies",
|
|
@@ -1063,6 +1073,15 @@ var pageCheck = (options) => (options.client ?? client).post({
|
|
|
1063
1073
|
...options.headers
|
|
1064
1074
|
}
|
|
1065
1075
|
});
|
|
1076
|
+
var pageDocumentRead = (options) => (options.client ?? client).post({
|
|
1077
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1078
|
+
url: "/sessions/{session_id}/page/document",
|
|
1079
|
+
...options,
|
|
1080
|
+
headers: {
|
|
1081
|
+
"Content-Type": "application/json",
|
|
1082
|
+
...options.headers
|
|
1083
|
+
}
|
|
1084
|
+
});
|
|
1066
1085
|
var sessionNetworkLogs = (options) => (options.client ?? client).get({
|
|
1067
1086
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1068
1087
|
url: "/sessions/{session_id}/network/logs",
|
|
@@ -1568,16 +1587,6 @@ var connectLinkSubmit = (options) => (options.client ?? client).post({
|
|
|
1568
1587
|
}
|
|
1569
1588
|
});
|
|
1570
1589
|
var connectLinkStatus = (options) => (options.client ?? client).get({ url: "/managed-auth/connect-links/status", ...options });
|
|
1571
|
-
var getUsage = (options) => (options?.client ?? client).get({
|
|
1572
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1573
|
-
url: "/usage",
|
|
1574
|
-
...options
|
|
1575
|
-
});
|
|
1576
|
-
var getUsageLogs = (options) => (options?.client ?? client).get({
|
|
1577
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1578
|
-
url: "/usage/logs",
|
|
1579
|
-
...options
|
|
1580
|
-
});
|
|
1581
1590
|
var anythingStart = (options) => (options.client ?? client).post({
|
|
1582
1591
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1583
1592
|
url: "/anything/start",
|
|
@@ -1616,11 +1625,6 @@ var listSecretProxyHostPresets = (options) => (options?.client ?? client).get({
|
|
|
1616
1625
|
url: "/secret-proxy/host-presets",
|
|
1617
1626
|
...options
|
|
1618
1627
|
});
|
|
1619
|
-
var listAuditEvents = (options) => (options?.client ?? client).get({
|
|
1620
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1621
|
-
url: "/audit-events",
|
|
1622
|
-
...options
|
|
1623
|
-
});
|
|
1624
1628
|
var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
|
|
1625
1629
|
var readyCheck = (options) => (options?.client ?? client).get({ url: "/ready", ...options });
|
|
1626
1630
|
var scrapeWebpage = (options) => (options.client ?? client).post({
|
|
@@ -1859,6 +1863,21 @@ var scrapeFromHtml = (options) => (options.client ?? client).post({
|
|
|
1859
1863
|
...options.headers
|
|
1860
1864
|
}
|
|
1861
1865
|
});
|
|
1866
|
+
var listAuditEvents = (options) => (options?.client ?? client).get({
|
|
1867
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1868
|
+
url: "/audit-events",
|
|
1869
|
+
...options
|
|
1870
|
+
});
|
|
1871
|
+
var getUsage = (options) => (options?.client ?? client).get({
|
|
1872
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1873
|
+
url: "/usage",
|
|
1874
|
+
...options
|
|
1875
|
+
});
|
|
1876
|
+
var getUsageLogs = (options) => (options?.client ?? client).get({
|
|
1877
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1878
|
+
url: "/usage/logs",
|
|
1879
|
+
...options
|
|
1880
|
+
});
|
|
1862
1881
|
var agentStart = (options) => (options.client ?? client).post({
|
|
1863
1882
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1864
1883
|
url: "/agents/start",
|
|
@@ -3811,7 +3830,9 @@ var Session = class {
|
|
|
3811
3830
|
/**
|
|
3812
3831
|
* Get a Playwright page connected to the session via CDP. The connection is
|
|
3813
3832
|
* established lazily on first access, cached, and closed by `stop()`.
|
|
3814
|
-
*
|
|
3833
|
+
* The SDK never answers native dialogs itself. With `dialog_policy: 'auto'`
|
|
3834
|
+
* (the default) the Notte backend answers them; with `dialog_policy: 'client'`
|
|
3835
|
+
* register `page.on('dialog', ...)` to accept or dismiss them.
|
|
3815
3836
|
*
|
|
3816
3837
|
* Requires the optional `playwright-core` peer dependency
|
|
3817
3838
|
* (`npm install playwright-core`).
|
|
@@ -6573,6 +6594,7 @@ export {
|
|
|
6573
6594
|
pageAct,
|
|
6574
6595
|
pageCheck,
|
|
6575
6596
|
pageChoose,
|
|
6597
|
+
pageDocumentRead,
|
|
6576
6598
|
pageExecute,
|
|
6577
6599
|
pageObserve,
|
|
6578
6600
|
pageScrape,
|
|
@@ -6618,9 +6640,11 @@ export {
|
|
|
6618
6640
|
sessionMouseReplay,
|
|
6619
6641
|
sessionNetworkLogs,
|
|
6620
6642
|
sessionOffset,
|
|
6643
|
+
sessionPause,
|
|
6621
6644
|
sessionProfilePreview,
|
|
6622
6645
|
sessionProfileSave,
|
|
6623
6646
|
sessionReplay,
|
|
6647
|
+
sessionResume,
|
|
6624
6648
|
sessionStart,
|
|
6625
6649
|
sessionStatus,
|
|
6626
6650
|
sessionStop,
|