Skip to main content

Interface: AttributeValue

Defined in: type/AttributeValue.ts:12

Base interface for all attribute value types.

Upstream the GraphQL AttributeValue interface exposes only id. The SDK surfaces type and value here as a TypeScript-only convenience so consumer code can discriminate on attr.value.type without first casting to a concrete subtype. Every concrete Attribute*Value interface declares its own type and value, so this is a structural compatibility shim — not added to the wire protocol.

Extended by

Properties

id

id: string

Defined in: type/AttributeValue.ts:14

Unique identifier for this attribute value instance.


type

type: AttributeType

Defined in: type/AttributeValue.ts:16

Discriminator — the concrete attribute type (TEXT, ENUM, INT, etc.).


value

value: any

Defined in: type/AttributeValue.ts:18

Concrete value of the attribute. Inspect together with type for proper handling.