notte-sdk 1.10.1 → 1.10.2

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.1" : "dev";
2
+ var SDK_VERSION = true ? "1.10.2" : "dev";
3
3
  var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
4
4
 
5
5
  // src/version-check.ts
@@ -1148,6 +1148,15 @@ var functionRollback = (options) => (options.client ?? client).post({
1148
1148
  ...options.headers
1149
1149
  }
1150
1150
  });
1151
+ var functionConditionalRollback = (options) => (options.client ?? client).post({
1152
+ security: [{ scheme: "bearer", type: "http" }],
1153
+ url: "/functions/{function_id}/rollback/conditional",
1154
+ ...options,
1155
+ headers: {
1156
+ "Content-Type": "application/json",
1157
+ ...options.headers
1158
+ }
1159
+ });
1151
1160
  var functionScheduleDelete = (options) => (options.client ?? client).delete({
1152
1161
  security: [{ scheme: "bearer", type: "http" }],
1153
1162
  url: "/functions/{function_id}/schedule",
@@ -3131,7 +3140,7 @@ var CLUSTER_OVERLOAD_RETRY_DELAY_MS = 3e4;
3131
3140
  var CAPTCHA_SOLVE_TIMEOUT_MS = 1e5;
3132
3141
  var OBSERVE_MIGRATION_URL = "https://docs.notte.cc/features/sessions/observe-migration";
3133
3142
  var OBSERVE_DEPRECATIONS = {
3134
- instructions: `\`observe({ instructions })\` is deprecated and will be removed on December 1, 2026; <<ALTERNATIVE FOR instructions: session.act() \u2014 pending>>. See ${OBSERVE_MIGRATION_URL}`,
3143
+ instructions: `\`observe({ instructions })\` is deprecated and will be removed on December 1, 2026; the Python SDK's local sessions replace it with session.act(); here, call observe() without it and pick from the returned actions. See ${OBSERVE_MIGRATION_URL}`,
3135
3144
  deep: `\`perception_type: 'deep'\` is deprecated and will be removed on December 1, 2026; use \`perception_type: 'fast'\` (the default). See ${OBSERVE_MIGRATION_URL}`
3136
3145
  };
3137
3146
  function observeServerOwnedDialog(_dialog) {
@@ -3847,7 +3856,9 @@ var Session = class {
3847
3856
  * Deprecated: `perception_type: 'deep'` and `instructions` are removed on
3848
3857
  * December 1, 2026, and each warns once per session. Use `perception_type:
3849
3858
  * 'fast'` (the default) instead of `'deep'`. For `instructions`:
3850
- * `<<ALTERNATIVE FOR instructions: session.act() — pending>>`. See https://docs.notte.cc/features/sessions/observe-migration
3859
+ * the Python SDK's local sessions replace it with `session.act()`; here, call
3860
+ * `observe()` without it and pick from the returned actions. See
3861
+ * https://docs.notte.cc/features/sessions/observe-migration
3851
3862
  *
3852
3863
  * @param options - Observation settings, including an optional URL, or a perception-mode string.
3853
3864
  * @returns Structured page analysis, available actions, and page metadata.
@@ -6367,6 +6378,7 @@ export {
6367
6378
  executeSessionFile,
6368
6379
  extractProductEndpoint,
6369
6380
  fetchSpecializedData,
6381
+ functionConditionalRollback,
6370
6382
  functionCreate,
6371
6383
  functionDelete,
6372
6384
  functionDownloadUrl,