ReadonlyactiveReadonlyactiveReadonlyactiveReadonlyisReadonlypanelThe metadata provider this service uses. When unset, falls back to Metadata.Provider. Setting it propagates to the dependent artifact-permission service.
Adds an artifact version to a collection
The artifact ID (for permission checking)
The collection ID
The current user context
OptionalversionId: stringOptional specific version ID. If not provided, uses latest version
Check if current user can edit an artifact
The artifact ID
The current user context
True if user has edit permission
Check if current user can read an artifact
The artifact ID
The current user context
True if user has read permission
Check if current user can share an artifact
The artifact ID
The current user context
True if user has share permission
Clears all cached artifacts
Closes the artifact panel
Creates a new artifact
Artifact data
The current user context
The created artifact
Deletes an artifact
The artifact ID
The current user context
True if successful
Loads a single artifact by ID
The artifact ID
The current user context
The artifact entity or null
Loads artifacts for a collection
The collection ID
The current user context
Array of artifacts
Loads artifacts for a conversation
The conversation ID
The current user context
Array of artifacts
Loads artifact VERSIONS for a collection (all versions, not deduplicated by artifact ID) This method returns each version as a separate item with its parent artifact metadata
The collection ID
The current user context
Array of objects containing version and parent artifact info
Opens an artifact in the panel
The artifact ID
OptionalversionNumber: numberOptional specific version number
Opens an artifact by version ID
The artifact version ID
Removes an artifact from cache
The artifact ID
Removes all versions of an artifact from a collection
The artifact ID
The collection ID
The current user context
Sets the panel mode
The mode ('view' or 'edit')
Toggles the panel open/closed state
Updates an artifact
The artifact ID
The fields to update
The current user context
True if successful
State management for artifacts and the artifact panel Handles artifact CRUD operations and caching with permission enforcement