node-nlp
Version:
Library for NLU (Natural Language Understanding) done in Node.js
29 lines (28 loc) • 705 B
TypeScript
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Represents a claim.
*/
export interface Claim {
readonly type: string;
readonly value: string;
}
/**
* Represents a claims-based identity.
*/
export declare class ClaimsIdentity {
readonly isAuthenticated: boolean;
private readonly claims;
constructor(claims: Claim[], isAuthenticated: boolean);
/**
* Returns a claim value (if its present)
* @param {string} claimType The claim type to look for
* @returns {string|null} The claim value or null if not found
*/
getClaimValue(claimType: string): string | null;
}