notte-sdk 1.10.10 → 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 +633 -442
- package/dist/index.d.ts +633 -442
- package/dist/index.js +30 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -17
- 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 +1 -1
package/dist/index.js
CHANGED
|
@@ -169,6 +169,7 @@ __export(index_exports, {
|
|
|
169
169
|
pageAct: () => pageAct,
|
|
170
170
|
pageCheck: () => pageCheck,
|
|
171
171
|
pageChoose: () => pageChoose,
|
|
172
|
+
pageDocumentRead: () => pageDocumentRead,
|
|
172
173
|
pageExecute: () => pageExecute,
|
|
173
174
|
pageObserve: () => pageObserve,
|
|
174
175
|
pageScrape: () => pageScrape,
|
|
@@ -246,7 +247,7 @@ __export(index_exports, {
|
|
|
246
247
|
module.exports = __toCommonJS(index_exports);
|
|
247
248
|
|
|
248
249
|
// src/version.ts
|
|
249
|
-
var SDK_VERSION = true ? "1.10.
|
|
250
|
+
var SDK_VERSION = true ? "1.10.11" : "dev";
|
|
250
251
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
251
252
|
|
|
252
253
|
// src/version-check.ts
|
|
@@ -1320,6 +1321,15 @@ var pageCheck = (options) => (options.client ?? client).post({
|
|
|
1320
1321
|
...options.headers
|
|
1321
1322
|
}
|
|
1322
1323
|
});
|
|
1324
|
+
var pageDocumentRead = (options) => (options.client ?? client).post({
|
|
1325
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1326
|
+
url: "/sessions/{session_id}/page/document",
|
|
1327
|
+
...options,
|
|
1328
|
+
headers: {
|
|
1329
|
+
"Content-Type": "application/json",
|
|
1330
|
+
...options.headers
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1323
1333
|
var sessionNetworkLogs = (options) => (options.client ?? client).get({
|
|
1324
1334
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1325
1335
|
url: "/sessions/{session_id}/network/logs",
|
|
@@ -1825,16 +1835,6 @@ var connectLinkSubmit = (options) => (options.client ?? client).post({
|
|
|
1825
1835
|
}
|
|
1826
1836
|
});
|
|
1827
1837
|
var connectLinkStatus = (options) => (options.client ?? client).get({ url: "/managed-auth/connect-links/status", ...options });
|
|
1828
|
-
var getUsage = (options) => (options?.client ?? client).get({
|
|
1829
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1830
|
-
url: "/usage",
|
|
1831
|
-
...options
|
|
1832
|
-
});
|
|
1833
|
-
var getUsageLogs = (options) => (options?.client ?? client).get({
|
|
1834
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1835
|
-
url: "/usage/logs",
|
|
1836
|
-
...options
|
|
1837
|
-
});
|
|
1838
1838
|
var anythingStart = (options) => (options.client ?? client).post({
|
|
1839
1839
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1840
1840
|
url: "/anything/start",
|
|
@@ -1873,11 +1873,6 @@ var listSecretProxyHostPresets = (options) => (options?.client ?? client).get({
|
|
|
1873
1873
|
url: "/secret-proxy/host-presets",
|
|
1874
1874
|
...options
|
|
1875
1875
|
});
|
|
1876
|
-
var listAuditEvents = (options) => (options?.client ?? client).get({
|
|
1877
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1878
|
-
url: "/audit-events",
|
|
1879
|
-
...options
|
|
1880
|
-
});
|
|
1881
1876
|
var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
|
|
1882
1877
|
var readyCheck = (options) => (options?.client ?? client).get({ url: "/ready", ...options });
|
|
1883
1878
|
var scrapeWebpage = (options) => (options.client ?? client).post({
|
|
@@ -2116,6 +2111,21 @@ var scrapeFromHtml = (options) => (options.client ?? client).post({
|
|
|
2116
2111
|
...options.headers
|
|
2117
2112
|
}
|
|
2118
2113
|
});
|
|
2114
|
+
var listAuditEvents = (options) => (options?.client ?? client).get({
|
|
2115
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2116
|
+
url: "/audit-events",
|
|
2117
|
+
...options
|
|
2118
|
+
});
|
|
2119
|
+
var getUsage = (options) => (options?.client ?? client).get({
|
|
2120
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2121
|
+
url: "/usage",
|
|
2122
|
+
...options
|
|
2123
|
+
});
|
|
2124
|
+
var getUsageLogs = (options) => (options?.client ?? client).get({
|
|
2125
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2126
|
+
url: "/usage/logs",
|
|
2127
|
+
...options
|
|
2128
|
+
});
|
|
2119
2129
|
var agentStart = (options) => (options.client ?? client).post({
|
|
2120
2130
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2121
2131
|
url: "/agents/start",
|
|
@@ -4068,7 +4078,9 @@ var Session = class {
|
|
|
4068
4078
|
/**
|
|
4069
4079
|
* Get a Playwright page connected to the session via CDP. The connection is
|
|
4070
4080
|
* established lazily on first access, cached, and closed by `stop()`.
|
|
4071
|
-
*
|
|
4081
|
+
* The SDK never answers native dialogs itself. With `dialog_policy: 'auto'`
|
|
4082
|
+
* (the default) the Notte backend answers them; with `dialog_policy: 'client'`
|
|
4083
|
+
* register `page.on('dialog', ...)` to accept or dismiss them.
|
|
4072
4084
|
*
|
|
4073
4085
|
* Requires the optional `playwright-core` peer dependency
|
|
4074
4086
|
* (`npm install playwright-core`).
|
|
@@ -6830,6 +6842,7 @@ var createClient2 = (config) => {
|
|
|
6830
6842
|
pageAct,
|
|
6831
6843
|
pageCheck,
|
|
6832
6844
|
pageChoose,
|
|
6845
|
+
pageDocumentRead,
|
|
6833
6846
|
pageExecute,
|
|
6834
6847
|
pageObserve,
|
|
6835
6848
|
pageScrape,
|