@digitalpersona/services
Version:
DigitalPersona Web Access Services
33 lines (27 loc) • 1.03 kB
text/typescript
import { VarData } from "./variant";
/** Branded alias type for ActiveDirectory attribute names. */
export type ADAttributeName = string
& { brand?: "dp.services.ADAttributeName" };
/** Branded alias type for Lightweight Directory Service (LDS) attribute names. */
export type LDSAttributeName = string
& { brand?: "dp.services.LDSAttributeName" };
/** Supported types of attribute names. */
export type AttributeName = ADAttributeName | LDSAttributeName;
/** Enumerates supported actions that can be performed on user's attributes. */
export enum AttributeAction
{
/** Clear an attribute's value. */
Clear = 1,
/** Update an attribute's value. */
Update = 2,
/** Append a value to the existing multi-value attribute. */
Append = 3,
/** Delete an attribute. */
Delete = 4,
}
/** A named attribute with a variant data value. */
export interface Attribute
{
name: string;
data: VarData | null;
}