This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ArtifactClaimShape Pennington.Artifacts

Union of the URL-territory shapes an ArtifactClaim can declare.

Cases

ExactClaim ExactClaim
Matches exactly one request path.
PrefixClaim PrefixClaim
Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).
SuffixClaim SuffixClaim
Matches any request path ending with Suffix at any depth — the mid-path catch-all no endpoint route template can express (e.g. /reference/api/llms.txt via /llms.txt). A path that is nothing but the suffix does not match, so a root file like /llms.txt stays claimable by an ExactClaim.

Properties

Value object
Wrapped case instance; inspect via pattern matching on the case types.

Constructors

ArtifactClaimShape

#
public ArtifactClaimShape(PrefixClaim value)

Wraps a PrefixClaim.

Parameters

value PrefixClaim

ArtifactClaimShape

#
public ArtifactClaimShape(SuffixClaim value)

Wraps a SuffixClaim.

Parameters

value SuffixClaim

ArtifactClaimShape

#
public ArtifactClaimShape(ExactClaim value)

Wraps an ExactClaim.

Parameters

value ExactClaim

Pennington.Artifacts.ArtifactClaimShape

namespace Pennington.Artifacts;

/// Union of the URL-territory shapes an ArtifactClaim can declare.
public struct ArtifactClaimShape
{
    /// Wraps a PrefixClaim.
    
public ArtifactClaimShape(PrefixClaim value)
; /// Wraps a SuffixClaim.
public ArtifactClaimShape(SuffixClaim value)
; /// Wraps an ExactClaim.
public ArtifactClaimShape(ExactClaim value)
; /// Matches exactly one request path.
public record ExactClaim(UrlPath Path) : object, IEquatable<ExactClaim>
/// Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).
public record PrefixClaim(UrlPath Prefix, string Suffix = null) : object, IEquatable<PrefixClaim>
/// Matches any request path ending with Suffix at any depth — the mid-path catch-all no endpoint route template can express (e.g. /reference/api/llms.txt via /llms.txt). A path that is nothing but the suffix does not match, so a root file like /llms.txt stays claimable by an ExactClaim.
public record SuffixClaim(string Suffix) : object, IEquatable<SuffixClaim>
/// Wrapped case instance; inspect via pattern matching on the case types.
public object Value { get; }
}