notte-sdk 1.10.4 → 1.10.6

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/README.md CHANGED
@@ -640,7 +640,10 @@ await fn.deleteSchedule();
640
640
  const runs = await fn.runs(); // all runs, including completed ones
641
641
  const functions = await notte.functions.list();
642
642
 
643
- await fn.delete();
643
+ await fn.updateMetadata({ deletion_protected: true }); // refuse deletes until turned off
644
+ await fn.updateMetadata({ deletion_protected: false });
645
+
646
+ await fn.delete({ confirm: true }); // permanent, so it must be confirmed
644
647
  ```
645
648
 
646
649
  `run()` waits at most 300 s by default; pass `timeoutMs` to change it. A failed
@@ -651,7 +654,7 @@ run throws `FailedToRunCloudFunctionError` unless `raiseOnFailure: false`.
651
654
  - `run(variables?, options?)` - Stream logs and wait for completion; use `stream: false` for the backend's JSON response without live logs. Options: `runtime`, `functionRunId`, `onLog`, `raiseOnFailure`, `timeoutMs`
652
655
  - `get(options?)` - Function metadata, versions and download link
653
656
  - `update(options)` / `updateMetadata(body)` - Upload a new version / change name, description
654
- - `delete()` - Delete the function
657
+ - `delete({ confirm: true })` - Delete the function; throws without `confirm`
655
658
  - `setSchedule(body)` / `deleteSchedule()` - Manage the cron schedule
656
659
  - `rollback(options)` - Roll back to a previous version
657
660
  - `runs(options?)` - List runs (all runs by default, `only_active: true` for active ones)