notte-sdk 1.10.10 → 1.10.12

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var SDK_VERSION = true ? "1.10.10" : "dev";
2
+ var SDK_VERSION = true ? "1.10.12" : "dev";
3
3
  var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
4
4
 
5
5
  // src/version-check.ts
@@ -1073,6 +1073,15 @@ var pageCheck = (options) => (options.client ?? client).post({
1073
1073
  ...options.headers
1074
1074
  }
1075
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
+ });
1076
1085
  var sessionNetworkLogs = (options) => (options.client ?? client).get({
1077
1086
  security: [{ scheme: "bearer", type: "http" }],
1078
1087
  url: "/sessions/{session_id}/network/logs",
@@ -1578,16 +1587,6 @@ var connectLinkSubmit = (options) => (options.client ?? client).post({
1578
1587
  }
1579
1588
  });
1580
1589
  var connectLinkStatus = (options) => (options.client ?? client).get({ url: "/managed-auth/connect-links/status", ...options });
1581
- var getUsage = (options) => (options?.client ?? client).get({
1582
- security: [{ scheme: "bearer", type: "http" }],
1583
- url: "/usage",
1584
- ...options
1585
- });
1586
- var getUsageLogs = (options) => (options?.client ?? client).get({
1587
- security: [{ scheme: "bearer", type: "http" }],
1588
- url: "/usage/logs",
1589
- ...options
1590
- });
1591
1590
  var anythingStart = (options) => (options.client ?? client).post({
1592
1591
  security: [{ scheme: "bearer", type: "http" }],
1593
1592
  url: "/anything/start",
@@ -1626,11 +1625,6 @@ var listSecretProxyHostPresets = (options) => (options?.client ?? client).get({
1626
1625
  url: "/secret-proxy/host-presets",
1627
1626
  ...options
1628
1627
  });
1629
- var listAuditEvents = (options) => (options?.client ?? client).get({
1630
- security: [{ scheme: "bearer", type: "http" }],
1631
- url: "/audit-events",
1632
- ...options
1633
- });
1634
1628
  var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
1635
1629
  var readyCheck = (options) => (options?.client ?? client).get({ url: "/ready", ...options });
1636
1630
  var scrapeWebpage = (options) => (options.client ?? client).post({
@@ -1869,6 +1863,21 @@ var scrapeFromHtml = (options) => (options.client ?? client).post({
1869
1863
  ...options.headers
1870
1864
  }
1871
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
+ });
1872
1881
  var agentStart = (options) => (options.client ?? client).post({
1873
1882
  security: [{ scheme: "bearer", type: "http" }],
1874
1883
  url: "/agents/start",
@@ -3821,7 +3830,9 @@ var Session = class {
3821
3830
  /**
3822
3831
  * Get a Playwright page connected to the session via CDP. The connection is
3823
3832
  * established lazily on first access, cached, and closed by `stop()`.
3824
- * Native dialogs are left to the Notte backend.
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.
3825
3836
  *
3826
3837
  * Requires the optional `playwright-core` peer dependency
3827
3838
  * (`npm install playwright-core`).
@@ -6583,6 +6594,7 @@ export {
6583
6594
  pageAct,
6584
6595
  pageCheck,
6585
6596
  pageChoose,
6597
+ pageDocumentRead,
6586
6598
  pageExecute,
6587
6599
  pageObserve,
6588
6600
  pageScrape,