Skip to content

Commit be624ef

Browse files
authored
fix: Fix StorageGeneralAccess and RunGeneralAccess enums (#56)
This was accidentally introduced in #43.
1 parent 6a39b9d commit be624ef

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/apify_shared/consts.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -352,34 +352,38 @@ class MetaOrigin(str, Enum):
352352

353353

354354
class StorageGeneralAccess(str, Enum):
355-
"""Access levels for Apify storage resources (key-value stores, datasets, request queues).
355+
"""Storage setting determining how others can access the storage.
356356
357-
These access levels control who can interact with storage resources and how,
358-
providing fine-grained security for shared data and collaboration scenarios.
357+
This setting overrides the user setting of the storage owner.
359358
"""
360359

360+
FOLLOW_USER_SETTING = 'FOLLOW_USER_SETTING'
361+
"""Respect the user setting of the storage owner (default behavior)."""
362+
361363
RESTRICTED = 'RESTRICTED'
362-
"""Access limited to the resource owner and explicitly granted users or organizations."""
364+
"""Only signed-in users with explicit access can read this storage."""
363365

364-
PUBLIC_READ = 'PUBLIC_READ'
365-
"""Resource data can be read by anyone, but only the owner can modify it."""
366+
ANYONE_WITH_ID_CAN_READ = 'ANYONE_WITH_ID_CAN_READ'
367+
"""Anyone with a link or the unique storage ID can read this storage."""
366368

367-
PUBLIC_WRITE = 'PUBLIC_WRITE'
368-
"""Full public access - anyone can read, write, and modify the resource."""
369+
ANYONE_WITH_NAME_CAN_READ = 'ANYONE_WITH_NAME_CAN_READ'
370+
"""Anyone with a link, ID, or storage name can read this storage."""
369371

370372

371373
class RunGeneralAccess(str, Enum):
372-
"""Access levels for Actor runs and their associated data.
374+
"""Run setting determining how others can access the run.
373375
374-
These settings control who can view Actor run details, including logs,
375-
outputs, and metadata, enabling secure sharing of execution results.
376+
This setting overrides the user setting of the run owner.
376377
"""
377378

379+
FOLLOW_USER_SETTING = 'FOLLOW_USER_SETTING'
380+
"""Respect the user setting of the storage owner (default behavior)."""
381+
378382
RESTRICTED = 'RESTRICTED'
379-
"""Access limited to the Actor owner and explicitly authorized users."""
383+
"""Only signed-in users with explicit access can read this run."""
380384

381-
PUBLIC_READ = 'PUBLIC_READ'
382-
"""Run details and outputs are publicly visible but cannot be modified by others."""
385+
ANYONE_WITH_ID_CAN_READ = 'ANYONE_WITH_ID_CAN_READ'
386+
"""Anyone with a link or the unique run ID can read this run."""
383387

384388

385389
class ActorPermissionLevel(str, Enum):

0 commit comments

Comments
 (0)