An individual contribution made by an extension

interface Contribution {
    constraints?: ContributionConstraint[];
    description?: string;
    id?: string;
    includes?: string[];
    properties?: any;
    restrictedTo?: string[];
    targets?: string[];
    type?: string;
    visibleTo?: string[];
}

Hierarchy (View Summary)

Properties

constraints?: ContributionConstraint[]

List of constraints (filters) that should be applied to the availability of this contribution

description?: string

Description of the contribution/type

id?: string

Fully qualified identifier of the contribution/type

includes?: string[]

Includes is a set of contributions that should have this contribution included in their targets list.

properties?: any

Properties/attributes of this contribution

restrictedTo?: string[]

List of demanded claims in order for the user to see this contribution (like anonymous, public, member...).

targets?: string[]

The ids of the contribution(s) that this contribution targets. (parent contributions)

type?: string

Id of the Contribution Type

visibleTo?: string[]

VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this.