{"id":26009981,"url":"https://github.com/byu-oit/ts-claims-engine-client","last_synced_at":"2025-10-11T02:42:43.078Z","repository":{"id":35134736,"uuid":"210770066","full_name":"byu-oit/ts-claims-engine-client","owner":"byu-oit","description":"Claims engine client implementation in TypeScript","archived":false,"fork":false,"pushed_at":"2023-07-19T00:26:25.000Z","size":613,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-10-11T02:42:42.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byu-oit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-25T06:19:33.000Z","updated_at":"2022-05-16T22:52:38.000Z","dependencies_parsed_at":"2025-03-05T22:29:59.146Z","dependency_job_id":"e60c5072-448f-4ec1-b78a-70dbb201f79b","html_url":"https://github.com/byu-oit/ts-claims-engine-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byu-oit/ts-claims-engine-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byu-oit%2Fts-claims-engine-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byu-oit%2Fts-claims-engine-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byu-oit%2Fts-claims-engine-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byu-oit%2Fts-claims-engine-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byu-oit","download_url":"https://codeload.github.com/byu-oit/ts-claims-engine-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byu-oit%2Fts-claims-engine-client/sbom","scorecard":{"id":260519,"data":{"date":"2025-08-11","repo":{"name":"github.com/byu-oit/ts-claims-engine-client","commit":"847e1be7b99e84067fcc77914ffb15b6b14941f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/byu-oit/ts-claims-engine-client/codeql-analysis.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:22","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"26 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T10:44:12.665Z","repository_id":35134736,"created_at":"2025-08-17T10:44:12.665Z","updated_at":"2025-08-17T10:44:12.665Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005969,"owners_count":26084004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-05T22:26:45.975Z","updated_at":"2025-10-11T02:42:43.057Z","avatar_url":"https://github.com/byu-oit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eClaims Adjudicator Client\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/byu-oit/ts-claims-engine-middleware/actions?query=workflow%3ACI\"\u003e\n      \u003cimg alt=\"CI\" src=\"https://github.com/byu-oit/ts-claims-engine-client/workflows/CI/badge.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/byu-oit/ts-claims-engine\"\u003e\n      \u003cimg alt=\"Code Coverage\" src=\"https://codecov.io/gh/byu-oit/ts-claims-engine-client/branch/master/graph/badge.svg\" /\u003e\n    \u003c/a\u003e\n    \u003cimg alt=\"GitHub package.json version\" src=\"https://img.shields.io/github/package-json/v/byu-oit/ts-claims-engine-client\" /\u003e\n    \u003ca href=\"https://prettier.io/\"\u003e\u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n## Installation\n\n`npm i @byu-oit/ts-claims-engine-client`\n\n## Introduction\n\nThe purpose of the Claims Adjudicator Client is to facilitate the formation of claims requests using functional syntax.\n\n## Example\n\n```ts\nconst { AdjudicatorClient: CEC } = require(\"@byu-oit/ts-claims-engine-client\");\nconst client = new CEC();\n\nclient\n  .subject(\"John\")\n  .mode(\"all\")\n  .claim(\n    CEC.claim()\n      .concept(\"subject-exists\")\n      .relationship(\"eq\")\n      .value(\"true\")\n      .qualify(\"age\", 43)\n  );\n\nconst valid = client.validate(); // True\n\nconsole.log(JSON.stringify(client.assertion, null, 2));\n```\n\n:sparkles: Try it out with [RunKit on NPM](https://npm.runkit.com/@byu-oit/ts-claims-engine-client) :sparkles:\n\n## API\n\nSome of the parameters and return types are complex objects. Instead of listing them in the method definitions, they have been listed in the [Appendix](#appendix) under [API Reference](#api-reference).\n\n### AdjudicatorClient\n\nCreates a new instance of the AdjudicatorClient.\n\n```ts\nAdjudicatorClient(options: AdjudicatorClientParams = {})\n```\n\n### Public Data Members\n\n`id: string`: The ID of the assertion object.\n\n`assertion: PartialAssertion`: The assertion object for making a claims request.\n\n### Static Methods\n\n`AdjudicatorClient.validate`: Provides programatic access to validate an assertion/claims object.\n\n```ts\nAdjudicatorClient.validate(assertion: any): boolean\n```\n\n`AdjudicatorClient.claim`: Provides programatic access to the ClaimClient class from the AdjudicatorClient.\n\n```ts\nAdjudicatorClient.claim(options?: ClaimClientParams): ClaimClient\n```\n\n`AdjudicatorClient.join`: Provides a method to join assertions together.\n\n```ts\nAdjudicatorClient.join(...assertions: AdjudicaatorClient): {[key: string]: PartialAssertion}\n```\n\n### Public Methods\n\n`subject`: Adds `subject: [value]` to the assertion object.\n\n```ts\nsubject(value: string): this\n```\n\n`mode`: Adds `mode: [value]` to the assertion object.\n\n```ts\nmode(value: 'all' | 'any' | 'one'): this\n```\n\n`claim`: Adds `claim: PartialClaim[]` (a claim or list of claims) to the assertion object.\n\n```ts\nclaim(...values: Array\u003cClaimClient | ClaimItem\u003e): this\n```\n\n`validate`: Validates the current object schema.\n\n```ts\nvalidate(): boolean\n```\n\n## Appendix\n\n### API Reference\n\n```ts\ninterface AdjudicatorClientParams {\n  id?: string;\n  subject?: string;\n  mode?: Mode;\n  claims?: Array\u003cClaimClient | ClaimItem\u003e;\n}\n\ninterface ClaimClientParams {\n  concept?: string;\n  relationship?: Relationship;\n  value?: string;\n  qualifier?: Qualifiers;\n}\n\ninterface ClaimItem {\n  concept: string;\n  relationship: Relationship;\n  value: string;\n  qualifier?: Qualifiers;\n}\n\ntype Mode = \"all\" | \"any\" | \"one\";\n\ninterface PartialAssertion {\n  [key: string]: {\n    subject?: string;\n    mode?: Mode;\n    claims?: PartialClaim[];\n  };\n}\n\ninterface PartialClaim {\n  concept?: string;\n  relationship?: Relationship;\n  value?: string;\n  qualifier?: Qualifiers;\n}\n\ntype Relationship = \"gt\" | \"gt_or_eq\" | \"lt\" | \"lt_or_eq\" | \"eq\" | \"not_eq\";\n```\n\n### Related Packages\n\n- [Claims Adjudicator Module (CAM)](https://github.com/byu-oit/ts-claims-engine)\n- [Claims Adjudicator Middleware](https://github.com/byu-oit/ts-claims-engine-middleware)\n- [Claims Adjudicator Client](https://github.com/byu-oit/ts-claims-engine-client)\n- [Claims Adjudicator WSO2 Request](https://github.com/byu-oit/ts-wso2-claims-request)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyu-oit%2Fts-claims-engine-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyu-oit%2Fts-claims-engine-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyu-oit%2Fts-claims-engine-client/lists"}