{"_id":"@byu-oit/ts-wso2-claims-request","_rev":"18-1f328d84f420485af23804a8e919f608","name":"@byu-oit/ts-wso2-claims-request","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@byu-oit/ts-wso2-claims-request","version":"1.0.0","keywords":["claims","adjudicator","engine","client","wso2","request","typescript"],"author":{"name":"Spencer Tuft","email":"spencer_tuft@byu.edu"},"license":"Apache-2.0","_id":"@byu-oit/ts-wso2-claims-request@1.0.0","maintainers":[{"name":"martingarn","email":"martin_garn@byu.edu"},{"name":"blakemorgan","email":"b.morgan.296@gmail.com"},{"name":"byujol","email":"byujol@gmail.com"},{"name":"yoshutch","email":"scott_hutchings@byu.edu"},{"name":"lehinpm","email":"lehi_alcantara@byu.edu"},{"name":"oscea","email":"it@byu.edu"},{"name":"stuft2","email":"spencer.tuft@gmail.com"},{"name":"pauldeden","email":"byu-oit-npmjs@byu.edu"},{"name":"mhailstone","email":"matthew.hailstone@gmail.com"},{"name":"thatjoemoore","email":"npm@thatjoemoore.com"},{"name":"gi60s","email":"james.speirs@gmail.com"},{"name":"arasmus8","email":"arasmus8@gmail.com"},{"name":"garygsc","email":"garygsc@gmail.com"}],"homepage":"https://github.com/byu-oit/ts-wso2-claims-request#readme","bugs":{"url":"https://github.com/byu-oit/ts-wso2-claims-request/issues"},"nyc":{"include":["lib/**/*.ts"],"require":["ts-node/register"],"reporter":["text-summary","html"],"extension":[".ts"],"sourceMap":true,"instrument":true},"dist":{"shasum":"0ada1593f6e2ac1da9e09c25909a644ebbd6a691","tarball":"https://registry.npmjs.org/@byu-oit/ts-wso2-claims-request/-/ts-wso2-claims-request-1.0.0.tgz","fileCount":6,"integrity":"sha512-sTZcIdAaUFAfNjzoJbkGk2edS9a/G/HYTbAe7auN8Pot8hGSZxa4P92W89mGMvIfZVPqQUIpK8npJqUHS7keng==","signatures":[{"sig":"MEUCIQCjiVbiiJD/IOqym+JvfZUPzrVPPRh1VenucRk9jg+DSQIgcM6MiW3UayLZP1lcLy0VjIl9JiGdDyuxBIOqadiYaJc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdk4ueCRA9TVsSAnZWagAAX9wP/Ak2dnLZR02Q+RHCBHLZ\nmCA+fXOKpDio+Ady7ybXZy/Vz9Ew/anApFog7EzVORb+yIkNfDLDFsz559ri\nezupOk3Nl7YodVLUMBxDgXb19ju5KRHaEBEemmwT7NocEWdpmRoFmYzoMqao\niFfjh7M7H5tQJPjbi5xMHsHHp4hN1idfwkj0uy2uoNIhN2Rc17O3JE1kxdlG\nDwAYZeFjo6yctCrbE3gICMMsXt1w80zAy46OC16TwIFuQz0lSX7165XbDvqO\nAByypZOFAGWMM0y1+6w7ZpT3SnKoT+/TOl2TVqrMeDLIdKn1L0B9sC9NE7VN\nni+tZVCXFnfQhQ4CUm2aEhrEDl+4v6nrGCQlYhIEkkUn4nr2UIvEoi7ko1YZ\nsPQpUj5oNjDASA0fxCz9tjMmubesuGXv1ZRkd7e9F0IKyEppwNHqNOLytPIs\nFJcWn4Ame8M3BohPsPPxySWO8kLdv9cwXwvhINTG3Wm4BW96UWGk4ZPbqxAX\ng1aO/on5ia2zaEjZmMmyReoDswG8WTYHFjhIJtrBqNU1ca3umAQVPBipFTL9\njtwOxQMEEU1EJSIw4j7SFHEHH5irdzDWNTC8xi8u/7EHO5j2PO6x5/k01Vkh\nrmLEtamU3QxyuMI1WIM3L4/70wNGbgZzAKcTBgVhcMXhph0BK49GXz6GU0Fb\nCf2J\r\n=l+C2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0e9e876d09521bb5bce6f8874f3e3aa534823011","scripts":{"lint":"tslint -p tsconfig.json -t stylish --fix","test":"nyc mocha -r ts-node/register ./test/**/*-test.ts","build":"tsc","coverage":"nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"stuft2","email":"spencer.tuft@gmail.com"},"deprecated":"@byu-oit/ts-wso2-claims-request has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142","repository":{"url":"git+https://github.com/byu-oit/ts-wso2-claims-request.git","type":"git"},"_npmVersion":"6.11.3","description":"WSO2 request integration with claims engine client in TypeScript","directories":{"lib":"lib","test":"test"},"_nodeVersion":"10.15.1","dependencies":{"@byu-oit/wso2-request":"^1.0.1","@byu-oit/ts-claims-engine-client":"^1.1.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","mocha":"^6.2.0","sinon":"^7.5.0","tslint":"^5.19.0","ts-node":"^8.3.0","coveralls":"^3.0.6","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.8","@types/mocha":"^5.2.7","@types/sinon":"^7.0.13","source-map-support":"^0.5.13","@types/request-promise":"^4.1.44"},"_npmOperationalInternal":{"tmp":"tmp/ts-wso2-claims-request_1.0.0_1569950621894_0.4224649963245368","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@byu-oit/ts-wso2-claims-request","version":"2.0.0","keywords":["claims","adjudicator","engine","client","wso2","request","typescript"],"author":{"name":"Spencer Tuft","email":"spencer_tuft@byu.edu"},"license":"Apache-2.0","_id":"@byu-oit/ts-wso2-claims-request@2.0.0","maintainers":[{"name":"arasmus8","email":"arasmus8@gmail.com"},{"name":"blakemorgan","email":"b.morgan.296@gmail.com"},{"name":"byujol","email":"byujol@gmail.com"},{"name":"garygsc","email":"garygsc@gmail.com"},{"name":"gi60s","email":"james.speirs@gmail.com"},{"name":"lehinpm","email":"lehi_alcantara@byu.edu"},{"name":"martingarn","email":"martin_garn@byu.edu"},{"name":"mhailstone","email":"matthew.hailstone@gmail.com"},{"name":"oscea","email":"it@byu.edu"},{"name":"pauldeden","email":"byu-oit-npmjs@byu.edu"},{"name":"stuft2","email":"spencer.tuft@gmail.com"},{"name":"thatjoemoore","email":"npm@thatjoemoore.com"},{"name":"yoshutch","email":"scott_hutchings@byu.edu"}],"homepage":"https://github.com/byu-oit/ts-wso2-claims-request#readme","bugs":{"url":"https://github.com/byu-oit/ts-wso2-claims-request/issues"},"nyc":{"include":["lib/**/*.ts"],"require":["ts-node/register"],"reporter":["text-summary","html"],"extension":[".ts"],"sourceMap":true,"instrument":true},"dist":{"shasum":"8a46230a92de22c210a94101987302c273789935","tarball":"https://registry.npmjs.org/@byu-oit/ts-wso2-claims-request/-/ts-wso2-claims-request-2.0.0.tgz","fileCount":6,"integrity":"sha512-Jho1OcY+L2D22ztBbljvfYrOpp37Xt0O24/Yj3nw/GlXNQq/qq170ejRF2+N2qrv/jnGl3EWCMwXTPT7er3BoA==","signatures":[{"sig":"MEQCIHqQZ59JxePq+8upA5a7Mczf6gubrTaRvI28Mc9R50dYAiAvc55N8hfiIlr7xt2L4n2MqHQ2FluSdepQeQHMiTUJHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnnTPCRA9TVsSAnZWagAAN+YQAKOc8uSuKnQc6SFXuder\nKa8hNaX2B6MXC6qhaPL15DF1Bmi4q/wkLpN26TyTRX0Bg6UwsbfFOcPy4zfM\nldlOWGoMqtpxaGsANa43dWVWVn6ZL+T+wlwPQhA/coC/rD2ivd4cCoCgtIso\nQ10QDrbei2wztrJmtXvlZUISR2OYH4wjPFc20eyB02nPfkk4sbvNuJXq/Zyw\ntpxxYiQJm2DNGC129TqnNqrqLeMN1brwOPFhvELgPqRQ4+ufWphFV6euMzPb\ny7iSJpiMuhy/Z/MuVCYhF1Eq6WdwqDlwayrT/MpCm/PuEDkHCs27KNPXWDzr\nyqXu6saVi+4X5xu7cqJInQq0/eozLjyUEz+Q1UDGZy95QtXfSaj3HipD8Pb9\ngHPv22iKPqse0fqy/Ep2AofZDvb1/3PQlhzMdhunO8p2QEZMGwauh7tkiyr4\nAuVz5WgJ4g/q8gi2RaBqSzc5VJ4sJPQ66feAFysIYlENz/vDimtLaNL6SOO7\nRwEL3Zg+9/tmY1tNHw/uVLR481hGS1204Xq5h02/BsWkthURoUGBnMf/cid7\nl1nz2tNXNKmyObZ+FBeedPAosdMO6c0e4Uuz9CylDt7Wcrx6OJaRxtVJsgd6\nhJzOeYykpuwUuiAW3AkoCyucyXDgj4WErCdtqR1gOToocMjpY3W8ihKwcaz7\n0E9P\r\n=BMTj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"18682ff8d0e6b69efff3cce3b111101cbb355c0b","scripts":{"lint":"tslint -p tsconfig.json -t stylish --fix","test":"nyc mocha -r ts-node/register ./test/**/*-test.ts","build":"tsc","coverage":"nyc report --reporter=text-lcov | coveralls"},"_npmUser":{"name":"stuft2","email":"spencer.tuft@gmail.com"},"deprecated":"@byu-oit/ts-wso2-claims-request has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142","repository":{"url":"git+https://github.com/byu-oit/ts-wso2-claims-request.git","type":"git"},"_npmVersion":"6.11.3","description":"WSO2 request integration with claims engine client in TypeScript","directories":{"lib":"lib","test":"test"},"_nodeVersion":"10.15.1","dependencies":{"sinon":"^7.5.0","request-promise":"^4.2.4","byu-wso2-request":"^2.0.2","@byu-oit/ts-claims-engine-client":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","mocha":"^6.2.0","tslint":"^5.19.0","ts-node":"^8.3.0","coveralls":"^3.0.6","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.8","@types/mocha":"^5.2.7","@types/sinon":"^7.0.13","source-map-support":"^0.5.13","@types/request-promise":"^4.1.44"},"peerDependencies":{"byu-wso2-request":"^2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/ts-wso2-claims-request_2.0.0_1570665679348_0.24837031720287417","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-10-01T17:23:41.819Z","modified":"2026-07-06T18:20:39.720Z","1.0.0":"2019-10-01T17:23:42.047Z","2.0.0":"2019-10-10T00:01:19.446Z"},"bugs":{"url":"https://github.com/byu-oit/ts-wso2-claims-request/issues"},"author":{"name":"Spencer Tuft","email":"spencer_tuft@byu.edu"},"license":"Apache-2.0","homepage":"https://github.com/byu-oit/ts-wso2-claims-request#readme","keywords":["claims","adjudicator","engine","client","wso2","request","typescript"],"repository":{"url":"git+https://github.com/byu-oit/ts-wso2-claims-request.git","type":"git"},"description":"WSO2 request integration with claims engine client in TypeScript","maintainers":[{"email":"scott_hutchings@byu.edu","name":"yoshutch"},{"email":"lehi_alcantara@byu.edu","name":"lehinpm"},{"email":"it@byu.edu","name":"oscea"},{"email":"stuft2@protonmail.com","name":"stuft2"},{"email":"matthew.hailstone@gmail.com","name":"mhailstone"},{"email":"arasmus8@gmail.com","name":"arasmus8"},{"email":"garygsc@gmail.com","name":"garygsc"},{"email":"github@snelg.com","name":"snelg"},{"email":"danielduraesm@gmail.com","name":"gholl0"},{"email":"developertools@byu.edu","name":"byu-oit-bot"},{"email":"micah.weatherhead@gmail.com","name":"mjweather"},{"email":"jvisker@byu.edu","name":"jvisker"}],"readme":"# ts-wso2-claims-request\n[![Coverage Status](https://coveralls.io/repos/github/byu-oit/ts-wso2-claims-request/badge.svg?branch=master)](https://coveralls.io/github/byu-oit/ts-wso2-claims-request?branch=master)\n[![Build Status](https://travis-ci.org/byu-oit/ts-wso2-claims-request.svg?branch=master)](https://travis-ci.org/byu-oit/ts-wso2-claims-request)\n\n## Installation\n`npm i @byu-oit/ts-wso2-claims-request`\n\n## Introduction\nThis module is an extension of the [Claims Adjudicator Client](https://github.com/byu-oit/ts-claims-engine-client). It adds a few helper functions that are specific to users who commonly use the [BYU WSO2 Request package](htts://github.com/byu-oit/byu-wso2-request).\n\n## Example\n```ts\nconst {AdjudicatorClient: CEC} = require('@byu-oit/ts-claims-engine-client')\nconst client = new CEC();\n\nclient.subject('John')\n    .mode('all')\n    .claim(CEC.claim()\n        .concept('subject-exists')\n        .relationship('eq')\n        .value('true')\n        .qualify('age', 43))\n\n// Must set the wso2 settings before attempting to verify a claim!\nCEC.setOauthSettings(clientKey, clientSecret)\n\t.then(() => client.verify())\n\t.then(response => console.log(JSON.stringify(response, null, 2)))\n\t.catch(console.error)\n```\n\n## API\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### AdjudicatorWSO2RequestClient\nCreates a new instance of the AdjudicatorWSO2RequestClient, which is an extension of the [Claims Adjudicator Client](https://github.com/byu-oit/ts-claims-engine-client).\n```ts\nAdjudicatorWSO2RequestClient(config: AdjudicatorWSO2RequestClientParams, assertionParams?: AssertionClientParams)\n```\n\n\n### Static Methods\n`AdjudicatorWSO2RequestClient.setOauthSettings`: Exposes the [BYU WSO2 Request](https://github.com/byu-oit/byu-wso2-request) setOauthSettings function.\n\n`AdjudicatorWSO2RequestClient.request`: Exposes the [BYU WSO2 Request](https://github.com/byu-oit/byu-wso2-request) request function.\n\n### Public Methods\n`info`: Calls the \"getConcepts\" endpoint of the claims engine at the URL specified in the class configuration.\n```ts\nAdjudicatorWSO2RequestClient.info(): Promise<any>\n```\n\n`verify`: Calls the \"verifyClaim\" endpoint of the claims engine at the URL specified in the class configuration. The request body is given the current assertion stored in the class if no assertions are passed in. In the case that assertions are passed in, they are placed in the request body.\n```ts\nAdjudicatorWSO2RequestClient.verify(assertions?: any): Promise<any>\n```\n\n\n## Appendix\n\n### API Reference\n\n[RequestPromiseOptions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/7d1ee0c34ac518764b3d2b1ee3ff9dc5c5a5ddce/types/request-promise/index.d.ts#L24)\n\n[AssertionClientParams](https://github.com/byu-oit/ts-claims-engine-client/#api-reference)\n\n```ts\ninterface AdjudicatorWSO2RequestClientParams {\n    url: string\n    request?: RequestPromiseOptions\n}\n```\n\n### Related Packages\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* **[BYU WSO2 Request](https://github.com/byu-oit/byu-wso2-request)**\n","readmeFilename":"README.md"}