Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

docs(sdk): rename team to project in snapshot docstrings (#1562)

Mish Ushakovee0ad2511748
diff --git a/.changeset/witty-moons-rename.md b/.changeset/witty-moons-rename.md
new file mode 100644
index 000000000..9d4acfa78
--- /dev/null
+++ b/.changeset/witty-moons-rename.md
@@ -0,0 +1,6 @@
+---
+'e2b': patch
+'@e2b/python-sdk': patch
+---
+
+Update snapshot docstrings to use project terminology instead of team (e.g. "my-project/my-snapshot", project slug)
diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.ts
index 8cccdb67d..0285ddde4 100644
--- a/packages/js-sdk/src/sandbox/sandboxApi.ts
+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts
@@ -494,7 +494,7 @@ export interface SnapshotListOpts extends Omit<SandboxApiOpts, 'signal'> {
/**
* Filter snapshots by name or ID, optionally tag-qualified
- * (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1").
+ * (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1").
*/
name?: string
@@ -522,7 +522,7 @@ export interface SnapshotInfo {
snapshotId: string
/**
- * Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2).
+ * Full names of the snapshot template including project slug and tag (e.g. project-slug/my-snapshot:v2).
*/
names: string[]
}
diff --git a/packages/python-sdk/e2b/sandbox/sandbox_api.py b/packages/python-sdk/e2b/sandbox/sandbox_api.py
index f5aaaffb6..60fe2da86 100644
--- a/packages/python-sdk/e2b/sandbox/sandbox_api.py
+++ b/packages/python-sdk/e2b/sandbox/sandbox_api.py
@@ -597,7 +597,7 @@ class SnapshotInfo:
snapshot_id: str
"""Snapshot identifier — template ID with tag, or namespaced name with tag (e.g. my-snapshot:latest). Can be used with Sandbox.create() to create a new sandbox from this snapshot."""
names: List[str] = field(default_factory=list)
- """Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2)."""
+ """Full names of the snapshot template including project slug and tag (e.g. project-slug/my-snapshot:v2)."""
class SnapshotPaginatorBase(PaginatorBase[SnapshotInfo, ApiParams]):
diff --git a/packages/python-sdk/e2b/sandbox_async/main.py b/packages/python-sdk/e2b/sandbox_async/main.py
index 40ff5a2e1..9af0935bf 100644
--- a/packages/python-sdk/e2b/sandbox_async/main.py
+++ b/packages/python-sdk/e2b/sandbox_async/main.py
@@ -893,7 +893,7 @@ class AsyncSandbox(SandboxApi):
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""
@@ -914,7 +914,7 @@ class AsyncSandbox(SandboxApi):
:param sandbox_id: Filter snapshots by source sandbox ID
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""
@@ -933,7 +933,7 @@ class AsyncSandbox(SandboxApi):
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""
diff --git a/packages/python-sdk/e2b/sandbox_sync/main.py b/packages/python-sdk/e2b/sandbox_sync/main.py
index 4141eeda8..dff44d8ff 100644
--- a/packages/python-sdk/e2b/sandbox_sync/main.py
+++ b/packages/python-sdk/e2b/sandbox_sync/main.py
@@ -886,7 +886,7 @@ class Sandbox(SandboxApi):
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""
@@ -907,7 +907,7 @@ class Sandbox(SandboxApi):
:param sandbox_id: Filter snapshots by source sandbox ID
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""
@@ -926,7 +926,7 @@ class Sandbox(SandboxApi):
:param limit: Maximum number of snapshots to return per page
:param next_token: Token for pagination
- :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1")
+ :param name: Filter snapshots by name or ID, optionally tag-qualified (e.g. "my-snapshot", "my-project/my-snapshot" or "my-snapshot:v1")
:return: Paginator for listing snapshots
"""