CkTypeWriteAccessDto
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects
CK v2: restricts who may write (create, update, replace, delete, and change associations of) runtime
entities of a type. A write is allowed when the caller's principal kind is listed in CkTypeWriteAccessDto.Principalsor the session carries one of the CkTypeWriteAccessDto.Channels. System sessions (pipelines, blueprint seeds,
migrations) are never restricted. Derived types inherit the block; when a derived type declares its own block,
every block along the inheritance chain must allow the write. Requires ckLanguage: 2; a model that uses
it carries a raised minEngineVersion (CkEngineVersion.WriteAccessMinEngineVersion), so older
engines refuse it with message 126 instead of ignoring the restriction. The compiler validates the block
(message 143).
public class CkTypeWriteAccessDto
Inheritance Object → CkTypeWriteAccessDto
Properties
Principals
The principal kinds that may write, see CkWritePrincipals (Interactive, Client).
null (omitted) means no principal kind is admitted by itself; then only a listed channel admits a
write.
public List<string> Principals { get; set; }
Property Value
Channels
Trusted in-process write channels in the form <namespace>/<name>, e.g.
System.Ai/KnowledgeTools. A channel is a marker that service code puts on the session it opens
(RtSecurityContext.WriteChannel); it never comes from a token, a header or a client id.
public List<string> Channels { get; set; }
Property Value
Constructors
CkTypeWriteAccessDto()
public CkTypeWriteAccessDto()