
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@byu-oit/ts-claims-engine-client
Advanced tools
npm i @byu-oit/ts-claims-engine-client
The purpose of the Claims Adjudicator Client is to facilitate the formation of claims requests using functional syntax.
const { AdjudicatorClient: CEC } = require("@byu-oit/ts-claims-engine-client");
const client = new CEC();
client
.subject("John")
.mode("all")
.claim(
CEC.claim()
.concept("subject-exists")
.relationship("eq")
.value("true")
.qualify("age", 43)
);
const valid = client.validate(); // True
console.log(JSON.stringify(client.assertion, null, 2));
:sparkles: Try it out with RunKit on NPM :sparkles:
Some of the parameters and return types are complex objects. Instead of listing them in the method definitions, they have been listed in the Appendix under API Reference.
Creates a new instance of the AdjudicatorClient.
AdjudicatorClient(options: AdjudicatorClientParams = {})
id: string: The ID of the assertion object.
assertion: PartialAssertion: The assertion object for making a claims request.
AdjudicatorClient.validate: Provides programatic access to validate an assertion/claims object.
AdjudicatorClient.validate(assertion: any): boolean
AdjudicatorClient.claim: Provides programatic access to the ClaimClient class from the AdjudicatorClient.
AdjudicatorClient.claim(options?: ClaimClientParams): ClaimClient
AdjudicatorClient.join: Provides a method to join assertions together.
AdjudicatorClient.join(...assertions: AdjudicaatorClient): {[key: string]: PartialAssertion}
subject: Adds subject: [value] to the assertion object.
subject(value: string): this
mode: Adds mode: [value] to the assertion object.
mode(value: 'all' | 'any' | 'one'): this
claim: Adds claim: PartialClaim[] (a claim or list of claims) to the assertion object.
claim(...values: Array<ClaimClient | ClaimItem>): this
validate: Validates the current object schema.
validate(): boolean
interface AdjudicatorClientParams {
id?: string;
subject?: string;
mode?: Mode;
claims?: Array<ClaimClient | ClaimItem>;
}
interface ClaimClientParams {
concept?: string;
relationship?: Relationship;
value?: string;
qualifier?: Qualifiers;
}
interface ClaimItem {
concept: string;
relationship: Relationship;
value: string;
qualifier?: Qualifiers;
}
type Mode = "all" | "any" | "one";
interface PartialAssertion {
[key: string]: {
subject?: string;
mode?: Mode;
claims?: PartialClaim[];
};
}
interface PartialClaim {
concept?: string;
relationship?: Relationship;
value?: string;
qualifier?: Qualifiers;
}
type Relationship = "gt" | "gt_or_eq" | "lt" | "lt_or_eq" | "eq" | "not_eq";
FAQs
Claims engine client implementation in TypeScript
The npm package @byu-oit/ts-claims-engine-client receives a total of 17 weekly downloads. As such, @byu-oit/ts-claims-engine-client popularity was classified as not popular.
We found that @byu-oit/ts-claims-engine-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.