@@ -110,6 +110,11 @@ export enum BackendType {
110110 remote = 'remote' ,
111111}
112112
113+ /** Determine backend type from session ID. */
114+ export function projectSessionBackendType ( id : ProjectSessionId ) : BackendType {
115+ return id . startsWith ( 'projectsession-' ) ? BackendType . remote : BackendType . local
116+ }
117+
113118/** Check if this path points to an asset in cloud drive. */
114119export function isRemoteAssetPath ( ensoPath : EnsoPath ) : ensoPath is EnsoPath & `enso://${string } ` {
115120 return ensoPath . startsWith ( 'enso://' )
@@ -1193,17 +1198,28 @@ export interface UpdateFileRequestBody {
11931198}
11941199
11951200/** HTTP request body for the "update asset" endpoint. */
1196- export interface UpdateAssetRequestBody {
1201+ export interface UpdateAsset {
11971202 readonly parentDirectoryId ?: DirectoryId | null
11981203 readonly description ?: string | null
11991204 readonly title ?: string | null
12001205 readonly metadataId ?: MetadataId | null
1206+ }
12011207
1202- // Update version comments
1208+ /** HTTP request body for the "update asset version tag" action. */
1209+ export interface UpdateAssetVersionTag {
1210+ readonly versionId ?: S3ObjectVersionId
1211+ readonly tag ?: string
1212+ readonly remove ?: boolean
1213+ }
1214+
1215+ /** HTTP request body for the "update asset version comment" action. */
1216+ export interface UpdateAssetVersionComment {
12031217 readonly versionId ?: S3ObjectVersionId
12041218 readonly comment ?: string | null
12051219}
12061220
1221+ export type UpdateAssetRequestBody = UpdateAsset & UpdateAssetVersionTag & UpdateAssetVersionComment
1222+
12071223/** HTTP request body for the "delete asset" endpoint. */
12081224export interface DeleteAssetRequestBody {
12091225 readonly force : boolean
0 commit comments