Use atproto actions with ease in iOS shortcuts
at main 955 B view raw
1// 2// StrongReference.swift 3// shortcut 4// 5// Created by Bailey Townsend on 6/29/25. 6// 7 8import ATProtoKit 9import AppIntents 10import Foundation 11 12struct StrongReferenceAppEntity: TransientAppEntity { 13 14 /// The URI for the record. 15 @Property(title: "Record URI") 16 public var recordURI: String 17 18 /// The CID hash for the record. 19 @Property(title: "Record CID") 20 public var recordCID: String 21 22 var id: String { recordURI } 23 24 static var typeDisplayName: LocalizedStringResource = "Strong Reference" 25 26 static var typeDescription: LocalizedStringResource = 27 "This is the com.atproto.repo.strongRef type" 28 29 var displayRepresentation: AppIntents.DisplayRepresentation { 30 DisplayRepresentation(title: "recordUri: \(recordURI), recordCID:\(recordCID)") 31 32 } 33 34 static var typeDisplayRepresentation: TypeDisplayRepresentation = TypeDisplayRepresentation( 35 name: LocalizedStringResource("Strong Reference")) 36 37}