{ "argumentSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "pattern": "system/home.tsx", "resultSchema": { "$defs": { "BackwardsCompatibleProfile": { "properties": { "$NAME": { "type": "string" }, "$UI": { "type": "unknown" }, "addElement": { "$ref": "#/$defs/MutateProfileElementsEvent", "asCell": [ "stream" ] }, "addExternalLink": { "$ref": "#/$defs/MutateExternalProfileLinksEvent", "asCell": [ "stream" ] }, "addPiece": { "$ref": "#/$defs/MutateProfileElementsEvent", "asCell": [ "stream" ] }, "avatar": { "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "setAvatar" ] } } }, "type": "string" }, "bio": { "default": "", "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "setBio" ] } } }, "type": "string" }, "elements": { "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "mutateElements" ] } } }, "items": { "$ref": "#/$defs/ProfileElement" }, "type": "array" }, "externalLinks": { "default": [], "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "mutateExternalProfileLinks" ] } } }, "items": { "$ref": "#/$defs/ExternalProfileLink" }, "type": "array" }, "initialNameApplied": { "type": "string" }, "isEditing": { "default": false, "type": "boolean" }, "name": { "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "setName" ] } } }, "type": "string" }, "publishVerifiedIdentities": { "$ref": "#/$defs/MutateVerifiedIdentitiesEvent", "asCell": [ "stream" ] }, "removeElement": { "$ref": "#/$defs/MutateProfileElementsEvent", "asCell": [ "stream" ] }, "removeExternalLink": { "$ref": "#/$defs/MutateExternalProfileLinksEvent", "asCell": [ "stream" ] }, "revokeVerifiedIdentities": { "$ref": "#/$defs/MutateVerifiedIdentitiesEvent", "asCell": [ "stream" ] }, "setAvatar": { "$ref": "#/$defs/SetProfileAvatarEvent", "asCell": [ "stream" ] }, "setBio": { "$ref": "#/$defs/SetProfileBioEvent", "asCell": [ "stream" ] }, "setName": { "$ref": "#/$defs/SetProfileNameEvent", "asCell": [ "stream" ] }, "toggleEditing": { "asCell": [ "stream", "opaque" ] }, "verifiedIdentities": { "default": [], "ifc": { "addIntegrity": [ { "kind": "represents-principal", "subject": { "__ctCurrentPrincipal": true } } ], "ownerPrincipal": { "__ctCurrentPrincipal": true }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-home.tsx", "moduleIdentity": "XEaU1O_qDlj_cNPxMROO9JQD-xd9qQ6tI0mrvpJXpJI", "path": [ "publishVerifiedIdentities" ] } } }, "items": { "$ref": "#/$defs/VerifiedExternalIdentity" }, "type": "array" } }, "required": [ "$NAME", "$UI", "name", "avatar", "bio", "externalLinks", "verifiedIdentities", "elements", "setName", "setAvatar", "addElement", "removeElement", "isEditing", "initialNameApplied" ], "type": "object" }, "CreateProfileEvent": { "properties": { "detail": { "properties": { "message": { "type": "string" } }, "type": "object" }, "key": { "type": "string" }, "name": { "type": "string" }, "target": { "properties": { "value": { "type": "string" } }, "type": "object" } }, "type": "object" }, "ExternalIdentityAssertion": { "properties": { "type": { "type": "string" }, "value": { "type": "string" }, "verifiedAt": { "type": "string" } }, "required": [ "type", "value", "verifiedAt" ], "type": "object" }, "ExternalProfileLink": { "properties": { "label": { "type": "string" }, "url": { "type": "string" } }, "required": [ "label", "url" ], "type": "object" }, "Favorite": { "properties": { "cell": { "properties": { "$NAME": { "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "spaceName": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" }, "userTags": { "items": { "type": "string" }, "type": "array" } }, "required": [ "cell", "tags", "userTags" ], "type": "object" }, "JournalEntry": { "properties": { "eventType": { "type": "string" }, "narrative": { "type": "string" }, "narrativePending": { "type": "boolean" }, "snapshot": { "properties": { "name": { "type": "string" }, "schemaTag": { "type": "string" }, "valueExcerpt": { "type": "string" } }, "type": "object" }, "space": { "type": "string" }, "subject": { "type": "unknown" }, "tags": { "items": { "type": "string" }, "type": "array" }, "timestamp": { "type": "number" } }, "type": "object" }, "MutateExternalProfileLinksEvent": { "properties": { "label": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "MutateProfileElementsEvent": { "properties": { "catalogId": { "type": "string" }, "cell": true, "patternUrl": { "type": "string" }, "pieceId": { "type": "string" }, "pieceSpace": { "type": "string" }, "tag": { "type": "string" }, "title": { "type": "string" }, "userTags": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "MutateVerifiedIdentitiesEvent": { "properties": { "identities": { "items": { "$ref": "#/$defs/VerifiedExternalIdentity" }, "type": "array" } }, "type": "object" }, "ProfileElement": { "properties": { "cell": true, "source": { "enum": [ "piece", "url", "catalog" ] }, "tag": { "type": "string" }, "title": { "type": "string" }, "userTags": { "items": { "type": "string" }, "type": "array" } }, "required": [ "cell", "tag", "userTags" ], "type": "object" }, "SetProfileAvatarEvent": { "properties": { "avatar": { "type": "string" }, "detail": { "properties": { "message": { "type": "string" } }, "type": "object" }, "key": { "type": "string" }, "target": { "properties": { "value": { "type": "string" } }, "type": "object" } }, "type": "object" }, "SetProfileBioEvent": { "properties": { "bio": { "type": "string" }, "detail": { "properties": { "message": { "type": "string" } }, "type": "object" }, "key": { "type": "string" }, "target": { "properties": { "value": { "type": "string" } }, "type": "object" } }, "type": "object" }, "SetProfileNameEvent": { "properties": { "detail": { "properties": { "message": { "type": "string" } }, "type": "object" }, "key": { "type": "string" }, "name": { "type": "string" }, "target": { "properties": { "value": { "type": "string" } }, "type": "object" } }, "type": "object" }, "SpaceEntry": { "properties": { "did": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name" ], "type": "object" }, "TrustedDefaultProfile": { "anyOf": [ { "type": "undefined" }, { "$ref": "#/$defs/BackwardsCompatibleProfile" } ] }, "TrustedProfileLink": { "$ref": "#/$defs/BackwardsCompatibleProfile", "ifc": { "addIntegrity": [ "profile-link" ], "uiContract": { "action": "CreateProfile", "helper": "UiAction", "requiredEventIntegrity": [ "ProfileCreateSurface" ], "trustedPattern": "ProfileCreateSurface" }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-create.tsx", "moduleIdentity": "uXrqB8Or9ITFDECGZOKn9bJzSZaTH-yv3rEurb041z0", "path": [ "submitProfileCreation" ] } } } }, "TrustedProfileList": { "ifc": { "addIntegrity": [ "profile-link" ], "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-create.tsx", "moduleIdentity": "uXrqB8Or9ITFDECGZOKn9bJzSZaTH-yv3rEurb041z0", "path": [ "submitProfileCreation" ] } } }, "items": { "$ref": "#/$defs/TrustedProfileLink" }, "type": "array" }, "TrustedProfileMru": { "ifc": { "addIntegrity": [ "profile-link" ], "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-create.tsx", "moduleIdentity": "uXrqB8Or9ITFDECGZOKn9bJzSZaTH-yv3rEurb041z0", "path": [ "setMruProfile" ] } } }, "items": { "$ref": "#/$defs/BackwardsCompatibleProfile", "ifc": { "addIntegrity": [ "profile-link" ], "uiContract": { "action": "SetMruProfile", "helper": "UiAction", "requiredEventIntegrity": [ "ProfilePickerSurface" ], "trustedPattern": "ProfilePickerSurface" }, "writeAuthorizedBy": { "__ctWriterIdentityOf": { "file": "/packages/patterns/system/profile-create.tsx", "moduleIdentity": "uXrqB8Or9ITFDECGZOKn9bJzSZaTH-yv3rEurb041z0", "path": [ "setMruProfile" ] } } } }, "type": "array" }, "VerifiedExternalIdentity": { "$ref": "#/$defs/ExternalIdentityAssertion", "ifc": { "requiredIntegrity": [ "loom-verified-external-identity" ] } } }, "properties": { "$NAME": { "type": "string" }, "$UI": { "$ref": "https://commonfabric.org/schemas/vnode.json" }, "addFavorite": { "asCell": [ "stream" ], "properties": { "id": { "type": "string" }, "piece": { "properties": { "$NAME": { "type": "string" } }, "type": "object" }, "spaceName": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" } }, "required": [ "piece" ], "type": "object" }, "addJournalEntry": { "asCell": [ "stream" ], "properties": { "entry": { "$ref": "#/$defs/JournalEntry" } }, "required": [ "entry" ], "type": "object" }, "addSpace": { "asCell": [ "stream" ], "properties": { "detail": { "properties": { "message": { "type": "string" } }, "required": [ "message" ], "type": "object" } }, "required": [ "detail" ], "type": "object" }, "createProfile": { "$ref": "#/$defs/CreateProfileEvent", "asCell": [ "stream" ] }, "defaultAppUrl": { "default": "", "type": "string" }, "defaultProfile": { "$ref": "#/$defs/TrustedDefaultProfile" }, "favorites": { "default": [], "items": { "$ref": "#/$defs/Favorite" }, "type": "array" }, "journal": { "default": [], "items": { "$ref": "#/$defs/JournalEntry" }, "type": "array" }, "mru": { "$ref": "#/$defs/TrustedProfileMru", "default": [] }, "profiles": { "$ref": "#/$defs/TrustedProfileList", "default": [] }, "removeFavorite": { "asCell": [ "stream" ], "properties": { "id": { "type": "string" }, "piece": { "type": "unknown" } }, "type": "object" }, "removeSpace": { "asCell": [ "stream" ], "properties": { "name": { "type": "string" } }, "type": "object" }, "spaces": { "default": [], "items": { "$ref": "#/$defs/SpaceEntry" }, "type": "array" } }, "required": [ "favorites", "journal", "spaces", "defaultAppUrl", "profiles", "mru", "createProfile", "addFavorite", "removeFavorite", "addJournalEntry", "addSpace", "removeSpace", "$NAME", "$UI" ], "type": "object" } }