From 26e21c6642aea330bed8f2626f584a91193be442 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Thu, 31 Jan 2019 15:40:40 -0200 Subject: [PATCH 01/37] Don't validate id_token when alg is HS256 and there is no clientSecret --- src/auth/OAUthWithIDTokenValidation.js | 16 +++++++++--- .../oauth-with-idtoken-validation.tests.js | 25 ++++++++++++++++++- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index b9833f948..decac463e 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -58,6 +58,13 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { if (r.id_token) { function getKey(header, callback) { if (header.alg === 'HS256') { + if (!_this.clientSecret) { + return callback({ + ignoreValidation: true, + ignoreReason: + 'The `id_token` was not validated because a `clientSecret` was not provided. To ensure tokens are validated, please provide a `clientSecret` in the constructor.' + }); + } return callback(null, Buffer.from(_this.clientSecret, 'base64')); } _this._jwksClient.getSigningKey(header.kid, function(err, key) { @@ -77,11 +84,12 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { audience: this.clientId, issuer: 'https://' + this.domain + '/' }, - function(err, payload) { - if (err) { - return rej(err); + function(err) { + if (!err || err.ignoreValidation) { + console.warn(err.ignoreReason); + return res(r); } - return res(r); + return rej(err); } ); }); diff --git a/test/auth/oauth-with-idtoken-validation.tests.js b/test/auth/oauth-with-idtoken-validation.tests.js index 8e53a2490..8ca2ffa54 100644 --- a/test/auth/oauth-with-idtoken-validation.tests.js +++ b/test/auth/oauth-with-idtoken-validation.tests.js @@ -128,7 +128,7 @@ describe('OAUthWithIDTokenValidation', function() { done(); }); }); - it('Calls uses secret as key when header.alg === HS256', function(done) { + it('Uses `clientSecret` as key when header.alg === HS256 and there is a user secret', function(done) { var oauth = { create: function() { return new Promise(res => res({ id_token: 'foobar' })); @@ -145,6 +145,29 @@ describe('OAUthWithIDTokenValidation', function() { }); oauthWithValidation.create(PARAMS, DATA); }); + it('Returns unvalidated response when header.alg === HS256 and there is no user secret', function(done) { + var oauth = { + create: function() { + return new Promise(res => res({ id_token: 'foobar' })); + } + }; + sinon.stub(jwt, 'verify', function(idtoken, getKey, options, callback) { + getKey({ alg: 'HS256' }, function(err, key) { + expect(err).to.be.eql({ + ignoreValidation: true, + ignoreReason: + 'The `id_token` was not validated because a `clientSecret` was not provided. To ensure tokens are validated, please provide a `clientSecret` in the constructor.' + }); + callback(err, key); + }); + }); + var oauthWithValidation = new OAUthWithIDTokenValidation(oauth, {}); + oauthWithValidation.create(PARAMS, DATA, function(err, response) { + expect(err).to.be.null; + expect(response).to.be.eql({ id_token: 'foobar' }); + done(); + }); + }); describe('when header.alg !== HS256', function() { it('creates a jwksClient with the correct jwksUri', function(done) { var oauth = { From 8742a7de9fb6c38836cfab51ded4aadbbf3ba0f9 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Thu, 31 Jan 2019 15:53:28 -0200 Subject: [PATCH 02/37] console --- src/auth/OAUthWithIDTokenValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index decac463e..f0726aa47 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -86,9 +86,9 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { }, function(err) { if (!err || err.ignoreValidation) { - console.warn(err.ignoreReason); return res(r); } + console.warn(err.ignoreReason); return rej(err); } ); From d370692414e931daa62acdf497caffa17f53bc48 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Thu, 31 Jan 2019 15:54:09 -0200 Subject: [PATCH 03/37] console --- src/auth/OAUthWithIDTokenValidation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index f0726aa47..e73b96d60 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -86,9 +86,11 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { }, function(err) { if (!err || err.ignoreValidation) { + if (err.ignoreReason) { + console.warn(err.ignoreReason); + } return res(r); } - console.warn(err.ignoreReason); return rej(err); } ); From 95a42f3c9864b8992dde0d8915f16f8c997c1674 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Thu, 31 Jan 2019 15:55:13 -0200 Subject: [PATCH 04/37] console --- src/auth/OAUthWithIDTokenValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index e73b96d60..3455be53a 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -86,7 +86,7 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { }, function(err) { if (!err || err.ignoreValidation) { - if (err.ignoreReason) { + if (err && err.ignoreReason) { console.warn(err.ignoreReason); } return res(r); From 5aa546445a81d52af832b899732faf597f290ec7 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Thu, 31 Jan 2019 16:43:13 -0200 Subject: [PATCH 05/37] jsonwebtoken doesnt support custom errors --- src/auth/OAUthWithIDTokenValidation.js | 18 +++++++++--------- .../oauth-with-idtoken-validation.tests.js | 8 +++----- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index 3455be53a..9ff263a3b 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -4,6 +4,9 @@ var Promise = require('bluebird'); var ArgumentError = require('rest-facade').ArgumentError; +var HS256_IGNORE_VALIDATION_MESSAGE = + 'Validation of `id_token` requires a `clientSecret` when using the HS256 algorithm. To ensure tokens are validated, please switch the signing algorithm to RS256 or provide a `clientSecret` in the constructor.'; + /** * @class * Abstracts the `oauth.create` method with additional id_token validation @@ -59,11 +62,7 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { function getKey(header, callback) { if (header.alg === 'HS256') { if (!_this.clientSecret) { - return callback({ - ignoreValidation: true, - ignoreReason: - 'The `id_token` was not validated because a `clientSecret` was not provided. To ensure tokens are validated, please provide a `clientSecret` in the constructor.' - }); + return callback({ message: HS256_IGNORE_VALIDATION_MESSAGE }); } return callback(null, Buffer.from(_this.clientSecret, 'base64')); } @@ -85,10 +84,11 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) { issuer: 'https://' + this.domain + '/' }, function(err) { - if (!err || err.ignoreValidation) { - if (err && err.ignoreReason) { - console.warn(err.ignoreReason); - } + if (!err) { + return res(r); + } + if (err.message && err.message.includes(HS256_IGNORE_VALIDATION_MESSAGE)) { + console.warn(HS256_IGNORE_VALIDATION_MESSAGE); return res(r); } return rej(err); diff --git a/test/auth/oauth-with-idtoken-validation.tests.js b/test/auth/oauth-with-idtoken-validation.tests.js index 8ca2ffa54..2f8dc4fb4 100644 --- a/test/auth/oauth-with-idtoken-validation.tests.js +++ b/test/auth/oauth-with-idtoken-validation.tests.js @@ -153,11 +153,9 @@ describe('OAUthWithIDTokenValidation', function() { }; sinon.stub(jwt, 'verify', function(idtoken, getKey, options, callback) { getKey({ alg: 'HS256' }, function(err, key) { - expect(err).to.be.eql({ - ignoreValidation: true, - ignoreReason: - 'The `id_token` was not validated because a `clientSecret` was not provided. To ensure tokens are validated, please provide a `clientSecret` in the constructor.' - }); + expect(err.message).to.contain( + 'Validation of `id_token` requires a `clientSecret` when using the HS256 algorithm. To ensure tokens are validated, please switch the signing algorithm to RS256 or provide a `clientSecret` in the constructor.' + ); callback(err, key); }); }); From 90da0781fe620b453a5d5571d59a814042aac035 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 15:19:49 -0800 Subject: [PATCH 06/37] Make npm scripts work on Windows --- package.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b91a85153..bf3bcb812 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "2.14.0", "description": "SDK for Auth0 API v2", "main": "src/index.js", - "files": ["src"], + "files": [ + "src" + ], "scripts": { - "test": "mocha -R spec $(find ./test -name *.tests.js)", - "test:ci": - "istanbul cover _mocha --report lcovonly -R $(find ./test -name *.tests.js) -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", + "test": "mocha -R spec ./test/**/*.tests.js", + "test:ci": "istanbul cover _mocha --report lcovonly -R ./test/**/*.tests.js -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", "test:coverage": "codecov", - "test:watch": "NODE_ENV=test mocha --timeout 5000 $(find ./test -name *.tests.js) --watch", + "test:watch": "NODE_ENV=test mocha --timeout 5000 ./test/**/*.tests.js --watch", "jsdoc:generate": "jsdoc --configure .jsdoc.json --verbose", "release:clean": "node scripts/cleanup.js", "preversion": "node scripts/prepare.js", @@ -21,7 +22,10 @@ "type": "git", "url": "https://github.com/auth0/node-auth0" }, - "keywords": ["auth0", "api"], + "keywords": [ + "auth0", + "api" + ], "author": "Auth0", "license": "MIT", "bugs": { From d4a904a5b6bc659cd8e96460dd836dbd95af35c3 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 16:43:20 -0800 Subject: [PATCH 07/37] Ensure all tests run & revert CI to no Windows support as fails --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bf3bcb812..003ef7b76 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "src" ], "scripts": { - "test": "mocha -R spec ./test/**/*.tests.js", - "test:ci": "istanbul cover _mocha --report lcovonly -R ./test/**/*.tests.js -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", + "test": "mocha -R spec ./test/**/*.tests.js ./test/*.tests.js", + "test:ci": "istanbul cover _mocha --report lcovonly -R $(find ./test -name *.tests.js) -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", "test:coverage": "codecov", - "test:watch": "NODE_ENV=test mocha --timeout 5000 ./test/**/*.tests.js --watch", + "test:watch": "cross-env NODE_ENV=test mocha --timeout 5000 ./test/**/*.tests.js ./test/*.tests.js --watch", "jsdoc:generate": "jsdoc --configure .jsdoc.json --verbose", "release:clean": "node scripts/cleanup.js", "preversion": "node scripts/prepare.js", @@ -45,6 +45,7 @@ "devDependencies": { "chai": "^2.2.0", "codecov": "^2.2.0", + "cross-env": "^5.2.0", "husky": "^0.14.3", "istanbul": "^0.4.0", "jsdoc": "^3.5.5", From 71d36223b1069a9d27cbaa09ad9c1fae5977043d Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 18:38:31 -0800 Subject: [PATCH 08/37] Add missing yarn.lock entries --- yarn.lock | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 8531b7c3c..fdc725f1a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -554,6 +554,14 @@ core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" +cross-env@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2" + integrity sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg== + dependencies: + cross-spawn "^6.0.5" + is-windows "^1.0.0" + cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -562,6 +570,17 @@ cross-spawn@^5.0.1: shebang-command "^1.2.0" which "^1.2.9" +cross-spawn@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + crypt@~0.0.1: version "0.0.2" resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" @@ -1374,6 +1393,11 @@ is-upper-case@^1.1.0: dependencies: upper-case "^1.1.0" +is-windows@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" @@ -1873,6 +1897,11 @@ netmask@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/netmask/-/netmask-1.0.6.tgz#20297e89d86f6f6400f250d9f4f6b4c1945fcd35" +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + nock@^3.1.1: version "3.6.0" resolved "https://registry.yarnpkg.com/nock/-/nock-3.6.0.tgz#d26c40004b3449a655b91b74ae3c56fc02c84525" @@ -2130,7 +2159,7 @@ path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" -path-key@^2.0.0: +path-key@^2.0.0, path-key@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" @@ -2528,6 +2557,11 @@ semver@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" +semver@^5.5.0: + version "5.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" + integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg== + semver@~5.0.1: version "5.0.3" resolved "https://registry.yarnpkg.com/semver/-/semver-5.0.3.tgz#77466de589cd5d3c95f138aa78bc569a3cb5d27a" From b6fe688d2ac282ae4a533e1368f633f1383a93ae Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 17:19:08 -0800 Subject: [PATCH 09/37] Update JWKS-RSA to 1.4.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 003ef7b76..b6e588ba0 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { "bluebird": "^2.10.2", "jsonwebtoken": "^8.3.0", - "jwks-rsa": "^1.3.0", + "jwks-rsa": "^1.4.0", "lru-memoizer": "^1.11.1", "object.assign": "^4.0.4", "request": "^2.83.0", From 44a1d9c08acbc83850d481558358ade74b1dd6a8 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 17:19:25 -0800 Subject: [PATCH 10/37] Add package-lock.json to .gitignore --- .gitignore | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 11444ff23..00d4c0462 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,7 @@ node_modules # Compressed files. *.tgz -# InelliJ IDEA +# IntelliJ IDEA .idea build @@ -43,4 +43,7 @@ test-results.xml # Release process .release -.release-tmp-*/ \ No newline at end of file +.release-tmp-*/ + +# npm +package-lock.json \ No newline at end of file From 969ac864cca5b03f607b036ddc2be0852a39ca96 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 17:22:54 -0800 Subject: [PATCH 11/37] Update request to 2.88.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b6e588ba0..e996f84c3 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "jwks-rsa": "^1.4.0", "lru-memoizer": "^1.11.1", "object.assign": "^4.0.4", - "request": "^2.83.0", + "request": "^2.88.0", "rest-facade": "^1.10.1", "retry": "^0.10.1" }, From 9cb5882c51630057a6e3fbe2139c2a121a0c2768 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Tue, 19 Feb 2019 17:24:12 -0800 Subject: [PATCH 12/37] Update lru-memoizer to 1.12.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e996f84c3..da7529028 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "bluebird": "^2.10.2", "jsonwebtoken": "^8.3.0", "jwks-rsa": "^1.4.0", - "lru-memoizer": "^1.11.1", + "lru-memoizer": "^1.12.0", "object.assign": "^4.0.4", "request": "^2.88.0", "rest-facade": "^1.10.1", From c114adbd8f10f27f7214806801e998019aaa7122 Mon Sep 17 00:00:00 2001 From: Steven Adams Date: Thu, 21 Feb 2019 23:12:11 +1100 Subject: [PATCH 13/37] Add param docs for emailProvider --- src/management/EmailProviderManager.js | 5 ++++- src/management/index.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/management/EmailProviderManager.js b/src/management/EmailProviderManager.js index 591d9aea5..b99d9fd25 100644 --- a/src/management/EmailProviderManager.js +++ b/src/management/EmailProviderManager.js @@ -91,7 +91,10 @@ utils.wrapPropertyMethod(EmailProviderManager, 'configure', 'resource.create'); * }); * * @param {Function} [cb] Callback function. - * + * @param {Object} [params] Clients parameters. + * @param {Number} [params.fields] A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields. + * @param {Number} [params.include_fields] true if the fields specified are to be excluded from the result, false otherwise (defaults to true) + * @return {Promise|undefined} */ utils.wrapPropertyMethod(EmailProviderManager, 'get', 'resource.getAll'); diff --git a/src/management/index.js b/src/management/index.js index b9bce9cf0..7811e3b8c 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -1389,7 +1389,10 @@ utils.wrapPropertyMethod(ManagementClient, 'blacklistToken', 'blacklistedTokens. * }); * * @param {Function} [cb] Callback function. - * + * @param {Object} [params] Clients parameters. + * @param {Number} [params.fields] A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields. + * @param {Number} [params.include_fields] true if the fields specified are to be excluded from the result, false otherwise (defaults to true) + * @return {Promise|undefined} */ utils.wrapPropertyMethod(ManagementClient, 'getEmailProvider', 'emailProvider.get'); From 792434eefa8464c987372d61e3490eb122abc66e Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Thu, 21 Feb 2019 08:16:43 -0800 Subject: [PATCH 14/37] Update yarn lockfile --- yarn.lock | 142 +++++++----------------------------------------------- 1 file changed, 17 insertions(+), 125 deletions(-) diff --git a/yarn.lock b/yarn.lock index fdc725f1a..08b910c04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -95,15 +95,6 @@ ajv@^4.9.1: co "^4.6.0" json-stable-stringify "^1.0.1" -ajv@^5.1.0: - version "5.2.3" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.3.tgz#c06f598778c44c6b161abafe3466b81ad1814ed2" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" - json-schema-traverse "^0.3.0" - json-stable-stringify "^1.0.1" - ajv@^5.3.0: version "5.5.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" @@ -239,7 +230,7 @@ aws-sign2@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" -aws4@^1.2.1, aws4@^1.6.0: +aws4@^1.2.1: version "1.6.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" @@ -293,18 +284,6 @@ boom@2.x.x: dependencies: hoek "2.x.x" -boom@4.x.x: - version "4.3.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-4.3.1.tgz#4f8a3005cb4a7e3889f749030fd25b96e01d2e31" - dependencies: - hoek "4.x.x" - -boom@5.x.x: - version "5.2.0" - resolved "https://registry.yarnpkg.com/boom/-/boom-5.2.0.tgz#5dd9da6ee3a5f302077436290cb717d3f4a54e02" - dependencies: - hoek "4.x.x" - brace-expansion@^1.1.7: version "1.1.8" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" @@ -591,12 +570,6 @@ cryptiles@2.x.x: dependencies: boom "2.x.x" -cryptiles@3.x.x: - version "3.1.2" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-3.1.2.tgz#a89fbb220f5ce25ec56e8c4aa8a4fd7b5b0d29fe" - dependencies: - boom "5.x.x" - crypto-browserify@3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.3.0.tgz#b9fc75bb4a0ed61dcf1cd5dae96eb30c9c3e506c" @@ -843,7 +816,7 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -extend@3, extend@^3.0.0, extend@~3.0.0, extend@~3.0.1: +extend@3, extend@^3.0.0, extend@~3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" @@ -928,7 +901,7 @@ forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" -form-data@^2.3.1, form-data@~2.3.1: +form-data@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.1.tgz#6fb94fbd71885306d73d15cc497fe4cc4ecd44bf" dependencies: @@ -1132,13 +1105,6 @@ har-validator@~4.2.1: ajv "^4.9.1" har-schema "^1.0.5" -har-validator@~5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.0.3.tgz#ba402c266194f15956ef15e0fcf242993f6a7dfd" - dependencies: - ajv "^5.1.0" - har-schema "^2.0.0" - har-validator@~5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" @@ -1173,23 +1139,10 @@ hawk@~3.1.3: hoek "2.x.x" sntp "1.x.x" -hawk@~6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-6.0.2.tgz#af4d914eb065f9b5ce4d9d11c1cb2126eecc3038" - dependencies: - boom "4.x.x" - cryptiles "3.x.x" - hoek "4.x.x" - sntp "2.x.x" - hoek@2.x.x: version "2.16.3" resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" -hoek@4.x.x: - version "4.2.0" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.0.tgz#72d9d0754f7fe25ca2d01ad8f8f9a9449a89526d" - http-errors@1.6.2: version "1.6.2" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" @@ -1545,9 +1498,10 @@ jwa@^1.1.5: ecdsa-sig-formatter "1.0.10" safe-buffer "^5.0.1" -jwks-rsa@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jwks-rsa/-/jwks-rsa-1.3.0.tgz#f37d2a6815af17a3b2e5898ab2a41ad8c168b295" +jwks-rsa@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jwks-rsa/-/jwks-rsa-1.4.0.tgz#269cd2466afe7ab377fec55516f5e3019f22f0e5" + integrity sha512-6aUc+oTuqsLwIarfq3A0FqoD5LFSgveW5JO1uX2s0J8TJuOEcDc4NIMZAmVHO8tMHDw7CwOPzXF/9QhfOpOElA== dependencies: "@types/express-jwt" "0.0.34" debug "^2.2.0" @@ -1652,10 +1606,6 @@ lodash@^4.17.4: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" -lodash@~4.5.1: - version "4.5.1" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.5.1.tgz#80e8a074ca5f3893a6b1c10b2a636492d710c316" - lolex@1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/lolex/-/lolex-1.3.2.tgz#7c3da62ffcb30f0f5a80a2566ca24e45d8a01f31" @@ -1696,16 +1646,7 @@ lru-cache@~4.0.0: pseudomap "^1.0.1" yallist "^2.0.0" -lru-memoizer@^1.11.1: - version "1.11.1" - resolved "https://registry.yarnpkg.com/lru-memoizer/-/lru-memoizer-1.11.1.tgz#0693f6100593914c02e192bf9b8d93884cbf50d3" - dependencies: - lock "~0.1.2" - lodash "~4.5.1" - lru-cache "~4.0.0" - very-fast-args "^1.1.0" - -lru-memoizer@^1.6.0: +lru-memoizer@^1.12.0, lru-memoizer@^1.6.0: version "1.12.0" resolved "https://registry.yarnpkg.com/lru-memoizer/-/lru-memoizer-1.12.0.tgz#efe65706cc8a9cc653f80f0d5a6ea38ad950e352" dependencies: @@ -1767,10 +1708,6 @@ mime-db@~1.27.0: version "1.27.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" -mime-db@~1.30.0: - version "1.30.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" - mime-db@~1.35.0: version "1.35.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" @@ -1781,12 +1718,6 @@ mime-types@^2.1.12, mime-types@~2.1.7: dependencies: mime-db "~1.27.0" -mime-types@~2.1.17: - version "2.1.17" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" - dependencies: - mime-db "~1.30.0" - mime-types@~2.1.19: version "2.1.19" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" @@ -1998,7 +1929,7 @@ number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" -oauth-sign@~0.8.1, oauth-sign@~0.8.2: +oauth-sign@~0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" @@ -2273,7 +2204,7 @@ punycode@^1.2.4, punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" -qs@^6.5.1, qs@~6.5.1: +qs@^6.5.1: version "6.5.1" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" @@ -2408,7 +2339,7 @@ request@2.79.0: tunnel-agent "~0.4.1" uuid "^3.0.0" -request@^2.73.0: +request@^2.73.0, request@^2.88.0: version "2.88.0" resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" dependencies: @@ -2460,33 +2391,6 @@ request@^2.81.0: tunnel-agent "^0.6.0" uuid "^3.0.0" -request@^2.83.0: - version "2.83.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356" - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.6.0" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.1" - forever-agent "~0.6.1" - form-data "~2.3.1" - har-validator "~5.0.3" - hawk "~6.0.2" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.17" - oauth-sign "~0.8.2" - performance-now "^2.1.0" - qs "~6.5.1" - safe-buffer "^5.1.1" - stringstream "~0.0.5" - tough-cookie "~2.3.3" - tunnel-agent "^0.6.0" - uuid "^3.1.0" - requizzle@~0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.1.tgz#6943c3530c4d9a7e46f1cddd51c158fc670cdbde" @@ -2537,10 +2441,6 @@ safe-buffer@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.0.tgz#fe4c8460397f9eaaaa58e73be46273408a45e223" -safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - safe-buffer@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -2549,6 +2449,10 @@ safe-buffer@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + samsam@1.1.2, samsam@~1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.2.tgz#bec11fdc83a9fda063401210e40176c3024d1567" @@ -2635,12 +2539,6 @@ sntp@1.x.x: dependencies: hoek "2.x.x" -sntp@2.x.x: - version "2.0.2" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-2.0.2.tgz#5064110f0af85f7cfdb7d6b67a40028ce52b4b2b" - dependencies: - hoek "4.x.x" - socks-proxy-agent@2: version "2.1.1" resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz#86ebb07193258637870e13b7bd99f26c663df3d3" @@ -2766,7 +2664,7 @@ string_decoder@~1.0.3: dependencies: safe-buffer "~5.1.0" -stringstream@~0.0.4, stringstream@~0.0.5: +stringstream@~0.0.4: version "0.0.5" resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" @@ -2903,12 +2801,6 @@ tough-cookie@~2.3.0: dependencies: punycode "^1.4.1" -tough-cookie@~2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" - dependencies: - punycode "^1.4.1" - tough-cookie@~2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" @@ -3010,7 +2902,7 @@ util@0.10.3, "util@>=0.10.3 <1", util@^0.10.3: dependencies: inherits "2.0.1" -uuid@^3.0.0, uuid@^3.1.0: +uuid@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" From 55f06b0b1d3727adcd5007d7f17cfdec8498ef28 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Thu, 21 Feb 2019 13:16:25 -0800 Subject: [PATCH 15/37] Regenerate yarn lock for updated deps --- yarn.lock | 2368 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 1727 insertions(+), 641 deletions(-) diff --git a/yarn.lock b/yarn.lock index 08b910c04..aaf04fc49 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,7 @@ "@types/body-parser@*": version "1.17.0" resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.17.0.tgz#9f5c9d9bd04bb54be32d5eb9fc0d8c974e6cf58c" + integrity sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w== dependencies: "@types/connect" "*" "@types/node" "*" @@ -12,101 +13,106 @@ "@types/connect@*": version "3.4.32" resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.32.tgz#aa0e9616b9435ccad02bc52b5b454ffc2c70ba28" + integrity sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg== dependencies: "@types/node" "*" -"@types/events@*": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86" - "@types/express-jwt@0.0.34": version "0.0.34" resolved "https://registry.yarnpkg.com/@types/express-jwt/-/express-jwt-0.0.34.tgz#fdbee4c6af5c0a246ef2a933f5519973c7717f02" + integrity sha1-/b7kxq9cCiRu8qkz9VGZc8dxfwI= dependencies: "@types/express" "*" "@types/express-unless" "*" "@types/express-serve-static-core@*": - version "4.16.0" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.16.0.tgz#fdfe777594ddc1fe8eb8eccce52e261b496e43e7" + version "4.16.1" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.16.1.tgz#35df7b302299a4ab138a643617bd44078e74d44e" + integrity sha512-QgbIMRU1EVRry5cIu1ORCQP4flSYqLM1lS5LYyGWfKnFT3E58f0gKto7BR13clBFVrVZ0G0rbLZ1hUpSkgQQOA== dependencies: - "@types/events" "*" "@types/node" "*" "@types/range-parser" "*" "@types/express-unless@*": - version "0.0.32" - resolved "https://registry.yarnpkg.com/@types/express-unless/-/express-unless-0.0.32.tgz#783f3cc1fa5e67cc2ed30000f3e1f22501f75d50" + version "0.5.1" + resolved "https://registry.yarnpkg.com/@types/express-unless/-/express-unless-0.5.1.tgz#4f440b905e42bbf53382b8207bc337dc5ff9fd1f" + integrity sha512-5fuvg7C69lemNgl0+v+CUxDYWVPSfXHhJPst4yTLcqi4zKJpORCxnDrnnilk3k0DTq/WrAUdvXFs01+vUqUZHw== dependencies: "@types/express" "*" "@types/express@*": - version "4.16.0" - resolved "https://registry.yarnpkg.com/@types/express/-/express-4.16.0.tgz#6d8bc42ccaa6f35cf29a2b7c3333cb47b5a32a19" + version "4.16.1" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.16.1.tgz#d756bd1a85c34d87eaf44c888bad27ba8a4b7cf0" + integrity sha512-V0clmJow23WeyblmACoxbHBu2JKlE5TiIme6Lem14FnPW9gsttyHtk6wq7njcdIWH1njAaFgR8gW09lgY98gQg== dependencies: "@types/body-parser" "*" "@types/express-serve-static-core" "*" "@types/serve-static" "*" "@types/mime@*": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b" + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d" + integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw== "@types/node@*": - version "10.7.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.7.1.tgz#b704d7c259aa40ee052eec678758a68d07132a2e" + version "11.9.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.9.4.tgz#ceb0048a546db453f6248f2d1d95e937a6f00a14" + integrity sha512-Zl8dGvAcEmadgs1tmSPcvwzO1YRsz38bVJQvH1RvRqSR9/5n61Q1ktcDL0ht3FXWR+ZpVmXVwN1LuH4Ax23NsA== + +"@types/node@^8.0.7": + version "8.10.40" + resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.40.tgz#4314888d5cd537945d73e9ce165c04cc550144a4" + integrity sha512-RRSjdwz63kS4u7edIwJUn8NqKLLQ6LyqF/X4+4jp38MBT3Vwetewi2N4dgJEshLbDwNgOJXNYoOwzVZUSSLhkQ== "@types/range-parser@*": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.2.tgz#fa8e1ad1d474688a757140c91de6dace6f4abc8d" + version "1.2.3" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c" + integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA== "@types/serve-static@*": version "1.13.2" resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48" + integrity sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q== dependencies: "@types/express-serve-static-core" "*" "@types/mime" "*" -abbrev@1, abbrev@1.0.x: +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +abbrev@1.0.x: version "1.0.9" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" + integrity sha1-kbR5JYinc4wl813W9jdSovh3YTU= acorn@^3.0.0: version "3.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + integrity sha1-ReN/s56No/JbruP/U2niu18iAXo= -agent-base@2, agent-base@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-2.1.1.tgz#d6de10d5af6132d5bd692427d46fc538539094c7" - dependencies: - extend "~3.0.0" - semver "~5.0.1" - -agent-base@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.1.1.tgz#92d8a4fc2524a3b09b3666a33b6c97960f23d6a4" +agent-base@4, agent-base@^4.1.0, agent-base@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9" + integrity sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg== dependencies: es6-promisify "^5.0.0" -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" +ajv@^6.5.5: + version "6.9.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.9.1.tgz#a4d3683d74abc5670e75f0b16520f70a20ea8dc1" + integrity sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA== dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^5.3.0: - version "5.5.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" + fast-deep-equal "^2.0.1" fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.3.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + integrity sha1-DNkKVhCT810KmSVsIrcGlDP60Rc= dependencies: kind-of "^3.0.2" longest "^1.0.1" @@ -115,178 +121,279 @@ align-text@^0.1.1, align-text@^0.1.3: amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" anymatch@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" + version "1.3.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" + integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== dependencies: - arrify "^1.0.0" micromatch "^2.1.5" + normalize-path "^2.0.0" aproba@^1.0.3: - version "1.1.2" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1" + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== dependencies: delegates "^1.0.0" readable-stream "^2.0.6" argparse@^1.0.7: - version "1.0.9" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== dependencies: sprintf-js "~1.0.2" argv@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= dependencies: arr-flatten "^1.0.1" -arr-flatten@^1.0.1: +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-differ@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-2.0.3.tgz#0195bb00ccccf271106efee4a4786488b7180712" + integrity sha1-AZW7AMzM8nEQbv7kpHhkiLcYBxI= + +array-union@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= + dependencies: + array-uniq "^1.0.1" + +array-uniq@^1.0.1: version "1.0.3" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.3.tgz#a274ed85ac08849b6bd7847c4580745dc51adfb1" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= array-unique@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= -arrify@^1.0.0: +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" assert-plus@1.0.0, assert-plus@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= assert-plus@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + integrity sha1-104bh+ev/A24qttwIfP+SBAasjQ= assert@^1.1.1: version "1.4.1" resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + integrity sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE= dependencies: util "0.10.3" assertion-error@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.0.0.tgz#c7f85438fdd466bc7ca16ab90c81513797a5d23b" + integrity sha1-x/hUOP3UZrx8oWq5DIFRN5el0js= + +assertion-error@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" + integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= ast-types@0.x.x: - version "0.9.14" - resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.14.tgz#d34ba5dffb9d15a44351fd2a9d82e4ab2838b5ba" + version "0.12.2" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.12.2.tgz#341656049ee328ac03fc805c156b49ebab1e4462" + integrity sha512-8c83xDLJM/dLDyXNLiR6afRRm4dPKN6KAnKqytRK3DBJul9lA+atxdQkNDkSVPdTqea5HiRq3lnnOIZ0MBpvdg== async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + integrity sha1-GdOGodntxufByF04iu28xW0zYC0= -async@1.x, async@^1.3.0, async@^1.4.0: +async@1.x, async@^1.3.0: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= async@^0.9.0: version "0.9.2" resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" + integrity sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0= + +async@^2.5.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.2.tgz#18330ea7e6e313887f5d2f2a904bac6fe4dd5381" + integrity sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg== + dependencies: + lodash "^4.17.11" async@~0.2.10, async@~0.2.6: version "0.2.10" resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" + integrity sha1-trvgsGdLnXGXCMo43owjfLUmw9E= asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== aws-sign2@~0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + integrity sha1-FDQt0428yU0OW4fXY81jYSwOeU8= aws-sign2@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -aws4@^1.8.0: +aws4@^1.2.1, aws4@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== babylon@7.0.0-beta.19: version "7.0.0-beta.19" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.19.tgz#e928c7e807e970e0536b078ab3e0c48f9e052503" + integrity sha512-Vg0C9s/REX6/WIXN37UKpv5ZhRi6A4pjHlpkE34+8/a6c2W1Q692n3hmc+SZG5lKRnaExLUbxtJ1SVT+KaCQ/A== balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= base64-js@^1.0.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1" + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= dependencies: tweetnacl "^0.14.3" big.js@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" + version "3.2.0" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" + integrity sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q== binary-extensions@^1.0.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" + version "1.13.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.0.tgz#9523e001306a32444b907423f1de2164222f6ab1" + integrity sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw== bluebird@^2.10.2: version "2.11.0" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1" + integrity sha1-U0uQM8AiyVecVro7Plpcqvu2UOE= bluebird@~3.5.0: - version "3.5.1" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + version "3.5.3" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.3.tgz#7d01c6f9616c9a51ab0f8c549a79dfe6ec33efa7" + integrity sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw== boom@2.x.x: version "2.10.1" resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + integrity sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8= dependencies: hoek "2.x.x" brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" concat-map "0.0.1" @@ -294,30 +401,51 @@ brace-expansion@^1.1.7: braces@^1.8.2: version "1.8.5" resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= dependencies: expand-range "^1.8.1" preserve "^0.2.0" repeat-element "^1.1.2" +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + browserify-aes@0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-0.4.0.tgz#067149b668df31c4b58533e02d01e806d8608e2c" + integrity sha1-BnFJtmjfMcS1hTPgLQHoBthgjiw= dependencies: inherits "^2.0.1" browserify-zlib@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" + integrity sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0= dependencies: pako "~0.2.0" buffer-equal-constant-time@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" + integrity sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= buffer@^4.9.0: version "4.9.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" + integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg= dependencies: base64-js "^1.0.2" ieee754 "^1.1.4" @@ -326,14 +454,32 @@ buffer@^4.9.0: builtin-status-codes@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg= + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" camel-case@^1.1.1: version "1.2.2" resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-1.2.2.tgz#1aca7c4d195359a2ce9955793433c6e5542511f2" + integrity sha1-Gsp8TRlTWaLOmVV5NDPG5VQlEfI= dependencies: sentence-case "^1.1.1" upper-case "^1.1.1" @@ -341,31 +487,46 @@ camel-case@^1.1.1: camelcase@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + integrity sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk= caseless@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + integrity sha1-cVuW6phBWTzDMGeSP17GDr2k99c= caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= catharsis@~0.8.9: version "0.8.9" resolved "https://registry.yarnpkg.com/catharsis/-/catharsis-0.8.9.tgz#98cc890ca652dd2ef0e70b37925310ff9e90fc8b" + integrity sha1-mMyJDKZS3S7w5ws3klMQ/56Q/Is= dependencies: underscore-contrib "~0.3.0" center-align@^0.1.1: version "0.1.3" resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + integrity sha1-qg0yYptu6XIgBBHL1EYckHvCt60= dependencies: align-text "^0.1.3" lazy-cache "^1.0.3" -"chai@>=1.9.2 <4.0.0", chai@^2.2.0: +"chai@>=1.9.2 <4.0.0": + version "3.5.0" + resolved "https://registry.yarnpkg.com/chai/-/chai-3.5.0.tgz#4d02637b067fe958bdbfdd3a40ec56fef7373247" + integrity sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc= + dependencies: + assertion-error "^1.0.1" + deep-eql "^0.1.3" + type-detect "^1.0.0" + +chai@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/chai/-/chai-2.3.0.tgz#8a2f6a34748da801090fd73287b2aa739a4e909a" + integrity sha1-ii9qNHSNqAEJD9cyh7Kqc5pOkJo= dependencies: assertion-error "1.0.0" deep-eql "0.1.3" @@ -373,6 +534,7 @@ center-align@^0.1.1: chalk@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= dependencies: ansi-styles "^2.2.1" escape-string-regexp "^1.0.2" @@ -381,8 +543,9 @@ chalk@^1.1.1: supports-color "^2.0.0" chalk@^2.3.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65" + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: ansi-styles "^3.2.1" escape-string-regexp "^1.0.5" @@ -391,6 +554,7 @@ chalk@^2.3.0: change-case@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/change-case/-/change-case-2.3.1.tgz#2c4fde3f063bb41d00cd68e0d5a09db61cbe894f" + integrity sha1-LE/ePwY7tB0AzWjg1aCdthy+iU8= dependencies: camel-case "^1.1.1" constant-case "^1.1.0" @@ -412,10 +576,12 @@ change-case@^2.3.0: charenc@~0.0.1: version "0.0.2" resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" + integrity sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc= chokidar@^1.0.0: version "1.7.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= dependencies: anymatch "^1.3.0" async-each "^1.0.0" @@ -428,95 +594,132 @@ chokidar@^1.0.0: optionalDependencies: fsevents "^1.0.0" -ci-info@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.3.tgz#710193264bb05c77b8c90d02f5aaf22216a667b2" +chownr@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.1.tgz#54726b8b8fff4df053c42187e801fb4412df1494" + integrity sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g== + +ci-info@^1.5.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" + integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" cliui@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + integrity sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE= dependencies: center-align "^0.1.1" right-align "^0.1.1" wordwrap "0.0.2" clone@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149" + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= codecov@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/codecov/-/codecov-2.2.0.tgz#2d06817ceb8891eca6368836d4fb6bf6cc04ffd1" + version "2.3.1" + resolved "https://registry.yarnpkg.com/codecov/-/codecov-2.3.1.tgz#7dda945cd58a1f6081025b5b03ee01a2ef20f86e" + integrity sha1-fdqUXNWKH2CBAltbA+4Bou8g+G4= dependencies: argv "0.0.2" - request "2.79.0" + request "2.77.0" urlgrey "0.4.4" +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: - color-name "^1.1.1" + color-name "1.1.3" -color-name@^1.1.1: +color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -combined-stream@1.0.6, combined-stream@~1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" +combined-stream@^1.0.5, combined-stream@^1.0.6, combined-stream@~1.0.5, combined-stream@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.7.tgz#2d1d24317afb8abe95d6d2c0b07b57813539d828" + integrity sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w== dependencies: delayed-stream "~1.0.0" commander@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/commander/-/commander-0.6.1.tgz#fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06" + integrity sha1-+mihT2qUXVTbvlDYzbMyDp47GgY= commander@2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.3.0.tgz#fd430e889832ec353b9acd1de217c11cb3eef873" + integrity sha1-/UMOiJgy7DU7ms0d4hfBHLPu+HM= commander@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" - dependencies: - graceful-readlink ">= 1.0.0" + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== + +commander@~2.17.1: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" + integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== -component-emitter@^1.2.0: +component-emitter@^1.2.0, component-emitter@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + integrity sha1-E3kY1teCg/ffemt8WmPhQOaUJeY= concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= console-browserify@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= dependencies: date-now "^0.1.4" console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= constant-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-1.1.2.tgz#8ec2ca5ba343e00aa38dbf4e200fd5ac907efd63" + integrity sha1-jsLKW6ND4Aqjjb9OIA/VrJB+/WM= dependencies: snake-case "^1.1.0" upper-case "^1.1.1" @@ -524,14 +727,22 @@ constant-case@^1.1.0: constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= cookiejar@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.1.tgz#41ad57b1b555951ec171412a81942b1e8200d34a" + version "2.1.2" + resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.2.tgz#dd8a235530752f988f9a0844f3fc589e3111125c" + integrity sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA== -core-util-is@~1.0.0: +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= cross-env@^5.2.0: version "5.2.0" @@ -544,6 +755,7 @@ cross-env@^5.2.0: cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= dependencies: lru-cache "^4.0.1" shebang-command "^1.2.0" @@ -563,16 +775,19 @@ cross-spawn@^6.0.5: crypt@~0.0.1: version "0.0.2" resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" + integrity sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs= cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + integrity sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g= dependencies: boom "2.x.x" crypto-browserify@3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.3.0.tgz#b9fc75bb4a0ed61dcf1cd5dae96eb30c9c3e506c" + integrity sha1-ufx1u0oO1h3PHNXa6W6zDJw+UGw= dependencies: browserify-aes "0.4.0" pbkdf2-compat "2.0.1" @@ -582,6 +797,7 @@ crypto-browserify@3.3.0: css-loader@^0.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.9.1.tgz#2e1aa00ce7e30ef2c6a7a4b300a080a7c979e0dc" + integrity sha1-LhqgDOfjDvLGp6SzAKCAp8l54Nw= dependencies: csso "1.3.x" loader-utils "~0.2.2" @@ -590,79 +806,132 @@ css-loader@^0.9.1: csso@1.3.x: version "1.3.12" resolved "https://registry.yarnpkg.com/csso/-/csso-1.3.12.tgz#fc628694a2d38938aaac4996753218fd311cdb9e" + integrity sha1-/GKGlKLTiTiqrEmWdTIY/TEc254= dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= dependencies: assert-plus "^1.0.0" -data-uri-to-buffer@1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz#77163ea9c20d8641b4707e8f18abdf9a78f34835" +data-uri-to-buffer@2: + version "2.0.0" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-2.0.0.tgz#0ba23671727349828c32cfafddea411908d13d23" + integrity sha512-YbKCNLPPP4inc0E5If4OaalBc7gpaM2MRv77Pv2VThVComLKfbGYtJcdDCViDyp1Wd4SebhHLz94vp91zbK6bw== + dependencies: + "@types/node" "^8.0.7" date-now@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= -debug@2, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -debug@2.2.0, debug@^2.2.0: +debug@2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" + integrity sha1-+HBX6ZWxofauaklgZkE3vFbwOdo= dependencies: ms "0.7.1" -debug@^3.1.0: +debug@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== dependencies: ms "2.0.0" -debug@~0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-0.7.4.tgz#06e1ea8082c2cb14e39806e22e2f6f757f92af39" +debug@4: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +debug@^2.1.2, debug@^2.2.0, debug@^2.3.3: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" decamelize@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= -deep-eql@0.1.3: +deep-eql@0.1.3, deep-eql@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2" + integrity sha1-71WKyrjeJSBs1xOQbXTlaTDrafI= dependencies: type-detect "0.1.1" deep-equal@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" + integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= deepmerge@^1.5.1: version "1.5.2" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753" + integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ== define-properties@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== dependencies: - foreach "^2.0.5" - object-keys "^1.0.8" + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" degenerator@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/degenerator/-/degenerator-1.0.4.tgz#fcf490a37ece266464d9cc431ab98c5819ced095" + integrity sha1-/PSQo37OJmRk2cxDGrmMWBnO0JU= dependencies: ast-types "0.x.x" escodegen "1.x.x" @@ -671,84 +940,107 @@ degenerator@^1.0.4: delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= delegates@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= -depd@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= diff@1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/diff/-/diff-1.4.0.tgz#7f28d2eb9ee7b15a97efd89ce63dcfdaa3ccbabf" + integrity sha1-fyjS657nsVqX79ic5j3P2qPMur8= domain-browser@^1.1.1: - version "1.1.7" - resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== dot-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-1.1.2.tgz#1e73826900de28d6de5480bc1de31d0842b06bec" + integrity sha1-HnOCaQDeKNbeVIC8HeMdCEKwa+w= dependencies: sentence-case "^1.1.2" ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= dependencies: jsbn "~0.1.0" + safer-buffer "^2.1.0" -ecdsa-sig-formatter@1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz#1c595000f04a8897dfb85000892a0f4c33af86c3" +ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== dependencies: safe-buffer "^5.0.1" emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= enhanced-resolve@~0.9.0: version "0.9.1" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e" + integrity sha1-TW5omzcl+GCQknzMhs2fFjW4ni4= dependencies: graceful-fs "^4.1.2" memory-fs "^0.2.0" tapable "^0.1.8" errno@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" + version "0.1.7" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" + integrity sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg== dependencies: - prr "~0.0.0" + prr "~1.0.1" es6-promise@^4.0.3: - version "4.1.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.1.1.tgz#8811e90915d9a0dba36274f0b242dbda78f9c92a" + version "4.2.6" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.6.tgz#b685edd8258886365ea62b57d30de28fadcd974f" + integrity sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q== es6-promisify@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" + integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= dependencies: es6-promise "^4.0.3" es6-promisify@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-6.0.0.tgz#b526a75eaa5ca600e960bf3d5ad98c40d75c7203" + version "6.0.1" + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-6.0.1.tgz#6edaa45f3bd570ffe08febce66f7116be4b1cdb6" + integrity sha512-J3ZkwbEnnO+fGAKrjVpeUAnZshAdfZvbhQpqfIH9kSAspReRC4nJnu8ewm55b4y9ElyeuhCTzJD0XiH8Tsbhlw== escape-string-regexp@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz#4dbc2fe674e71949caf3fb2695ce7f2dc1d9a8d1" + integrity sha1-Tbwv5nTnGUnK8/smlc5/LcHZqNE= escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5, escape-string-regexp@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= escodegen@1.8.x: version "1.8.1" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" + integrity sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg= dependencies: esprima "^2.7.1" estraverse "^1.9.1" @@ -758,43 +1050,56 @@ escodegen@1.8.x: source-map "~0.2.0" escodegen@1.x.x: - version "1.9.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.9.0.tgz#9811a2f265dc1cd3894420ee3717064b632b8852" + version "1.11.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.1.tgz#c485ff8d6b4cdb89e27f4a856e91f118401ca510" + integrity sha512-JwiqFD9KdGVVpeuRa68yU3zZnBEOcPs0nKW7wZzXky8Z7tffdYUHbe11bPCV5jYlK6DVdKLWLm0f5I/QlL0Kmw== dependencies: esprima "^3.1.3" estraverse "^4.2.0" esutils "^2.0.2" optionator "^0.8.1" optionalDependencies: - source-map "~0.5.6" + source-map "~0.6.1" -esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1: +esprima@2.7.x, esprima@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + integrity sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE= esprima@3.x.x, esprima@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== estraverse@^1.9.1: version "1.9.3" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" + integrity sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q= estraverse@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM= esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= events@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + integrity sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ= execa@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" + integrity sha1-2NdrvBtVIX7RkP1t1J08d07PyNo= dependencies: cross-spawn "^5.0.1" get-stream "^3.0.0" @@ -807,176 +1112,240 @@ execa@^0.8.0: expand-brackets@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= dependencies: is-posix-bracket "^0.1.0" +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + expand-range@^1.8.1: version "1.8.2" resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= dependencies: fill-range "^2.1.0" -extend@3, extend@^3.0.0, extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" -extend@~3.0.2: +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@^3.0.0, extend@~3.0.0, extend@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== extglob@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= dependencies: is-extglob "^1.0.0" -extsprintf@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= -fast-deep-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= file-loader@^0.8.1: version "0.8.5" resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.8.5.tgz#9275d031fe780f27d47f5f4af02bd43713cc151b" + integrity sha1-knXQMf54DyfUf19K8CvUNxPMFRs= dependencies: loader-utils "~0.2.5" file-uri-to-path@1: version "1.0.0" resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" + integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== filename-regex@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= fill-keys@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/fill-keys/-/fill-keys-1.0.2.tgz#9a8fa36f4e8ad634e3bf6b4f3c8882551452eb20" + integrity sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA= dependencies: is-object "~1.0.1" merge-descriptors "~1.0.0" fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== dependencies: is-number "^2.1.0" isobject "^2.0.0" - randomatic "^1.1.3" + randomatic "^3.0.0" repeat-element "^1.1.2" repeat-string "^1.5.2" +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= dependencies: locate-path "^2.0.0" -for-in@^1.0.1: +for-in@^1.0.1, for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= for-own@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= dependencies: for-in "^1.0.1" -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= -form-data@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.1.tgz#6fb94fbd71885306d73d15cc497fe4cc4ecd44bf" +form-data@^2.3.1, form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== dependencies: asynckit "^0.4.0" - combined-stream "^1.0.5" + combined-stream "^1.0.6" mime-types "^2.1.12" form-data@~2.1.1: version "2.1.4" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + integrity sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE= dependencies: asynckit "^0.4.0" combined-stream "^1.0.5" mime-types "^2.1.12" -form-data@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" - dependencies: - asynckit "^0.4.0" - combined-stream "1.0.6" - mime-types "^2.1.12" - formatio@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/formatio/-/formatio-1.1.1.tgz#5ed3ccd636551097383465d996199100e86161e9" + integrity sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek= dependencies: samsam "~1.1" -formidable@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.1.1.tgz#96b8886f7c3c3508b932d6bd70c4d3a88f35f1a9" +formidable@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.2.1.tgz#70fb7ca0290ee6ff961090415f4b3df3d2082659" + integrity sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg== + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + integrity sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ== + dependencies: + minipass "^2.2.1" fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= fsevents@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.2.tgz#3282b713fb3ad80ede0e9fcf4611b5aa6fc033f4" + version "1.2.7" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.7.tgz#4851b664a3783e52003b3c66eb0eee1074933aa4" + integrity sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw== dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.36" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" + nan "^2.9.2" + node-pre-gyp "^0.10.0" ftp@~0.3.10: version "0.3.10" resolved "https://registry.yarnpkg.com/ftp/-/ftp-0.3.10.tgz#9197d861ad8142f3e63d5a83bfe4c59f7330885d" + integrity sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0= dependencies: readable-stream "1.1.x" xregexp "2.0.0" -function-bind@^1.1.0: +function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== gauge@~2.7.3: version "2.7.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= dependencies: aproba "^1.0.3" console-control-strings "^1.0.0" @@ -988,39 +1357,52 @@ gauge@~2.7.3: wide-align "^1.1.0" generate-function@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + version "2.3.1" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.3.1.tgz#f069617690c10c868e73b8465746764f97c3479f" + integrity sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ== + dependencies: + is-property "^1.0.2" generate-object-property@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + integrity sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA= dependencies: is-property "^1.0.0" get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= get-uri@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-2.0.1.tgz#dbdcacacd8c608a38316869368117697a1631c59" + version "2.0.3" + resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-2.0.3.tgz#fa13352269781d75162c6fc813c9e905323fbab5" + integrity sha512-x5j6Ks7FOgLD/GlvjKwgu7wdmMR55iuRHhn8hj/+gA+eSbxQvZ+AEomq+3MgVEZj1vpi738QahGbCCSIDtXtkw== dependencies: - data-uri-to-buffer "1" - debug "2" - extend "3" + data-uri-to-buffer "2" + debug "4" + extend "~3.0.2" file-uri-to-path "1" ftp "~0.3.10" - readable-stream "2" + readable-stream "3" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= dependencies: assert-plus "^1.0.0" glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= dependencies: glob-parent "^2.0.0" is-glob "^2.0.0" @@ -1028,12 +1410,14 @@ glob-base@^0.3.0: glob-parent@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= dependencies: is-glob "^2.0.0" glob@3.2.11: version "3.2.11" resolved "https://registry.yarnpkg.com/glob/-/glob-3.2.11.tgz#4a973f635b9190f715d10987d5c00fd2815ebe3d" + integrity sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0= dependencies: inherits "2" minimatch "0.3" @@ -1041,6 +1425,7 @@ glob@3.2.11: glob@^5.0.15: version "5.0.15" resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" + integrity sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E= dependencies: inflight "^1.0.4" inherits "2" @@ -1048,9 +1433,10 @@ glob@^5.0.15: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.5: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" +glob@^7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" + integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" @@ -1059,80 +1445,112 @@ glob@^7.0.5: once "^1.3.0" path-is-absolute "^1.0.0" -graceful-fs@^4.1.2, graceful-fs@^4.1.9: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.9: + version "4.1.15" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" + integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA== growl@1.9.2: version "1.9.2" resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" + integrity sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8= handlebars@^4.0.1: - version "4.0.10" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.10.tgz#3d30c718b09a3d96f23ea4cc1f403c4d3ba9ff4f" + version "4.1.0" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.0.tgz#0d6a6f34ff1f63cecec8423aa4169827bf787c3a" + integrity sha512-l2jRuU1NAWK6AW5qqcTATWQJvNPEwkM7NEKSiv/gqOsoSQbVoWyqVEY5GS+XPQ88zLNmqASRpzfdm8d79hJS+w== dependencies: - async "^1.4.0" + async "^2.5.0" optimist "^0.6.1" - source-map "^0.4.4" + source-map "^0.6.1" optionalDependencies: - uglify-js "^2.6" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + uglify-js "^3.1.4" har-schema@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= har-validator@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + integrity sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0= dependencies: chalk "^1.1.1" commander "^2.9.0" is-my-json-valid "^2.12.4" pinkie-promise "^2.0.0" -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - har-validator@~5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== dependencies: - ajv "^5.3.0" + ajv "^6.5.5" har-schema "^2.0.0" has-ansi@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= dependencies: ansi-regex "^2.0.0" has-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" + integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= has-unicode@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" hawk@~3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + integrity sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ= dependencies: boom "2.x.x" cryptiles "2.x.x" @@ -1142,27 +1560,30 @@ hawk@~3.1.3: hoek@2.x.x: version "2.16.3" resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + integrity sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0= -http-errors@1.6.2: - version "1.6.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" +http-errors@1.6.3: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + integrity sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0= dependencies: - depd "1.1.1" + depd "~1.1.2" inherits "2.0.3" - setprototypeof "1.0.3" - statuses ">= 1.3.1 < 2" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" -http-proxy-agent@1, http-proxy-agent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz#cc1ce38e453bf984a0f7702d2dd59c73d081284a" +http-proxy-agent@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405" + integrity sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg== dependencies: - agent-base "2" - debug "2" - extend "3" + agent-base "4" + debug "3.1.0" http-signature@~1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + integrity sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8= dependencies: assert-plus "^0.2.0" jsprim "^1.2.2" @@ -1171,6 +1592,7 @@ http-signature@~1.1.0: http-signature@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= dependencies: assert-plus "^1.0.0" jsprim "^1.2.2" @@ -1179,174 +1601,299 @@ http-signature@~1.2.0: https-browserify@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" + integrity sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI= -https-proxy-agent@1, https-proxy-agent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz#35f7da6c48ce4ddbfa264891ac593ee5ff8671e6" +https-proxy-agent@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0" + integrity sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ== dependencies: - agent-base "2" - debug "2" - extend "3" + agent-base "^4.1.0" + debug "^3.1.0" husky@^0.14.3: version "0.14.3" resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3" + integrity sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA== dependencies: is-ci "^1.0.10" normalize-path "^1.0.0" strip-indent "^2.0.0" -iconv-lite@0.4.19: - version "0.4.19" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" +iconv-lite@0.4.23: + version "0.4.23" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" + integrity sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +iconv-lite@^0.4.4: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" ieee754@^1.1.4: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" + version "1.1.12" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b" + integrity sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA== + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + integrity sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ== + dependencies: + minimatch "^3.0.4" ignore@^3.3.7: - version "3.3.7" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" + version "3.3.10" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" + integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug== indexof@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" + integrity sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10= inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= dependencies: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= inherits@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE= ini@~1.3.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== interpret@^0.6.4: version "0.6.6" resolved "https://registry.yarnpkg.com/interpret/-/interpret-0.6.6.tgz#fecd7a18e7ce5ca6abfb953e1f86213a49f1625b" + integrity sha1-/s16GOfOXKar+5U+H4YhOknxYls= ip@^1.1.4, ip@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" + integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" is-binary-path@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= dependencies: binary-extensions "^1.0.0" is-buffer@^1.1.5, is-buffer@~1.1.1: - version "1.1.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== is-ci@^1.0.10: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c" + integrity sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg== dependencies: - ci-info "^1.0.0" + ci-info "^1.5.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" is-dotfile@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= is-equal-shallow@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= dependencies: is-primitive "^2.0.0" -is-extendable@^0.1.1: +is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" is-extglob@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= is-fullwidth-code-point@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= dependencies: number-is-nan "^1.0.0" +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + is-glob@^2.0.0, is-glob@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= dependencies: is-extglob "^1.0.0" is-lower-case@^1.1.0: version "1.1.3" resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-1.1.3.tgz#7e147be4768dc466db3bfb21cc60b31e6ad69393" + integrity sha1-fhR75HaNxGbbO/shzGCzHmrWk5M= dependencies: lower-case "^1.1.0" +is-my-ip-valid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" + integrity sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ== + is-my-json-valid@^2.12.4: - version "2.16.0" - resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693" + version "2.19.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz#8fd6e40363cd06b963fa877d444bfb5eddc62175" + integrity sha512-mG0f/unGX1HZ5ep4uhRaPOS8EkAY8/j6mDRMJrutq4CqhoJWYp7qAlonIPy3TV7p3ju4TK9fo/PbnoksWmsp5Q== dependencies: generate-function "^2.0.0" generate-object-property "^1.1.0" + is-my-ip-valid "^1.0.0" jsonpointer "^4.0.0" xtend "^4.0.0" is-number@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= dependencies: kind-of "^3.0.2" is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= dependencies: kind-of "^3.0.2" +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== + is-object@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" + integrity sha1-iVJojF7C/9awPsyF52ngKQMINHA= + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" is-posix-bracket@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= is-primitive@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= -is-property@^1.0.0: +is-property@^1.0.0, is-property@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + integrity sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ= is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= is-string@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.4.tgz#cc3a9b69857d621e963725a24caeec873b826e64" + integrity sha1-zDqbaYV9Yh6WNyWiTK7shzuCbmQ= is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= is-upper-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/is-upper-case/-/is-upper-case-1.1.2.tgz#8d0b1fa7e7933a1e58483600ec7d9661cbaf756f" + integrity sha1-jQsfp+eTOh5YSDYA7H2WYcuvdW8= dependencies: upper-case "^1.1.0" -is-windows@^1.0.0: +is-windows@^1.0.0, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -1354,28 +1901,39 @@ is-windows@^1.0.0: isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= isobject@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= dependencies: isarray "1.0.0" +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= istanbul@^0.4.0: version "0.4.5" resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b" + integrity sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs= dependencies: abbrev "1.0.x" async "1.x" @@ -1395,30 +1953,35 @@ istanbul@^0.4.0: jade@0.26.3: version "0.26.3" resolved "https://registry.yarnpkg.com/jade/-/jade-0.26.3.tgz#8f10d7977d8d79f2f6ff862a81b0513ccb25686c" + integrity sha1-jxDXl32NefL2/4YqgbBRPMslaGw= dependencies: commander "0.6.1" mkdirp "0.3.0" js-yaml@3.x: - version "3.6.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + version "3.12.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.1.tgz#295c8632a18a23e054cf5c9d3cecafe678167600" + integrity sha512-um46hB9wNOKlwkHgiuyEVAybXBjwFUV0Z/RaHJblRd9DXltue9FTYvzCr9ErQrK9Adz5MU4gHWVaNUfdmrC8qA== dependencies: argparse "^1.0.7" - esprima "^2.6.0" + esprima "^4.0.0" js2xmlparser@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-3.0.0.tgz#3fb60eaa089c5440f9319f51760ccd07e2499733" + integrity sha1-P7YOqgicVED5MZ9RdgzNB+JJlzM= dependencies: xmlcreate "^1.0.1" jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= jsdoc@^3.5.5: version "3.5.5" resolved "https://registry.yarnpkg.com/jsdoc/-/jsdoc-3.5.5.tgz#484521b126e81904d632ff83ec9aaa096708fa4d" + integrity sha512-6PxB65TAU4WO0Wzyr/4/YhlGovXl0EVYfpKbpSroSj0qBxT4/xod/l40Opkm38dRHRdQgdeY836M0uVnJQG7kg== dependencies: babylon "7.0.0-beta.19" bluebird "~3.5.0" @@ -1434,44 +1997,41 @@ jsdoc@^3.5.5: underscore "~1.8.3" json-loader@^0.5.4: - version "0.5.4" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.4.tgz#8baa1365a632f58a3c46d20175fc6002c96e37de" + version "0.5.7" + resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" + integrity sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w== -json-schema-traverse@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= json5@^0.5.0: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= jsonpointer@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + integrity sha1-T9kss04OnbPInIYi7PUfm5eMbLk= jsonwebtoken@^8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.3.0.tgz#056c90eee9a65ed6e6c72ddb0a1d325109aaf643" + version "8.5.0" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.0.tgz#ebd0ca2a69797816e1c5af65b6c759787252947e" + integrity sha512-IqEycp0znWHNA11TpYi77bVgyBO/pGESDh7Ajhas+u0ttkGkKYIIAjniL4Bw5+oVejVF+SYkaI7XKfwCCyeTuA== dependencies: - jws "^3.1.5" + jws "^3.2.1" lodash.includes "^4.3.0" lodash.isboolean "^3.0.3" lodash.isinteger "^4.0.4" @@ -1480,22 +2040,25 @@ jsonwebtoken@^8.3.0: lodash.isstring "^4.0.1" lodash.once "^4.0.0" ms "^2.1.1" + semver "^5.6.0" jsprim@^1.2.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= dependencies: assert-plus "1.0.0" - extsprintf "1.0.2" + extsprintf "1.3.0" json-schema "0.2.3" - verror "1.3.6" + verror "1.10.0" -jwa@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.1.6.tgz#87240e76c9808dbde18783cf2264ef4929ee50e6" +jwa@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.3.0.tgz#061a7c3bb8ab2b3434bb2f432005a8bb7fca0efa" + integrity sha512-SxObIyzv9a6MYuZYaSN6DhSm9j3+qkokwvCB0/OTSV5ylPq1wUQiygZQcHT5Qlux0I5kmISx3J86TxKhuefItg== dependencies: buffer-equal-constant-time "1.0.1" - ecdsa-sig-formatter "1.0.10" + ecdsa-sig-formatter "1.0.11" safe-buffer "^5.0.1" jwks-rsa@^1.4.0: @@ -1510,49 +2073,67 @@ jwks-rsa@^1.4.0: ms "^2.0.0" request "^2.73.0" -jws@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/jws/-/jws-3.1.5.tgz#80d12d05b293d1e841e7cb8b4e69e561adcf834f" +jws@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.1.tgz#d79d4216a62c9afa0a3d5e8b5356d75abdeb2be5" + integrity sha512-bGA2omSrFUkd72dhh05bIAN832znP4wOU3lfuXtRBuGTbsmNmDXMQg28f0Vsxaxgk4myF5YkKQpz6qeRpMgX9g== dependencies: - jwa "^1.1.5" + jwa "^1.2.0" safe-buffer "^5.0.1" -kind-of@^3.0.2: +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= dependencies: is-buffer "^1.1.5" kind-of@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= dependencies: is-buffer "^1.1.5" +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== + klaw@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/klaw/-/klaw-2.0.0.tgz#59c128e0dc5ce410201151194eeb9cbf858650f6" + integrity sha1-WcEo4Nxc5BAgEVEZTuucv4WGUPY= dependencies: graceful-fs "^4.1.9" lazy-cache@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= dependencies: prelude-ls "~1.1.2" type-check "~0.3.2" limiter@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.3.tgz#32e2eb55b2324076943e5d04c1185ffb387968ef" + version "1.1.4" + resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.4.tgz#87c9c3972d389fdb0ba67a45aadbc5d2f8413bc1" + integrity sha512-XCpr5bElgDI65vVgstP8TWjv6/QKWm9GU5UG0Pr5sLQ3QLo8NVKsioe+Jed5/3vFOe3IQuqE7DKwTvKQkjTHvg== loader-utils@^0.2.11, loader-utils@^0.2.5, loader-utils@~0.2.2, loader-utils@~0.2.3, loader-utils@~0.2.5: version "0.2.17" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" + integrity sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g= dependencies: big.js "^3.1.3" emojis-list "^2.0.0" @@ -1562,6 +2143,7 @@ loader-utils@^0.2.11, loader-utils@^0.2.5, loader-utils@~0.2.2, loader-utils@~0. locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= dependencies: p-locate "^2.0.0" path-exists "^3.0.0" @@ -1569,79 +2151,92 @@ locate-path@^2.0.0: lock@~0.1.2: version "0.1.4" resolved "https://registry.yarnpkg.com/lock/-/lock-0.1.4.tgz#fec7deaef17e7c3a0a55e1da042803e25d91745d" + integrity sha1-/sfervF+fDoKVeHaBCgD4l2RdF0= lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" + integrity sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8= lodash.isboolean@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" + integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= lodash.isinteger@^4.0.4: version "4.0.4" resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" + integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M= lodash.isnumber@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" + integrity sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w= lodash.isplainobject@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= lodash.isstring@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" + integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= lodash.once@^4.0.0: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" + integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= lodash@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-2.4.1.tgz#5b7723034dda4d262e5a46fb2c58d7cc22f71420" + integrity sha1-W3cjA03aTSYuWkb7LFjXzCL3FCA= -lodash@^4.17.4: - version "4.17.10" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" +lodash@^4.17.11, lodash@^4.17.4: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== lolex@1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/lolex/-/lolex-1.3.2.tgz#7c3da62ffcb30f0f5a80a2566ca24e45d8a01f31" + integrity sha1-fD2mL/yzDw9agKJWbKJORdigHzE= longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + integrity sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc= lower-case-first@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-1.0.2.tgz#e5da7c26f29a7073be02d52bac9980e5922adfa1" + integrity sha1-5dp8JvKacHO+AtUrrJmA5ZIq36E= dependencies: lower-case "^1.1.2" lower-case@^1.1.0, lower-case@^1.1.1, lower-case@^1.1.2: version "1.1.4" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" + integrity sha1-miyr0bno4K6ZOkv31YdcOcQujqw= lru-cache@2: version "2.7.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" + integrity sha1-bUUk6LlV+V1PW1iFHOId1y+06VI= -lru-cache@^4.0.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f" +lru-cache@^4.0.1, lru-cache@^4.1.2: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== dependencies: pseudomap "^1.0.2" yallist "^2.1.2" -lru-cache@~2.6.5: - version "2.6.5" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.6.5.tgz#e56d6354148ede8d7707b58d143220fd08df0fd5" - lru-cache@~4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.0.2.tgz#1d17679c069cda5d040991a09dbc2c0db377e55e" + integrity sha1-HRdnnAac2l0ECZGgnbwsDbN35V4= dependencies: pseudomap "^1.0.1" yallist "^2.0.0" @@ -1649,19 +2244,39 @@ lru-cache@~4.0.0: lru-memoizer@^1.12.0, lru-memoizer@^1.6.0: version "1.12.0" resolved "https://registry.yarnpkg.com/lru-memoizer/-/lru-memoizer-1.12.0.tgz#efe65706cc8a9cc653f80f0d5a6ea38ad950e352" + integrity sha1-7+ZXBsyKnMZT+A8NWm6jitlQ41I= dependencies: lock "~0.1.2" lodash "^4.17.4" lru-cache "~4.0.0" very-fast-args "^1.1.0" +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + marked@~0.3.6: - version "0.3.6" - resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" + version "0.3.19" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790" + integrity sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg== + +math-random@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" + integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== md5@^2.1.0, md5@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" + integrity sha1-U6s41f48iJG6RlMp6iP6wFQBJvk= dependencies: charenc "~0.0.1" crypt "~0.0.1" @@ -1670,10 +2285,12 @@ md5@^2.1.0, md5@^2.2.1: memory-fs@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290" + integrity sha1-8rslNovBIeORwlIN6Slpyu4KApA= memory-fs@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.3.0.tgz#7bcc6b629e3a43e871d7e29aca6ae8a7f15cbb20" + integrity sha1-e8xrYp46Q+hx1+Kaymrop/FcuyA= dependencies: errno "^0.1.3" readable-stream "^2.0.1" @@ -1681,14 +2298,17 @@ memory-fs@~0.3.0: merge-descriptors@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= methods@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= micromatch@^2.1.5: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= dependencies: arr-diff "^2.0.0" array-unique "^0.2.1" @@ -1701,82 +2321,132 @@ micromatch@^2.1.5: kind-of "^3.0.2" normalize-path "^2.0.1" object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -mime-db@~1.27.0: - version "1.27.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" - -mime-db@~1.35.0: - version "1.35.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.15" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" - dependencies: - mime-db "~1.27.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" -mime-types@~2.1.19: - version "2.1.19" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" - dependencies: - mime-db "~1.35.0" +micromatch@^3.1.10: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +mime-db@~1.38.0: + version "1.38.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.38.0.tgz#1a2aab16da9eb167b49c6e4df2d9c68d63d8e2ad" + integrity sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg== + +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.7: + version "2.1.22" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.22.tgz#fe6b355a190926ab7698c9a0556a11199b2199bd" + integrity sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog== + dependencies: + mime-db "~1.38.0" mime@^1.4.1: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== minami@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/minami/-/minami-1.2.3.tgz#99b6dcdfb2f0a54da1c9c8f7aa3a327787aaf9f8" + integrity sha1-mbbc37LwpU2hycj3qjoyd4eq+fg= minimatch@0.3: version "0.3.0" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.3.0.tgz#275d8edaac4f1bb3326472089e7949c8394699dd" + integrity sha1-J12O2qxPG7MyZHIInnlJyDlGmd0= dependencies: lru-cache "2" sigmund "~1.0.0" -"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: +"minimatch@2 || 3", minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== dependencies: brace-expansion "^1.1.7" -minimist@0.0.8, minimist@~0.0.1: +minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= + +minipass@^2.2.1, minipass@^2.3.4: + version "2.3.5" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.5.tgz#cacebe492022497f656b0f0f51e2682a9ed2d848" + integrity sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.2.1.tgz#dd27ea6136243c7c880684e8672bb3a45fd9b614" + integrity sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA== + dependencies: + minipass "^2.2.1" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + integrity sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" mkdirp@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + integrity sha1-G79asbqCevI1dRQ0kEJkVfSB/h4= -mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: +mkdirp@0.5.1, mkdirp@0.5.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= dependencies: minimist "0.0.8" mocha-junit-reporter@^1.13.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-1.13.0.tgz#030db8c530b244667253b03861d4cd336f7e56c8" + version "1.18.0" + resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-1.18.0.tgz#9209a3fba30025ae3ae5e6bfe7f9c5bc3c2e8ee2" + integrity sha512-y3XuqKa2+HRYtg0wYyhW/XsLm2Ps+pqf9HaTAt7+MVUAKFJaNAHOrNseTZo9KCxjfIbxUWwckP5qCDDPUmjSWA== dependencies: debug "^2.2.0" md5 "^2.1.0" mkdirp "~0.5.1" + strip-ansi "^4.0.0" xml "^1.0.0" mocha-multi@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/mocha-multi/-/mocha-multi-0.11.0.tgz#5cd48e04dbe7657d7e997880c4ccd021aaf51aa5" + version "0.11.1" + resolved "https://registry.yarnpkg.com/mocha-multi/-/mocha-multi-0.11.1.tgz#38f94242aff5d5e8313f61afcd0012bb7c478a52" + integrity sha512-bhZG9KwPIG/7K0P0kbB5wpwPEurDvaOIZbhVxSkAj8QhVHMxwOjQjnP6FaAd7qzwUgtbNODLo59vdyIJLHQopg== dependencies: - debug "~0.7.4" + debug "^3.1.0" is-string "^1.0.4" mkdirp "^0.5.1" object-assign "^4.1.1" @@ -1784,6 +2454,7 @@ mocha-multi@^0.11.0: mocha@^2.2.4: version "2.5.3" resolved "https://registry.yarnpkg.com/mocha/-/mocha-2.5.3.tgz#161be5bdeb496771eb9b35745050b622b5aefc58" + integrity sha1-FhvlvetJZ3HrmzV0UFC2IrWu/Fg= dependencies: commander "2.3.0" debug "2.2.0" @@ -1799,34 +2470,78 @@ mocha@^2.2.4: module-not-found-error@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/module-not-found-error/-/module-not-found-error-1.0.1.tgz#cf8b4ff4f29640674d6cdd02b0e3bc523c2bbdc0" + integrity sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA= moment@^2.18.1: - version "2.18.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.18.1.tgz#c36193dd3ce1c2eed2adb7c802dbbc77a81b1c0f" + version "2.24.0" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b" + integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg== mri@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.0.tgz#5c0a3f29c8ccffbbb1ec941dcec09d71fa32f36a" + version "1.1.4" + resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz#7cb1dd1b9b40905f1fac053abe25b6720f44744a" + integrity sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w== ms@0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" + integrity sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg= ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= ms@^2.0.0, ms@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== -nan@^2.3.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" +multimatch@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-3.0.0.tgz#0e2534cc6bc238d9ab67e1b9cd5fcd85a6dbf70b" + integrity sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA== + dependencies: + array-differ "^2.0.3" + array-union "^1.0.2" + arrify "^1.0.1" + minimatch "^3.0.4" + +nan@^2.9.2: + version "2.12.1" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.12.1.tgz#7b1aa193e9aa86057e3c7bbd0ac448e770925552" + integrity sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +needle@^2.2.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.4.tgz#51931bff82533b1928b7d1d69e01f1b00ffd2a4e" + integrity sha512-HyoqEb4wr/rsoaIDfTH2aVL9nWtQqba2/HvMv+++m8u0dz808MaagKILxtfeSN7QU7nvbQ79zk3vYOJp9zsNEA== + dependencies: + debug "^2.1.2" + iconv-lite "^0.4.4" + sax "^1.2.4" netmask@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/netmask/-/netmask-1.0.6.tgz#20297e89d86f6f6400f250d9f4f6b4c1945fcd35" + integrity sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU= nice-try@^1.0.4: version "1.0.5" @@ -1836,6 +2551,7 @@ nice-try@^1.0.4: nock@^3.1.1: version "3.6.0" resolved "https://registry.yarnpkg.com/nock/-/nock-3.6.0.tgz#d26c40004b3449a655b91b74ae3c56fc02c84525" + integrity sha1-0mxAAEs0SaZVuRt0rjxW/ALIRSU= dependencies: chai ">=1.9.2 <4.0.0" debug "^2.2.0" @@ -1848,6 +2564,7 @@ nock@^3.1.1: node-libs-browser@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-0.7.0.tgz#3e272c0819e308935e26674408d7af0e1491b83b" + integrity sha1-PicsCBnjCJNeJmdECNevDhSRuDs= dependencies: assert "^1.1.1" browserify-zlib "^0.1.4" @@ -1873,29 +2590,38 @@ node-libs-browser@^0.7.0: util "^0.10.3" vm-browserify "0.0.4" -node-pre-gyp@^0.6.36: - version "0.6.36" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz#db604112cb74e0d477554e9b505b17abddfab786" +node-pre-gyp@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" + integrity sha512-d1xFs+C/IPS8Id0qPTZ4bUT8wWryfR/OzzAFxweG+uLN85oPzyo2Iw6bVlLQ/JOdgNonXLCoRyqDzDWq4iw72A== dependencies: + detect-libc "^1.0.2" mkdirp "^0.5.1" + needle "^2.2.1" nopt "^4.0.1" + npm-packlist "^1.1.6" npmlog "^4.0.2" - rc "^1.1.7" - request "^2.81.0" + rc "^1.2.7" rimraf "^2.6.1" semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" + tar "^4" + +node-uuid@~1.4.7: + version "1.4.8" + resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907" + integrity sha1-sEDrCSOWivq/jTL7HxfxFn/auQc= nopt@3.x: version "3.0.6" resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= dependencies: abbrev "1" nopt@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= dependencies: abbrev "1" osenv "^0.1.4" @@ -1903,22 +2629,39 @@ nopt@^4.0.1: normalize-path@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379" + integrity sha1-MtDkcvkf80VwHBWoMRAY07CpA3k= -normalize-path@^2.0.1: +normalize-path@^2.0.0, normalize-path@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= dependencies: remove-trailing-separator "^1.0.1" +npm-bundled@^1.0.1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" + integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== + +npm-packlist@^1.1.6: + version "1.4.1" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.1.tgz#19064cdf988da80ea3cee45533879d90192bbfbc" + integrity sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= dependencies: path-key "^2.0.0" npmlog@^4.0.2: - version "4.1.0" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.0.tgz#dc59bee85f64f00ed424efb2af0783df25d1c0b5" + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== dependencies: are-we-there-yet "~1.1.2" console-control-strings "~1.1.0" @@ -1928,47 +2671,80 @@ npmlog@^4.0.2: number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= oauth-sign@~0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + integrity sha1-Rqarfwrq2N6unsBWV4C31O/rnUM= oauth-sign@~0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= -object-keys@^1.0.10, object-keys@^1.0.8: - version "1.0.11" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-keys@^1.0.11, object-keys@^1.0.12: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032" + integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" object.assign@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc" + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== dependencies: define-properties "^1.1.2" - function-bind "^1.1.0" - object-keys "^1.0.10" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= dependencies: for-own "^0.1.4" is-extendable "^0.1.1" -once@1.x, once@^1.3.0, once@^1.3.3: +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +once@1.x, once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= dependencies: wrappy "1" optimist@^0.6.1, optimist@~0.6.0: version "0.6.1" resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= dependencies: minimist "~0.0.1" wordwrap "~0.0.2" @@ -1976,6 +2752,7 @@ optimist@^0.6.1, optimist@~0.6.0: optionator@^0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= dependencies: deep-is "~0.1.3" fast-levenshtein "~2.0.4" @@ -1987,18 +2764,22 @@ optionator@^0.8.1: os-browserify@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" + integrity sha1-Y/xMzuXS13Y9Jrv4YBB45sLgBE8= os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= osenv@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== dependencies: os-homedir "^1.0.0" os-tmpdir "^1.0.0" @@ -2006,32 +2787,37 @@ osenv@^0.1.4: p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= p-limit@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== dependencies: p-try "^1.0.0" p-locate@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= dependencies: p-limit "^1.1.0" p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= -pac-proxy-agent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pac-proxy-agent/-/pac-proxy-agent-2.0.0.tgz#beb17cd2b06a20b379d57e1b2e2c29be0dfe5f9a" +pac-proxy-agent@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/pac-proxy-agent/-/pac-proxy-agent-2.0.2.tgz#90d9f6730ab0f4d2607dcdcd4d3d641aa26c3896" + integrity sha512-cDNAN1Ehjbf5EHkNY5qnRhGPUCp6SnpyVof5fRzN800QV1Y2OkzbH9rmjZkbBRa8igof903yOnjIl6z0SlAhxA== dependencies: - agent-base "^2.1.1" - debug "^2.6.8" + agent-base "^4.2.0" + debug "^3.1.0" get-uri "^2.0.0" - http-proxy-agent "^1.0.0" - https-proxy-agent "^1.0.0" + http-proxy-agent "^2.1.0" + https-proxy-agent "^2.2.1" pac-resolver "^3.0.0" raw-body "^2.2.0" socks-proxy-agent "^3.0.0" @@ -2039,6 +2825,7 @@ pac-proxy-agent@^2.0.0: pac-resolver@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pac-resolver/-/pac-resolver-3.0.0.tgz#6aea30787db0a891704deb7800a722a7615a6f26" + integrity sha512-tcc38bsjuE3XZ5+4vP96OfhOugrX+JcnpUbhfuc4LuXBLQhoTthOstZeoQJBDnQUDYzYmdImKsbz0xSl1/9qeA== dependencies: co "^4.6.0" degenerator "^1.0.4" @@ -2049,16 +2836,19 @@ pac-resolver@^3.0.0: pako@~0.2.0: version "0.2.9" resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" + integrity sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU= param-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/param-case/-/param-case-1.1.2.tgz#dcb091a43c259b9228f1c341e7b6a44ea0bf9743" + integrity sha1-3LCRpDwlm5Io8cNB57akTqC/l0M= dependencies: sentence-case "^1.1.2" parse-glob@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= dependencies: glob-base "^0.3.0" is-dotfile "^1.0.0" @@ -2068,187 +2858,235 @@ parse-glob@^3.0.4: pascal-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-1.1.2.tgz#3e5d64a20043830a7c49344c2d74b41be0c9c99b" + integrity sha1-Pl1kogBDgwp8STRMLXS0G+DJyZs= dependencies: camel-case "^1.1.1" upper-case-first "^1.1.0" +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + path-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" + integrity sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo= path-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/path-case/-/path-case-1.1.2.tgz#50ce6ba0d3bed3dd0b5c2a9c4553697434409514" + integrity sha1-UM5roNO+090LXCqcRVNpdDRAlRQ= dependencies: sentence-case "^1.1.2" path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= path-key@^2.0.0, path-key@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= path-parse@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== pbkdf2-compat@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz#b6e0c8fa99494d94e0511575802a59a5c142f288" + integrity sha1-tuDI+plJTZTgURV1gCpZpcFC8og= pem@^1.13.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/pem/-/pem-1.13.1.tgz#57dd3e0c044fbcf709db026a737e1aad7dc8330f" + version "1.14.2" + resolved "https://registry.yarnpkg.com/pem/-/pem-1.14.2.tgz#ab29350416bc3a532c30beeee0d541af897fb9ac" + integrity sha512-TOnPtq3ZFnCniOZ+rka4pk8UIze9xG1qI+wNE7EmkiR/cg+53uVvk5QbkWZ7M6RsuOxzz62FW1hlAobJr/lTOA== dependencies: es6-promisify "^6.0.0" md5 "^2.2.1" os-tmpdir "^1.0.1" which "^1.3.1" -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= pinkie-promise@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= dependencies: pinkie "^2.0.0" pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= prettier@^1.12.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.0.tgz#d26fc5894b9230de97629b39cae225b503724ce8" + version "1.16.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717" + integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g== pretty-quick@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-1.4.1.tgz#9d41f778d2d4d940ec603d1293a0998e84c4722c" + version "1.10.0" + resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-1.10.0.tgz#d86cc46fe92ed8cfcfba6a082ec5949c53858198" + integrity sha512-uNvm2N3UWmnZRZrClyQI45hIbV20f5BpSyZY51Spbvn4APp9+XLyX4bCjWRGT3fGyVyQ/2/iw7dbQq1UUaq7SQ== dependencies: chalk "^2.3.0" execa "^0.8.0" find-up "^2.1.0" ignore "^3.3.7" mri "^1.1.0" + multimatch "^3.0.0" -process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + integrity sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw== process@^0.11.0: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= propagate@0.3.x: version "0.3.1" resolved "https://registry.yarnpkg.com/propagate/-/propagate-0.3.1.tgz#e3a84404a7ece820dd6bbea9f6d924e3135ae09c" + integrity sha1-46hEBKfs6CDda76p9tkk4xNa4Jw= proxy-agent@2: - version "2.1.0" - resolved "https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-2.1.0.tgz#a3a2b3866debfeb79bb791f345dc9bc876e7ff86" + version "2.3.1" + resolved "https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-2.3.1.tgz#3d49d863d46cf5f37ca8394848346ea02373eac6" + integrity sha512-CNKuhC1jVtm8KJYFTS2ZRO71VCBx3QSA92So/e6NrY6GoJonkx3Irnk4047EsCcswczwqAekRj3s8qLRGahSKg== dependencies: - agent-base "2" - debug "2" - extend "3" - http-proxy-agent "1" - https-proxy-agent "1" - lru-cache "~2.6.5" - pac-proxy-agent "^2.0.0" - socks-proxy-agent "2" + agent-base "^4.2.0" + debug "^3.1.0" + http-proxy-agent "^2.1.0" + https-proxy-agent "^2.2.1" + lru-cache "^4.1.2" + pac-proxy-agent "^2.0.1" + proxy-from-env "^1.0.0" + socks-proxy-agent "^3.0.0" + +proxy-from-env@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" + integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4= proxyquire@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/proxyquire/-/proxyquire-2.1.0.tgz#c2263a38bf0725f2ae950facc130e27510edce8d" + integrity sha512-kptdFArCfGRtQFv3Qwjr10lwbEV0TBJYvfqzhwucyfEXqVgmnAkyEw/S3FYzR5HI9i5QOq4rcqQjZ6AlknlCDQ== dependencies: fill-keys "^1.0.2" module-not-found-error "^1.0.0" resolve "~1.8.1" -prr@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= pseudomap@^1.0.1, pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= psl@^1.1.24: - version "1.1.29" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" + version "1.1.31" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.31.tgz#e9aa86d0101b5b105cbe93ac6b784cd547276184" + integrity sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw== punycode@1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= punycode@^1.2.4, punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== qs@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" + version "6.6.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.6.0.tgz#a99c0f69a8d26bf7ef012f871cdabb0aee4424c2" + integrity sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA== qs@~6.3.0: version "6.3.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + integrity sha1-51vV9uJoEioqDgvaYwslUMFmUCw= qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== querystring-es3@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM= querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" +randomatic@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" + integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" raw-body@^2.2.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" + version "2.3.3" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.3.tgz#1b324ece6b5706e153855bc1148c65bb7f6ea0c3" + integrity sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw== dependencies: bytes "3.0.0" - http-errors "1.6.2" - iconv-lite "0.4.19" + http-errors "1.6.3" + iconv-lite "0.4.23" unpipe "1.0.0" -rc@^1.1.7: - version "1.2.1" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.1.tgz#2e03e8e42ee450b8cb3dce65be1bf8974e1dfd95" +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== dependencies: - deep-extend "~0.4.0" + deep-extend "^0.6.0" ini "~1.3.0" minimist "^1.2.0" strip-json-comments "~2.0.1" @@ -2256,67 +3094,78 @@ rc@^1.1.7: readable-stream@1.1.x: version "1.1.14" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" + integrity sha1-fPTFTvZI44EwhMY23SB54WbAgdk= dependencies: core-util-is "~1.0.0" inherits "~2.0.1" isarray "0.0.1" string_decoder "~0.10.x" -readable-stream@2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" +readable-stream@3: + version "3.1.1" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.1.1.tgz#ed6bbc6c5ba58b090039ff18ce670515795aeb06" + integrity sha512-DkN66hPyqDhnIQ6Jcsvx9bFjhw214O4poMBcIMgPVpQvNy9a0e0Uhg5SqySyDKAmUlwt8LonTBz1ezOnM8pUdA== dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.6: - version "2.2.11" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.11.tgz#0796b31f8d7688007ff0b93a8088d34aa17c0f72" +readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.3.5, readable-stream@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== dependencies: core-util-is "~1.0.0" - inherits "~2.0.1" + inherits "~2.0.3" isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.0.1" - string_decoder "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" util-deprecate "~1.0.1" readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + version "2.2.1" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" + integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" + graceful-fs "^4.1.11" + micromatch "^3.1.10" readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" regex-cache@^0.4.2: - version "0.4.3" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== dependencies: is-equal-shallow "^0.1.3" - is-primitive "^2.0.0" -remove-trailing-separator@^1.0.1: +regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.2.tgz#69b062d978727ad14dc6b56ba4ab772fd8d70511" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== -repeat-string@^1.5.2: +repeat-string@^1.5.2, repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= -request@2.79.0: - version "2.79.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" +request@2.77.0: + version "2.77.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.77.0.tgz#2b00d82030ededcc97089ffa5d8810a9c2aa314b" + integrity sha1-KwDYIDDt7cyXCJ/6XYgQqcKqMUs= dependencies: aws-sign2 "~0.6.0" aws4 "^1.2.1" @@ -2332,16 +3181,17 @@ request@2.79.0: isstream "~0.1.2" json-stringify-safe "~5.0.1" mime-types "~2.1.7" + node-uuid "~1.4.7" oauth-sign "~0.8.1" qs "~6.3.0" stringstream "~0.0.4" tough-cookie "~2.3.0" tunnel-agent "~0.4.1" - uuid "^3.0.0" request@^2.73.0, request@^2.88.0: version "2.88.0" resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== dependencies: aws-sign2 "~0.7.0" aws4 "^1.8.0" @@ -2364,52 +3214,34 @@ request@^2.73.0, request@^2.88.0: tunnel-agent "^0.6.0" uuid "^3.3.2" -request@^2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - requizzle@~0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.1.tgz#6943c3530c4d9a7e46f1cddd51c158fc670cdbde" + integrity sha1-aUPDUwxNmn5G8c3dUcFY/GcM294= dependencies: underscore "~1.6.0" +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + resolve@1.1.x: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= resolve@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" + integrity sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA== dependencies: path-parse "^1.0.5" rest-facade@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/rest-facade/-/rest-facade-1.10.1.tgz#a9b030ff50df28c9ea1a2719f94e369c47167d20" + integrity sha512-MYHUAxNQYkD/ejvQX1CY8pvPseKX5G4dWDRNv1OFNBxn4b063rvDyqpWkjdtP8QouhtAcf91HIUrBdPq08puiA== dependencies: bluebird "^2.10.2" change-case "^2.3.0" @@ -2417,106 +3249,145 @@ rest-facade@^1.10.1: superagent "^3.8.0" superagent-proxy "^1.0.2" +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + retry@^0.10.1: version "0.10.1" resolved "https://registry.yarnpkg.com/retry/-/retry-0.10.1.tgz#e76388d217992c252750241d3d3956fed98d8ff4" + integrity sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q= right-align@^0.1.1: version "0.1.3" resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + integrity sha1-YTObci/mo1FWiSENJOFMlhSGE+8= dependencies: align-text "^0.1.1" -rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" +rimraf@^2.6.1: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== dependencies: - glob "^7.0.5" + glob "^7.1.3" ripemd160@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-0.2.0.tgz#2bf198bde167cacfa51c0a928e84b68bbe171fce" + integrity sha1-K/GYveFnys+lHAqSjoS2i74XH84= -safe-buffer@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.0.tgz#fe4c8460397f9eaaaa58e73be46273408a45e223" - -safe-buffer@^5.1.2: +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -samsam@1.1.2, samsam@~1.1: +samsam@1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.2.tgz#bec11fdc83a9fda063401210e40176c3024d1567" + integrity sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc= + +samsam@~1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.3.tgz#9f5087419b4d091f232571e7fa52e90b0f552621" + integrity sha1-n1CHQZtNCR8jJXHn+lLpCw9VJiE= -semver@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" +sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== -semver@^5.5.0: +semver@^5.3.0, semver@^5.5.0, semver@^5.6.0: version "5.6.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg== -semver@~5.0.1: - version "5.0.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.0.3.tgz#77466de589cd5d3c95f138aa78bc569a3cb5d27a" - sentence-case@^1.1.1, sentence-case@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-1.1.3.tgz#8034aafc2145772d3abe1509aa42c9e1042dc139" + integrity sha1-gDSq/CFFdy06vhUJqkLJ4QQtwTk= dependencies: lower-case "^1.1.1" set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + integrity sha1-fbCPnT0i3H945Trzw79GZuzfzPE= + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + integrity sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" setimmediate@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= -setprototypeof@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== sha.js@2.2.6: version "2.2.6" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.2.6.tgz#17ddeddc5f722fb66501658895461977867315ba" + integrity sha1-F93t3F9yL7ZlAWWIlUYZd4ZzFbo= shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= dependencies: shebang-regex "^1.0.0" shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= sigmund@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" + integrity sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA= signal-exit@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= sinon@^1.17.1: version "1.17.7" resolved "https://registry.yarnpkg.com/sinon/-/sinon-1.17.7.tgz#4542a4f49ba0c45c05eb2e9dd9d203e2b8efe0bf" + integrity sha1-RUKk9JugxFwF6y6d2dID4rjv4L8= dependencies: formatio "1.1.1" lolex "1.3.2" @@ -2526,37 +3397,64 @@ sinon@^1.17.1: smart-buffer@^1.0.13: version "1.1.15" resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-1.1.15.tgz#7f114b5b65fab3e2a35aa775bb12f0d1c649bf16" + integrity sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY= snake-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-1.1.2.tgz#0c2f25e305158d9a18d3d977066187fef8a5a66a" + integrity sha1-DC8l4wUVjZoY09l3BmGH/vilpmo= dependencies: sentence-case "^1.1.2" +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + sntp@1.x.x: version "1.0.9" resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + integrity sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg= dependencies: hoek "2.x.x" -socks-proxy-agent@2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz#86ebb07193258637870e13b7bd99f26c663df3d3" - dependencies: - agent-base "2" - extend "3" - socks "~1.1.5" - socks-proxy-agent@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-3.0.1.tgz#2eae7cf8e2a82d34565761539a7f9718c5617659" + integrity sha512-ZwEDymm204mTzvdqyUqOdovVr2YRd2NYskrYrF2LXyZ9qDiMAoFESGK8CRphiO7rtbo2Y757k2Nia3x2hGtalA== dependencies: agent-base "^4.1.0" socks "^1.1.10" -socks@^1.1.10, socks@~1.1.5: +socks@^1.1.10: version "1.1.10" resolved "https://registry.yarnpkg.com/socks/-/socks-1.1.10.tgz#5b8b7fc7c8f341c53ed056e929b7bf4de8ba7b5a" + integrity sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o= dependencies: ip "^1.1.4" smart-buffer "^1.0.13" @@ -2564,75 +3462,118 @@ socks@^1.1.10, socks@~1.1.5: source-list-map@~0.1.7: version "0.1.8" resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106" + integrity sha1-xVCyq1Qn9rPyH1r+rYjE9Vh7IQY= -source-map@^0.4.4, source-map@~0.4.1: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" +source-map-resolve@^0.5.0: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== dependencies: - amdefine ">=0.0.4" + atob "^2.1.1" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@^0.5.6, source-map@~0.5.1: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== source-map@~0.1.38: version "0.1.43" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + integrity sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y= dependencies: amdefine ">=0.0.4" source-map@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" + integrity sha1-2rc/vPwrqBm03gO9b26qSBZLP50= dependencies: amdefine ">=0.0.4" -source-map@~0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" +source-map@~0.4.1: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + integrity sha1-66T12pwNyZneaAMti092FzZSA2s= + dependencies: + amdefine ">=0.0.4" -source-map@~0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= sshpk@^1.7.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== dependencies: asn1 "~0.2.3" assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" ecc-jsbn "~0.1.1" + getpass "^0.1.1" jsbn "~0.1.0" + safer-buffer "^2.0.2" tweetnacl "~0.14.0" -"statuses@>= 1.3.1 < 2": - version "1.4.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= stream-browserify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + version "2.0.2" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b" + integrity sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg== dependencies: inherits "~2.0.1" readable-stream "^2.0.2" stream-http@^2.3.1: - version "2.7.2" - resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.7.2.tgz#40a050ec8dc3b53b33d9909415c02c0bf1abfbad" + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + integrity sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw== dependencies: builtin-status-codes "^3.0.0" inherits "^2.0.1" - readable-stream "^2.2.6" + readable-stream "^2.3.6" to-arraybuffer "^1.0.0" xtend "^4.0.0" string-replace-webpack-plugin@0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/string-replace-webpack-plugin/-/string-replace-webpack-plugin-0.0.3.tgz#82c67448cea95ec002a1bfcfd2fb0195cd12bd24" + integrity sha1-gsZ0SM6pXsACob/P0vsBlc0SvSQ= dependencies: async "~0.2.10" css-loader "^0.9.1" @@ -2640,103 +3581,135 @@ string-replace-webpack-plugin@0.0.3: loader-utils "~0.2.3" style-loader "^0.8.3" -string-width@^1.0.1, string-width@^1.0.2: +string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= dependencies: code-point-at "^1.0.0" is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" +"string-width@^1.0.2 || 2": + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + string_decoder@^0.10.25, string_decoder@~0.10.x: version "0.10.31" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= -string_decoder@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.2.tgz#b29e1f4e1125fa97a10382b8a533737b7491e179" +string_decoder@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" + integrity sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w== dependencies: - safe-buffer "~5.0.1" + safe-buffer "~5.1.0" -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== dependencies: safe-buffer "~5.1.0" stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + version "0.0.6" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" + integrity sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA== strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= dependencies: ansi-regex "^2.0.0" +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= strip-indent@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" + integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= style-loader@^0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.8.3.tgz#f4f92eb7db63768748f15065cd6700f5a1c85357" + integrity sha1-9Pkut9tjdodI8VBlzWcA9aHIU1c= dependencies: loader-utils "^0.2.5" superagent-proxy@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/superagent-proxy/-/superagent-proxy-1.0.2.tgz#92d3660578f618ed43a82cf8cac799fe2938ba2d" + version "1.0.3" + resolved "https://registry.yarnpkg.com/superagent-proxy/-/superagent-proxy-1.0.3.tgz#acfa776672f11c24a90ad575e855def8be44f741" + integrity sha512-79Ujg1lRL2ICfuHUdX+H2MjIw73kB7bXsIkxLwHURz3j0XUmEEEoJ+u/wq+mKwna21Uejsm2cGR3OESA00TIjA== dependencies: - debug "2" + debug "^3.1.0" proxy-agent "2" superagent@^3.8.0: - version "3.8.2" - resolved "https://registry.yarnpkg.com/superagent/-/superagent-3.8.2.tgz#e4a11b9d047f7d3efeb3bbe536d9ec0021d16403" + version "3.8.3" + resolved "https://registry.yarnpkg.com/superagent/-/superagent-3.8.3.tgz#460ea0dbdb7d5b11bc4f78deba565f86a178e128" + integrity sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA== dependencies: component-emitter "^1.2.0" cookiejar "^2.1.0" debug "^3.1.0" extend "^3.0.0" form-data "^2.3.1" - formidable "^1.1.1" + formidable "^1.2.0" methods "^1.1.1" mime "^1.4.1" qs "^6.5.1" - readable-stream "^2.0.5" + readable-stream "^2.3.5" supports-color@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.2.0.tgz#ff1ed1e61169d06b3cf2d588e188b18d8847e17e" + integrity sha1-/x7R5hFp0Gs88tWI4YixjYhH4X4= supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= supports-color@^3.1.0: version "3.2.3" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= dependencies: has-flag "^1.0.0" supports-color@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0" + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: has-flag "^3.0.0" swap-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-1.1.2.tgz#c39203a4587385fad3c850a0bd1bcafa081974e3" + integrity sha1-w5IDpFhzhfrTyFCgvRvK+ggZdOM= dependencies: lower-case "^1.1.1" upper-case "^1.1.1" @@ -2744,45 +3717,42 @@ swap-case@^1.1.0: taffydb@2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.6.2.tgz#7cbcb64b5a141b6a2efc2c5d2c67b4e150b2a268" + integrity sha1-fLy2S1oUG2ou/CxdLGe04VCyomg= tapable@^0.1.8, tapable@~0.1.8: version "0.1.10" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4" + integrity sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q= -tar-pack@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" +tar@^4: + version "4.4.8" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.8.tgz#b19eec3fde2a96e64666df9fdb40c5ca1bc3747d" + integrity sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" + chownr "^1.1.1" + fs-minipass "^1.2.5" + minipass "^2.3.4" + minizlib "^1.1.1" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" thunkify@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/thunkify/-/thunkify-2.1.2.tgz#faa0e9d230c51acc95ca13a361ac05ca7e04553d" + integrity sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0= timers-browserify@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.2.tgz#ab4883cf597dcd50af211349a00fbca56ac86b86" + version "2.0.10" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" + integrity sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg== dependencies: setimmediate "^1.0.4" title-case@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/title-case/-/title-case-1.1.2.tgz#fae4a6ae546bfa22d083a0eea910a40d12ed4f5a" + integrity sha1-+uSmrlRr+iLQg6DuqRCkDRLtT1o= dependencies: sentence-case "^1.1.1" upper-case "^1.0.3" @@ -2790,20 +3760,49 @@ title-case@^1.1.0: to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M= to-iso-string@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/to-iso-string/-/to-iso-string-0.0.2.tgz#4dc19e664dfccbe25bd8db508b00c6da158255d1" + integrity sha1-TcGeZk38y+Jb2NtQiwDG2hWCVdE= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" tough-cookie@~2.3.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + version "2.3.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" + integrity sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA== dependencies: punycode "^1.4.1" tough-cookie@~2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ== dependencies: psl "^1.1.24" punycode "^1.4.1" @@ -2811,34 +3810,54 @@ tough-cookie@~2.4.3: tty-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= dependencies: safe-buffer "^5.0.1" tunnel-agent@~0.4.1: version "0.4.3" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + integrity sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us= tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= dependencies: prelude-ls "~1.1.2" type-detect@0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" + integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI= + +type-detect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" + integrity sha1-diIXzAbbJY7EiQihKY6LlRIejqI= + +uglify-js@^3.1.4: + version "3.4.9" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3" + integrity sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q== + dependencies: + commander "~2.17.1" + source-map "~0.6.1" -uglify-js@^2.6, uglify-js@~2.7.3: +uglify-js@~2.7.3: version "2.7.5" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8" + integrity sha1-RhLAx7qu4rp8SH3kkErhIgefLKg= dependencies: async "~0.2.6" source-map "~0.5.1" @@ -2848,42 +3867,76 @@ uglify-js@^2.6, uglify-js@~2.7.3: uglify-to-browserify@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" + integrity sha1-bgkk1r2mta/jSeOabWMoUKD4grc= underscore-contrib@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/underscore-contrib/-/underscore-contrib-0.3.0.tgz#665b66c24783f8fa2b18c9f8cbb0e2c7d48c26c7" + integrity sha1-ZltmwkeD+PorGMn4y7Dix9SMJsc= dependencies: underscore "1.6.0" underscore@1.6.0, underscore@~1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8" + integrity sha1-izixDKze9jM3uLJOT/htRa6lKag= underscore@~1.8.3: version "1.8.3" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" + integrity sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI= + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + integrity sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ= + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" unpipe@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" upper-case-first@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-1.1.2.tgz#5d79bedcff14419518fd2edb0a0507c9b6859115" + integrity sha1-XXm+3P8UQZUY/S7bCgUHybaFkRU= dependencies: upper-case "^1.1.1" upper-case@^1.0.3, upper-case@^1.1.0, upper-case@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" + integrity sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg= + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= url@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= dependencies: punycode "1.3.2" querystring "0.2.0" @@ -2891,44 +3944,69 @@ url@^0.11.0: urlgrey@0.4.4: version "0.4.4" resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" + integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8= + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== -util-deprecate@~1.0.1: +util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= -util@0.10.3, "util@>=0.10.3 <1", util@^0.10.3: +util@0.10.3: version "0.10.3" resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk= dependencies: inherits "2.0.1" -uuid@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" +"util@>=0.10.3 <1": + version "0.11.1" + resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61" + integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ== + dependencies: + inherits "2.0.3" + +util@^0.10.3: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A== + dependencies: + inherits "2.0.3" uuid@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== -verror@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= dependencies: - extsprintf "1.0.2" + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" very-fast-args@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/very-fast-args/-/very-fast-args-1.1.0.tgz#e16d1d1faf8a6e596a246421fd90a77963d0b396" + integrity sha1-4W0dH6+KbllqJGQh/ZCneWPQs5Y= vm-browserify@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" + integrity sha1-XX6kW7755Kb/ZflUOOCofDV9WnM= dependencies: indexof "0.0.1" watchpack@^0.2.1: version "0.2.9" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-0.2.9.tgz#62eaa4ab5e5ba35fdfc018275626e3c0f5e3fb0b" + integrity sha1-Yuqkq15bo1/fwBgnVibjwPXj+ws= dependencies: async "^0.9.0" chokidar "^1.0.0" @@ -2937,6 +4015,7 @@ watchpack@^0.2.1: webpack-core@~0.6.9: version "0.6.9" resolved "https://registry.yarnpkg.com/webpack-core/-/webpack-core-0.6.9.tgz#fc571588c8558da77be9efb6debdc5a3b172bdc2" + integrity sha1-/FcViMhVjad76e+23r3Fo7FyvcI= dependencies: source-list-map "~0.1.7" source-map "~0.4.1" @@ -2944,6 +4023,7 @@ webpack-core@~0.6.9: webpack@^1.12.14: version "1.15.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-1.15.0.tgz#4ff31f53db03339e55164a9d468ee0324968fe98" + integrity sha1-T/MfU9sDM55VFkqdRo7gMklo/pg= dependencies: acorn "^3.0.0" async "^1.3.0" @@ -2961,73 +4041,79 @@ webpack@^1.12.14: watchpack "^0.2.1" webpack-core "~0.6.9" -which@^1.1.1: - version "1.2.14" - resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" - dependencies: - isexe "^2.0.0" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -which@^1.3.1: +which@^1.1.1, which@^1.2.9, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== dependencies: isexe "^2.0.0" wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== dependencies: - string-width "^1.0.2" + string-width "^1.0.2 || 2" window-size@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + integrity sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0= wordwrap@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + integrity sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8= wordwrap@^1.0.0, wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc= wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= xml@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= xmlcreate@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-1.0.2.tgz#fa6bf762a60a413fb3dd8f4b03c5b269238d308f" + integrity sha1-+mv3YqYKQT+z3Y9LA8WyaSONMI8= xregexp@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" + integrity sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM= xtend@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68= yallist@^2.0.0, yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" + integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== yargs@~3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + integrity sha1-9+572FfdfB0tOMDnTvvWgdFDH9E= dependencies: camelcase "^1.0.2" cliui "^2.1.0" From 7a5d2c68c90cb3631fbfcd2d7d128e218560114a Mon Sep 17 00:00:00 2001 From: Arjen van der Ende Date: Wed, 27 Feb 2019 16:46:39 +0100 Subject: [PATCH 16/37] Add job users-exports endpoint --- src/management/JobsManager.js | 70 +++++++++++++++++++++++++++++++ src/management/index.js | 51 +++++++++++++++++++++++ test/management/jobs.tests.js | 78 ++++++++++++++++++++++++++++++++++- 3 files changed, 198 insertions(+), 1 deletion(-) diff --git a/src/management/JobsManager.js b/src/management/JobsManager.js index 4899174db..3c244f290 100644 --- a/src/management/JobsManager.js +++ b/src/management/JobsManager.js @@ -57,6 +57,19 @@ var JobsManager = function(options) { options.tokenProvider ); this.jobs = new RetryRestClient(auth0RestClient, options.retry); + + /** + * Provides an abstraction layer for consuming the + * {@link https://auth0.com/docs/api/v2#!/Jobs/post_users_exports Create job to export users endpoint} + * + * @type {external:RestClient} + */ + const usersExportsRestClient = new Auth0RestClient( + options.baseUrl + '/jobs/users-exports', + clientOptions, + options.tokenProvider + ); + this.usersExports = new RetryRestClient(usersExportsRestClient, options.retry); }; /** @@ -194,6 +207,63 @@ JobsManager.prototype.importUsers = function(data, cb) { return promise; }; +/** + * Export all users to a file using a long running job. + * + * @method exportUsers + * @memberOf module:management.JobsManager.prototype + * + * @example + * var data = { + * connection_id: 'con_0000000000000001', + * format: 'csv', + * limit: 5, + * fields: [ + * { + * "name": "user_id" + * }, + * { + * "name": "name" + * }, + * { + * "name": "email" + * }, + * { + * "name": "identities[0].connection", + * "export_as": "provider" + * }, + * { + * "name": "user_metadata.some_field" + * } + * ] + * } + * + * management.jobs.exportUsers(data, function (err, results) { + * if (err) { + * // Handle error. + * } + * + * // Retrieved job. + * console.log(results); + * }); + * + * @param {Object} data Users export data. + * @param {String} [data.connection_id] The connection id of the connection from which users will be exported + * @param {String} [data.format] The format of the file. Valid values are: "json" and "csv". + * @param {Number} [data.limit] Limit the number of records. + * @param {Object[]} [data.fields] A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +JobsManager.prototype.exportUsers = function(data, cb) { + if (cb && cb instanceof Function) { + return this.usersExports.create(data, cb); + } + + return this.usersExports.create(data); +}; + /** * Send a verification email to a user. * diff --git a/src/management/index.js b/src/management/index.js index fbdc550ab..ee75f5964 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -1611,6 +1611,57 @@ utils.wrapPropertyMethod(ManagementClient, 'getJob', 'jobs.get'); */ utils.wrapPropertyMethod(ManagementClient, 'importUsers', 'jobs.importUsers'); +/** + * Export all users to a file using a long running job. + * + * @method exportUsers + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var data = { + * connection_id: 'con_0000000000000001', + * format: 'csv', + * limit: 5, + * fields: [ + * { + * "name": "user_id" + * }, + * { + * "name": "name" + * }, + * { + * "name": "email" + * }, + * { + * "name": "identities[0].connection", + * "export_as": "provider" + * }, + * { + * "name": "user_metadata.some_field" + * } + * ] + * } + * + * management.exportUsers(data, function (err, results) { + * if (err) { + * // Handle error. + * } + * + * // Retrieved job. + * console.log(results); + * }); + * + * @param {Object} data Users export data. + * @param {String} [data.connection_id] The connection id of the connection from which users will be exported + * @param {String} [data.format] The format of the file. Valid values are: "json" and "csv". + * @param {Number} [data.limit] Limit the number of records. + * @param {Object[]} [data.fields] A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'exportUsers', 'jobs.exportUsers'); + /** * Send a verification email to a user. * diff --git a/test/management/jobs.tests.js b/test/management/jobs.tests.js index fbd7e00f9..b8b7cb98c 100644 --- a/test/management/jobs.tests.js +++ b/test/management/jobs.tests.js @@ -27,7 +27,7 @@ describe('JobsManager', function() { }); describe('instance', function() { - var methods = ['verifyEmail', 'importUsers', 'get']; + var methods = ['verifyEmail', 'importUsers', 'exportUsers', 'get']; methods.forEach(function(method) { it('should have a ' + method + ' method', function() { @@ -400,6 +400,82 @@ describe('JobsManager', function() { }); }); + describe('#exportUsers', function() { + beforeEach(function() { + this.request = nock(API_URL) + .post('/jobs/users-exports') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.jobs.exportUsers({ format: 'csv' }, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.jobs + .exportUsers({ format: 'csv' }) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + nock(API_URL) + .post('/jobs/users-exports') + .reply(500); + + this.jobs.exportUsers({ format: 'csv' }).catch(function(err) { + expect(err).to.exist; + done(); + }); + }); + + it('should pass the body of the response to the "then" handler', function(done) { + nock.cleanAll(); + + var data = { + type: 'users_export', + status: 'pending', + format: 'csv', + created_at: '', + id: 'job_0000000000000001' + }; + nock(API_URL) + .post('/jobs/users-exports') + .reply(200, data); + + this.jobs.exportUsers({ format: 'csv' }).then(function(response) { + expect(response).to.be.an.instanceOf(Object); + expect(response.status).to.equal('pending'); + done(); + }); + }); + + it('should perform a POST request to /api/v2/jobs/users-exports', function(done) { + var request = this.request; + + this.jobs.exportUsers({ format: 'csv' }).then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + var request = nock(API_URL) + .post('/jobs/users-exports') + .matchHeader('Authorization', 'Bearer ' + token) + .reply(200); + + this.jobs.exportUsers({ format: 'csv' }).then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + }); + describe('#verifyEmail', function() { var data = { user_id: 'github|12345' From 057afba2ff2fe5b37ff97ea509883f9420a2138e Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Mon, 11 Mar 2019 17:57:23 -0300 Subject: [PATCH 17/37] v2.15.0 --- CHANGELOG.md | 12 + docs/RetryRestClient.js.html | 4 +- docs/auth_DatabaseAuthenticator.js.html | 6 +- docs/auth_OAUthWithIDTokenValidation.js.html | 22 +- docs/auth_OAuthAuthenticator.js.html | 4 +- docs/auth_PasswordlessAuthenticator.js.html | 4 +- docs/auth_TokensManager.js.html | 4 +- docs/auth_UsersManager.js.html | 4 +- docs/auth_index.js.html | 4 +- docs/external-RestClient.html | 24 +- docs/index.html | 4 +- docs/index.js.html | 4 +- ...anagement_BlacklistedTokensManager.js.html | 4 +- docs/management_ClientGrantsManager.js.html | 4 +- docs/management_ClientsManager.js.html | 4 +- docs/management_ConnectionsManager.js.html | 4 +- docs/management_CustomDomainsManager.js.html | 4 +- ...anagement_DeviceCredentialsManager.js.html | 4 +- docs/management_EmailProviderManager.js.html | 9 +- docs/management_EmailTemplatesManager.js.html | 4 +- docs/management_GuardianManager.js.html | 4 +- docs/management_JobsManager.js.html | 76 +- docs/management_LogsManager.js.html | 4 +- ...management_ManagementTokenProvider.js.html | 4 +- .../management_ResourceServersManager.js.html | 4 +- docs/management_RulesConfigsManager.js.html | 4 +- docs/management_RulesManager.js.html | 4 +- docs/management_StatsManager.js.html | 4 +- docs/management_TenantManager.js.html | 4 +- docs/management_TicketsManager.js.html | 4 +- docs/management_UsersManager.js.html | 4 +- docs/management_index.js.html | 110 +- docs/module-auth.AuthenticationClient.html | 4 +- docs/module-auth.DatabaseAuthenticator.html | 6 +- ...odule-auth.OAUthWithIDTokenValidation.html | 6 +- docs/module-auth.OAuthAuthenticator.html | 4 +- ...module-auth.PasswordlessAuthenticator.html | 4 +- docs/module-auth.TokensManager.html | 4 +- docs/module-auth.UsersManager.html | 4 +- docs/module-auth.html | 4 +- ...e-management.BlacklistedTokensManager.html | 4 +- ...module-management.ClientGrantsManager.html | 1242 +-- docs/module-management.ClientsManager.html | 4 +- .../module-management.ConnectionsManager.html | 4 +- ...odule-management.CustomDomainsManager.html | 1169 +-- ...e-management.DeviceCredentialsManager.html | 4 +- ...odule-management.EmailProviderManager.html | 145 +- ...dule-management.EmailTemplatesManager.html | 4 +- docs/module-management.GuardianManager.html | 184 +- docs/module-management.JobsManager.html | 501 +- docs/module-management.LogsManager.html | 4 +- docs/module-management.ManagementClient.html | 7628 ++++++++++++----- ...le-management.ManagementTokenProvider.html | 4 +- ...ule-management.ResourceServersManager.html | 4 +- docs/module-management.RetryRestClient.html | 4 +- ...module-management.RulesConfigsManager.html | 4 +- docs/module-management.RulesManager.html | 4 +- docs/module-management.StatsManager.html | 4 +- docs/module-management.TenantManager.html | 4 +- docs/module-management.TicketsManager.html | 4 +- docs/module-management.UsersManager.html | 4 +- docs/module-management.html | 4 +- docs/module-utils.html | 4 +- docs/utils.js.html | 4 +- package.json | 17 +- 65 files changed, 6336 insertions(+), 5017 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06f7972ba..83c30723f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## [v2.15.0](https://github.com/auth0/node-auth0/tree/v2.15.0) (2019-03-11) + +[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.14.0...v2.15.0) + +**Added** + +* Add users-exports endpoint [\#340](https://github.com/auth0/node-auth0/pull/340) ([arjenvanderende](https://github.com/arjenvanderende)) + +**Fixed** + +* Don't validate id_token when alg is HS256 and there is no clientSecret [\#330](https://github.com/auth0/node-auth0/pull/330) ([luisrudge](https://github.com/luisrudge)) + ## [v2.14.0](https://github.com/auth0/node-auth0/tree/v2.14.0) (2018-11-12) [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.13.0...v2.14.0) diff --git a/docs/RetryRestClient.js.html b/docs/RetryRestClient.js.html index 0cf54eb1e..4796c1884 100644 --- a/docs/RetryRestClient.js.html +++ b/docs/RetryRestClient.js.html @@ -24,7 +24,7 @@
@@ -207,7 +207,7 @@

RetryRestClient.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_DatabaseAuthenticator.js.html b/docs/auth_DatabaseAuthenticator.js.html index 9cfabf416..81b0a5a0a 100644 --- a/docs/auth_DatabaseAuthenticator.js.html +++ b/docs/auth_DatabaseAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -164,7 +164,7 @@

auth/DatabaseAuthenticator.js

* @param {Object} data User credentials object. * @param {String} data.email User email address. * @param {String} data.password User password. - * @param {Stinrg} data.connection Identity provider in use. + * @param {String} data.connection Identity provider in use. * @param {Function} [cb] Method callback. * * @return {Promise|undefined} @@ -345,7 +345,7 @@

auth/DatabaseAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_OAUthWithIDTokenValidation.js.html b/docs/auth_OAUthWithIDTokenValidation.js.html index c8d5b0180..ec4acfc0a 100644 --- a/docs/auth_OAUthWithIDTokenValidation.js.html +++ b/docs/auth_OAUthWithIDTokenValidation.js.html @@ -24,7 +24,7 @@
@@ -45,6 +45,9 @@

auth/OAUthWithIDTokenValidation.js

var ArgumentError = require('rest-facade').ArgumentError; +var HS256_IGNORE_VALIDATION_MESSAGE = + 'Validation of `id_token` requires a `clientSecret` when using the HS256 algorithm. To ensure tokens are validated, please switch the signing algorithm to RS256 or provide a `clientSecret` in the constructor.'; + /** * @class * Abstracts the `oauth.create` method with additional id_token validation @@ -99,6 +102,9 @@

auth/OAUthWithIDTokenValidation.js

if (r.id_token) { function getKey(header, callback) { if (header.alg === 'HS256') { + if (!_this.clientSecret) { + return callback({ message: HS256_IGNORE_VALIDATION_MESSAGE }); + } return callback(null, Buffer.from(_this.clientSecret, 'base64')); } _this._jwksClient.getSigningKey(header.kid, function(err, key) { @@ -118,11 +124,15 @@

auth/OAUthWithIDTokenValidation.js

audience: this.clientId, issuer: 'https://' + this.domain + '/' }, - function(err, payload) { - if (err) { - return rej(err); + function(err) { + if (!err) { + return res(r); + } + if (err.message && err.message.includes(HS256_IGNORE_VALIDATION_MESSAGE)) { + console.warn(HS256_IGNORE_VALIDATION_MESSAGE); + return res(r); } - return res(r); + return rej(err); } ); }); @@ -148,7 +158,7 @@

auth/OAUthWithIDTokenValidation.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_OAuthAuthenticator.js.html b/docs/auth_OAuthAuthenticator.js.html index 31055ed63..727dcef3b 100644 --- a/docs/auth_OAuthAuthenticator.js.html +++ b/docs/auth_OAuthAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -424,7 +424,7 @@

auth/OAuthAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_PasswordlessAuthenticator.js.html b/docs/auth_PasswordlessAuthenticator.js.html index 49e45b1be..88599915d 100644 --- a/docs/auth_PasswordlessAuthenticator.js.html +++ b/docs/auth_PasswordlessAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -286,7 +286,7 @@

auth/PasswordlessAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_TokensManager.js.html b/docs/auth_TokensManager.js.html index dab714d38..2cc6f4c80 100644 --- a/docs/auth_TokensManager.js.html +++ b/docs/auth_TokensManager.js.html @@ -24,7 +24,7 @@
@@ -226,7 +226,7 @@

auth/TokensManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_UsersManager.js.html b/docs/auth_UsersManager.js.html index 49fa17592..65d309b9d 100644 --- a/docs/auth_UsersManager.js.html +++ b/docs/auth_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -224,7 +224,7 @@

auth/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/auth_index.js.html b/docs/auth_index.js.html index 09545aa68..15aacbf37 100644 --- a/docs/auth_index.js.html +++ b/docs/auth_index.js.html @@ -24,7 +24,7 @@
@@ -632,7 +632,7 @@

auth/index.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/external-RestClient.html b/docs/external-RestClient.html index 65462a15f..4975cbc43 100644 --- a/docs/external-RestClient.html +++ b/docs/external-RestClient.html @@ -24,7 +24,7 @@
@@ -87,7 +87,7 @@

Source:
@@ -187,7 +187,7 @@

Source:
@@ -287,7 +287,7 @@

Source:
@@ -487,7 +487,7 @@

Source:
@@ -587,7 +587,7 @@

Source:
@@ -687,7 +687,7 @@

Source:
@@ -787,7 +787,7 @@

Source:
@@ -887,7 +887,7 @@

Source:
@@ -987,7 +987,7 @@

Source:
@@ -1087,7 +1087,7 @@

Source:
@@ -1139,7 +1139,7 @@


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/index.html b/docs/index.html index 284900d46..35675c193 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
@@ -151,7 +151,7 @@

License

This project is licensed under the MIT license. See the

diff --git a/docs/index.js.html b/docs/index.js.html index 1c8d473a0..9e941863c 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -24,7 +24,7 @@
@@ -61,7 +61,7 @@

index.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html index 48fdcb021..57186a500 100644 --- a/docs/management_BlacklistedTokensManager.js.html +++ b/docs/management_BlacklistedTokensManager.js.html @@ -24,7 +24,7 @@
@@ -153,7 +153,7 @@

management/BlacklistedTokensManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html index 02d124357..090f03820 100644 --- a/docs/management_ClientGrantsManager.js.html +++ b/docs/management_ClientGrantsManager.js.html @@ -24,7 +24,7 @@
@@ -216,7 +216,7 @@

management/ClientGrantsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html index ee848a5a2..c8a415528 100644 --- a/docs/management_ClientsManager.js.html +++ b/docs/management_ClientsManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ClientsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html index 15c95b0b1..70edd7e7a 100644 --- a/docs/management_ConnectionsManager.js.html +++ b/docs/management_ConnectionsManager.js.html @@ -24,7 +24,7 @@
@@ -232,7 +232,7 @@

management/ConnectionsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html index 09e419d59..8940d287b 100644 --- a/docs/management_CustomDomainsManager.js.html +++ b/docs/management_CustomDomainsManager.js.html @@ -24,7 +24,7 @@
@@ -241,7 +241,7 @@

management/CustomDomainsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html index f5dc2e012..9f64551f5 100644 --- a/docs/management_DeviceCredentialsManager.js.html +++ b/docs/management_DeviceCredentialsManager.js.html @@ -24,7 +24,7 @@
@@ -177,7 +177,7 @@

management/DeviceCredentialsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html index 38f961049..276f60672 100644 --- a/docs/management_EmailProviderManager.js.html +++ b/docs/management_EmailProviderManager.js.html @@ -24,7 +24,7 @@
@@ -132,7 +132,10 @@

management/EmailProviderManager.js

* }); * * @param {Function} [cb] Callback function. - * + * @param {Object} [params] Clients parameters. + * @param {Number} [params.fields] A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields. + * @param {Number} [params.include_fields] true if the fields specified are to be excluded from the result, false otherwise (defaults to true) + * @return {Promise|undefined} */ utils.wrapPropertyMethod(EmailProviderManager, 'get', 'resource.getAll'); @@ -195,7 +198,7 @@

management/EmailProviderManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html index b926f4b92..1d5725300 100644 --- a/docs/management_EmailTemplatesManager.js.html +++ b/docs/management_EmailTemplatesManager.js.html @@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@

management/EmailTemplatesManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html index fd969d25b..3afa11710 100644 --- a/docs/management_GuardianManager.js.html +++ b/docs/management_GuardianManager.js.html @@ -24,7 +24,7 @@
@@ -328,7 +328,7 @@

management/GuardianManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html index 0b1a0388d..409665611 100644 --- a/docs/management_JobsManager.js.html +++ b/docs/management_JobsManager.js.html @@ -24,7 +24,7 @@
@@ -98,6 +98,19 @@

management/JobsManager.js

options.tokenProvider ); this.jobs = new RetryRestClient(auth0RestClient, options.retry); + + /** + * Provides an abstraction layer for consuming the + * {@link https://auth0.com/docs/api/v2#!/Jobs/post_users_exports Create job to export users endpoint} + * + * @type {external:RestClient} + */ + const usersExportsRestClient = new Auth0RestClient( + options.baseUrl + '/jobs/users-exports', + clientOptions, + options.tokenProvider + ); + this.usersExports = new RetryRestClient(usersExportsRestClient, options.retry); }; /** @@ -155,7 +168,7 @@

management/JobsManager.js

* send_completion_email: false //optional * }; * - * management.jobs.get(params, function (err) { + * management.jobs.importUsers(params, function (err) { * if (err) { * // Handle error. * } @@ -235,6 +248,63 @@

management/JobsManager.js

return promise; }; +/** + * Export all users to a file using a long running job. + * + * @method exportUsers + * @memberOf module:management.JobsManager.prototype + * + * @example + * var data = { + * connection_id: 'con_0000000000000001', + * format: 'csv', + * limit: 5, + * fields: [ + * { + * "name": "user_id" + * }, + * { + * "name": "name" + * }, + * { + * "name": "email" + * }, + * { + * "name": "identities[0].connection", + * "export_as": "provider" + * }, + * { + * "name": "user_metadata.some_field" + * } + * ] + * } + * + * management.jobs.exportUsers(data, function (err, results) { + * if (err) { + * // Handle error. + * } + * + * // Retrieved job. + * console.log(results); + * }); + * + * @param {Object} data Users export data. + * @param {String} [data.connection_id] The connection id of the connection from which users will be exported + * @param {String} [data.format] The format of the file. Valid values are: "json" and "csv". + * @param {Number} [data.limit] Limit the number of records. + * @param {Object[]} [data.fields] A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +JobsManager.prototype.exportUsers = function(data, cb) { + if (cb && cb instanceof Function) { + return this.usersExports.create(data, cb); + } + + return this.usersExports.create(data); +}; + /** * Send a verification email to a user. * @@ -284,7 +354,7 @@

management/JobsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html index 6c9f5b9ea..02b71be8d 100644 --- a/docs/management_LogsManager.js.html +++ b/docs/management_LogsManager.js.html @@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@

management/LogsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html index 2b5b18db8..61a6fa94b 100644 --- a/docs/management_ManagementTokenProvider.js.html +++ b/docs/management_ManagementTokenProvider.js.html @@ -24,7 +24,7 @@
@@ -189,7 +189,7 @@

management/ManagementTokenProvider.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html index 3cfaa5da4..fafbb3aca 100644 --- a/docs/management_ResourceServersManager.js.html +++ b/docs/management_ResourceServersManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ResourceServersManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html index 18de21ac5..439658b62 100644 --- a/docs/management_RulesConfigsManager.js.html +++ b/docs/management_RulesConfigsManager.js.html @@ -24,7 +24,7 @@
@@ -179,7 +179,7 @@

management/RulesConfigsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html index 8f51c048f..93eae695b 100644 --- a/docs/management_RulesManager.js.html +++ b/docs/management_RulesManager.js.html @@ -24,7 +24,7 @@
@@ -248,7 +248,7 @@

management/RulesManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html index aff6e68c8..6ef638d33 100644 --- a/docs/management_StatsManager.js.html +++ b/docs/management_StatsManager.js.html @@ -24,7 +24,7 @@
@@ -174,7 +174,7 @@

management/StatsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html index 2a14fe60a..25f65f66b 100644 --- a/docs/management_TenantManager.js.html +++ b/docs/management_TenantManager.js.html @@ -24,7 +24,7 @@
@@ -161,7 +161,7 @@

management/TenantManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html index ce0b83bb6..03451ef26 100644 --- a/docs/management_TicketsManager.js.html +++ b/docs/management_TicketsManager.js.html @@ -24,7 +24,7 @@
@@ -166,7 +166,7 @@

management/TicketsManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html index 76adaeaa4..e09e07ad9 100644 --- a/docs/management_UsersManager.js.html +++ b/docs/management_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -677,7 +677,7 @@

management/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/management_index.js.html b/docs/management_index.js.html index 9e4daa584..a94ca9567 100644 --- a/docs/management_index.js.html +++ b/docs/management_index.js.html @@ -24,7 +24,7 @@
@@ -599,8 +599,8 @@

management/index.js

/** * Get all Auth0 Client Grants. * - * @method getAll - * @memberOf module:management.ClientGrantsManager.prototype + * @method getClientGrants + * @memberOf module:management.ManagementClient.prototype * * @example <caption> * This method takes an optional object as first argument that may be used to @@ -630,8 +630,8 @@

management/index.js

/** * Create an Auth0 client grant. * - * @method create - * @memberOf module:management.ClientGrantsManager.prototype + * @method createClientGrant + * @memberOf module:management.ManagementClient.prototype * * @example * management.clientGrants.create(data, function (err) { @@ -652,8 +652,8 @@

management/index.js

/** * Update an Auth0 client grant. * - * @method update - * @memberOf module:management.ClientGrantsManager.prototype + * @method updateClientGrant + * @memberOf module:management.ManagementClient.prototype * * @example * var data = { @@ -683,8 +683,8 @@

management/index.js

/** * Delete an Auth0 client grant. * - * @method delete - * @memberOf module:management.ClientGrantsManager.prototype + * @method deleteClientGrant + * @memberOf module:management.ManagementClient.prototype * * @example * management.clientGrants.delete({ id: GRANT_ID }, function (err) { @@ -1430,7 +1430,10 @@

management/index.js

* }); * * @param {Function} [cb] Callback function. - * + * @param {Object} [params] Clients parameters. + * @param {Number} [params.fields] A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields. + * @param {Number} [params.include_fields] true if the fields specified are to be excluded from the result, false otherwise (defaults to true) + * @return {Promise|undefined} */ utils.wrapPropertyMethod(ManagementClient, 'getEmailProvider', 'emailProvider.get'); @@ -1649,6 +1652,57 @@

management/index.js

*/ utils.wrapPropertyMethod(ManagementClient, 'importUsers', 'jobs.importUsers'); +/** + * Export all users to a file using a long running job. + * + * @method exportUsers + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var data = { + * connection_id: 'con_0000000000000001', + * format: 'csv', + * limit: 5, + * fields: [ + * { + * "name": "user_id" + * }, + * { + * "name": "name" + * }, + * { + * "name": "email" + * }, + * { + * "name": "identities[0].connection", + * "export_as": "provider" + * }, + * { + * "name": "user_metadata.some_field" + * } + * ] + * } + * + * management.exportUsers(data, function (err, results) { + * if (err) { + * // Handle error. + * } + * + * // Retrieved job. + * console.log(results); + * }); + * + * @param {Object} data Users export data. + * @param {String} [data.connection_id] The connection id of the connection from which users will be exported + * @param {String} [data.format] The format of the file. Valid values are: "json" and "csv". + * @param {Number} [data.limit] Limit the number of records. + * @param {Object[]} [data.fields] A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'exportUsers', 'jobs.exportUsers'); + /** * Send a verification email to a user. * @@ -1982,8 +2036,8 @@

management/index.js

/** * Create an Auth0 Custom Domain. * - * @method create - * @memberOf module:management.CustomDomainsManager.prototype + * @method createCustomDomain + * @memberOf module:management.ManagementClient.prototype * * @example * management.createCustomDomain(data, function (err) { @@ -2004,8 +2058,8 @@

management/index.js

/** * Get all Auth0 CustomDomains. * - * @method getAll - * @memberOf module:management.CustomDomainsManager.prototype + * @method getCustomDomains + * @memberOf module:management.ManagementClient.prototype * * @example * management.getCustomDomains(function (err, customDomains) { @@ -2019,8 +2073,8 @@

management/index.js

/** * Get a Custom Domain. * - * @method get - * @memberOf module:management.CustomDomainsManager.prototype + * @method getCustomDomain + * @memberOf module:management.ManagementClient.prototype * * @example * management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) { @@ -2042,8 +2096,8 @@

management/index.js

/** * Verify a Custom Domain. * - * @method verify - * @memberOf module:management.CustomDomainsManager.prototype + * @method verifyCustomDomain + * @memberOf module:management.ManagementClient.prototype * * @example * management.verifyCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) { @@ -2065,8 +2119,8 @@

management/index.js

/** * Delete a Custom Domain. * - * @method delete - * @memberOf module:management.CustomDomainsManager.prototype + * @method deleteCustomDomain + * @memberOf module:management.ManagementClient.prototype * * @example * management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) { @@ -2089,7 +2143,7 @@

management/index.js

* Create a Guardian enrollment ticket. * * @method createGuardianEnrollmentTicket - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * @example * management.createGuardianEnrollmentTicket(function (err, ticket) { @@ -2110,7 +2164,7 @@

management/index.js

* Get a list of Guardian factors and statuses. * * @method getGuardianFactors - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.getGuardianFactors(function (err, factors) { * console.log(factors.length); @@ -2126,7 +2180,7 @@

management/index.js

* Get Guardian factor provider configuration * * @method getGuardianFactorProvider - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.getFactorProvider({ name: 'sms', provider: 'twilio'}, function (err, provider) { * console.log(provider); @@ -2147,7 +2201,7 @@

management/index.js

* Update Guardian's factor provider * * @method updateFactorProvider - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.updateGuardianFactorProvider({ name: 'sms', provider: 'twilio' }, { * messaging_service_sid: 'XXXXXXXXXXXXXX', @@ -2173,7 +2227,7 @@

management/index.js

* Get Guardian enrollment and verification factor templates * * @method getGuardianFactorTemplates - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.getGuardianFactorTemplates({ name: 'sms' }, function (err, templates) { * console.log(templates); @@ -2194,7 +2248,7 @@

management/index.js

* Update Guardian enrollment and verification factor templates * * @method updateGuardianFactorTemplates - * @memberOf module:management.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.updateGuardianFactorTemplates({ name: 'sms' }, { * enrollment_message: "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.", @@ -2219,7 +2273,7 @@

management/index.js

* Update Guardian Factor * * @method updateGuardianFactor - * @memberOf module.GuardianManager.prototype + * @memberOf module:management.ManagementClient.prototype * * management.updateGuardianFactor({ name: 'sms' }, { * enabled: true @@ -2248,7 +2302,7 @@

management/index.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html index fb612176b..3759ff8a2 100644 --- a/docs/module-auth.AuthenticationClient.html +++ b/docs/module-auth.AuthenticationClient.html @@ -24,7 +24,7 @@
@@ -3894,7 +3894,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html index b7b29e7b2..64f95eedb 100644 --- a/docs/module-auth.DatabaseAuthenticator.html +++ b/docs/module-auth.DatabaseAuthenticator.html @@ -24,7 +24,7 @@
@@ -1590,7 +1590,7 @@
Parameters:
-Stinrg +String @@ -1738,7 +1738,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html index 8697b3777..f161a65ee 100644 --- a/docs/module-auth.OAUthWithIDTokenValidation.html +++ b/docs/module-auth.OAUthWithIDTokenValidation.html @@ -24,7 +24,7 @@
@@ -101,7 +101,7 @@

Source:
@@ -414,7 +414,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html index 1a653544b..9aec2c527 100644 --- a/docs/module-auth.OAuthAuthenticator.html +++ b/docs/module-auth.OAuthAuthenticator.html @@ -24,7 +24,7 @@
@@ -1796,7 +1796,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html index e81cdc6c4..e20079a2c 100644 --- a/docs/module-auth.PasswordlessAuthenticator.html +++ b/docs/module-auth.PasswordlessAuthenticator.html @@ -24,7 +24,7 @@
@@ -1492,7 +1492,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html index 97a1daf27..c01be4808 100644 --- a/docs/module-auth.TokensManager.html +++ b/docs/module-auth.TokensManager.html @@ -24,7 +24,7 @@
@@ -352,7 +352,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html index 1b625dd20..f35ae1e47 100644 --- a/docs/module-auth.UsersManager.html +++ b/docs/module-auth.UsersManager.html @@ -24,7 +24,7 @@
@@ -1009,7 +1009,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-auth.html b/docs/module-auth.html index 249e89209..cc295c8ec 100644 --- a/docs/module-auth.html +++ b/docs/module-auth.html @@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@

Classes


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html index 0451d5674..094d54110 100644 --- a/docs/module-management.BlacklistedTokensManager.html +++ b/docs/module-management.BlacklistedTokensManager.html @@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html index dee679a9a..a14a07f8c 100644 --- a/docs/module-management.ClientGrantsManager.html +++ b/docs/module-management.ClientGrantsManager.html @@ -24,7 +24,7 @@
@@ -717,1097 +717,14 @@
Example
-

create(data, cbopt) → {Promise|undefined}

- - - - - -
-

Create an Auth0 client grant.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
data - - -Object - - - - - - - - - - -

The client data object.

- -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.clientGrants.create(data, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Client grant created.
-});
- -
- -
- - -
- - - -

delete(params, cbopt) → {Promise|undefined}

- - - - - -
-

Delete an Auth0 client grant.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
params - - -Object - - - - - - - - - - -

Client parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Client grant ID.

- -
- - -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Grant deleted.
-});
- -
- -
- - -
- - - -

delete(params, cbopt) → {Promise|undefined}

- - - - - -
-

Delete an Auth0 client grant.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
params - - -Object - - - - - - - - - - -

Client parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Client grant ID.

- -
- - -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Grant deleted.
-});
- -
- -
- - -
- - - -

getAll(paramsopt, cbopt) → {Promise|undefined}

- - - - - -
-

Get all Auth0 Client Grants.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
params - - -Object - - - - - - <optional>
- - - - - -
-

Client Grants parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
per_page - - -Number - - - - - - <optional>
- - - - - -
-

Number of results per page.

- -
page - - -Number - - - - - - <optional>
- - - - - -
-

Page number, zero indexed.

- -
- - -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
-
-management.getClientGrants(params, function (err, grants) {
-  console.log(grants.length);
-});
- -
- -
- - -
- - - -

getAll(paramsopt, cbopt) → {Promise|undefined}

+

delete(params, cbopt) → {Promise|undefined}

-

Get all Auth0 Client Grants.

+

Delete an Auth0 client grant.

@@ -1843,7 +760,7 @@

getAllSource:
@@ -1904,8 +821,6 @@
Parameters:
- <optional>
- @@ -1916,7 +831,7 @@
Parameters:
-

Client Grants parameters.

+

Client parameters.

@@ -1930,8 +845,6 @@
Parameters:
Type - Attributes - @@ -1944,70 +857,24 @@
Parameters:
- per_page - - - - - -Number - - - - - - - - - <optional>
- - - - - - - - - - - -

Number of results per page.

- - - - - - - - - page + id -Number +String - - - <optional>
- - - - - - - -

Page number, zero indexed.

+

Client grant ID.

@@ -2102,21 +969,12 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
-
+    
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
+  if (err) {
+    // Handle error.
+  }
 
-management.clientGrants.getAll(params, function (err, grants) {
-  console.log(grants.length);
+  // Grant deleted.
 });
@@ -2128,14 +986,14 @@
Example
-

update(params, data, cbopt) → {Promise|undefined}

+

getAll(paramsopt, cbopt) → {Promise|undefined}

-

Update an Auth0 client grant.

+

Get all Auth0 Client Grants.

@@ -2171,7 +1029,7 @@

updateSource:
@@ -2232,6 +1090,8 @@
Parameters:
+ <optional>
+ @@ -2242,7 +1102,7 @@
Parameters:
-

Client parameters.

+

Client Grants parameters.

@@ -2256,6 +1116,8 @@
Parameters:
Type + Attributes + @@ -2268,32 +1130,34 @@
Parameters:
- id + per_page -String +Number + + + <optional>
+ - + - -

Client grant ID.

- - + + - - - + + +

Number of results per page.

@@ -2302,13 +1166,13 @@
Parameters:
- data + page -Object +Number @@ -2317,6 +1181,8 @@
Parameters:
+ <optional>
+ @@ -2327,7 +1193,15 @@
Parameters:
-

Updated client data.

+

Page number, zero indexed.

+ + + + + + + + @@ -2414,19 +1288,21 @@
Returns:
Example
-
var data = {
-  client_id: CLIENT_ID,
-  audience: AUDIENCE,
-  scope: []
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
 };
-var params = { id: CLIENT_GRANT_ID };
 
-management.clientGrants.update(params, data, function (err, grant) {
-  if (err) {
-    // Handle error.
-  }
 
-  console.log(grant.id);
+management.clientGrants.getAll(params, function (err, grants) {
+  console.log(grants.length);
 });
@@ -2760,7 +1636,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html index 02612947b..0b77f92d1 100644 --- a/docs/module-management.ClientsManager.html +++ b/docs/module-management.ClientsManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html index 7ebfbcc77..c6a8da76d 100644 --- a/docs/module-management.ConnectionsManager.html +++ b/docs/module-management.ConnectionsManager.html @@ -24,7 +24,7 @@
@@ -1899,7 +1899,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html index 6c4def656..c61671616 100644 --- a/docs/module-management.CustomDomainsManager.html +++ b/docs/module-management.CustomDomainsManager.html @@ -24,7 +24,7 @@
@@ -792,224 +792,6 @@
Example
-
- - - -

create(data, cbopt) → {Promise|undefined}

- - - - - -
-

Create an Auth0 Custom Domain.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
data - - -Object - - - - - - - - - - -

The custom domain data object.

- -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.createCustomDomain(data, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // CustomDomain created.
-});
- -
- -
- -
@@ -1057,7 +839,7 @@

deleteSource:
@@ -1266,7 +1048,7 @@
Returns:
Example
-
management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
+    
management.customDomains.delete({ id: CUSTOM_DOMAIN_ID }, function (err) {
   if (err) {
     // Handle error.
   }
@@ -1283,14 +1065,14 @@ 
Example
-

delete(params, cbopt) → {Promise|undefined}

+

get(params, cbopt) → {Promise|undefined}

-

Delete a Custom Domain.

+

Get a Custom Domain.

@@ -1326,7 +1108,7 @@

deleteSource:
@@ -1535,12 +1317,12 @@
Returns:
Example
-
management.customDomains.delete({ id: CUSTOM_DOMAIN_ID }, function (err) {
+    
management.customDomains.get({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
   if (err) {
     // Handle error.
   }
 
-  // CustomDomain deleted.
+  console.log(customDomain);
 });
@@ -1552,14 +1334,14 @@
Example
-

get(params, cbopt) → {Promise|undefined}

+

getAll() → {Promise|undefined}

-

Get a Custom Domain.

+

Get all Auth0 CustomDomains.

@@ -1595,7 +1377,7 @@

getSource:
@@ -1614,925 +1396,6 @@

get - - - - Name - - - Type - - - Attributes - - - - - Description - - - - - - - - - params - - - - - -Object - - - - - - - - - - - - - - - - - - -

Custom Domain parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Custom Domain ID.

- -
- - - - - - - - - - cb - - - - - -function - - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function.

- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(customDomain);
-});
- -
- -

- - -
- - - -

get(params, cbopt) → {Promise|undefined}

- - - - - -
-

Get a Custom Domain.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
params - - -Object - - - - - - - - - - -

Custom Domain parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Custom Domain ID.

- -
- - -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.customDomains.get({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(customDomain);
-});
- -
- -
- - -
- - - -

getAll() → {Promise|undefined}

- - - - - -
-

Get all Auth0 CustomDomains.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.getCustomDomains(function (err, customDomains) {
-  console.log(customDomains.length);
-});
- -
- -
- - -
- - - -

getAll() → {Promise|undefined}

- - - - - -
-

Get all Auth0 CustomDomains.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.customDomains.getAll(function (err, customDomains) {
-  console.log(customDomains.length);
-});
- -
- -
- - -
- - - -

verify(params, cbopt) → {Promise|undefined}

- - - - - -
-

Verify a Custom Domain.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
params - - -Object - - - - - - - - - - -

Custom Domain parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Custom Domain ID.

- -
- - -
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - @@ -2574,12 +1437,8 @@
Returns:
Example
-
management.verifyCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(customDomain);
+    
management.customDomains.getAll(function (err, customDomains) {
+  console.log(customDomains.length);
 });
@@ -2872,7 +1731,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html index 01d6666b7..c87bb56fc 100644 --- a/docs/module-management.DeviceCredentialsManager.html +++ b/docs/module-management.DeviceCredentialsManager.html @@ -24,7 +24,7 @@
@@ -1179,7 +1179,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html index 52441ed0a..530ab5dcb 100644 --- a/docs/module-management.EmailProviderManager.html +++ b/docs/module-management.EmailProviderManager.html @@ -24,7 +24,7 @@
@@ -759,7 +759,7 @@

deleteSource:
@@ -900,7 +900,7 @@
Example
-

get(cbopt) → {Promise|undefined}

+

get(cbopt, paramsopt) → {Promise|undefined}

@@ -1022,6 +1022,141 @@
Parameters:
+ + + + params + + + + + +Object + + + + + + + + + <optional>
+ + + + + + + + + + + +

Clients parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
fields + + +Number + + + + + + <optional>
+ + + + + +
+

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields.

+ +
include_fields + + +Number + + + + + + <optional>
+ + + + + +
+

true if the fields specified are to be excluded from the result, false otherwise (defaults to true)

+ +
+ + + + + + @@ -1123,7 +1258,7 @@

updateSource:
@@ -1345,7 +1480,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html index 2495916b4..ecaea5ef5 100644 --- a/docs/module-management.EmailTemplatesManager.html +++ b/docs/module-management.EmailTemplatesManager.html @@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html index eff768fda..59e6fb9d8 100644 --- a/docs/module-management.GuardianManager.html +++ b/docs/module-management.GuardianManager.html @@ -24,7 +24,7 @@
@@ -894,186 +894,6 @@
Example
-
- - - -

createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}

- - - - - -
-

Create a Guardian enrollment ticket.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
cb - - -function - - - - - - <optional>
- - - - - -
-

Callback function.

- -
- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -
management.createGuardianEnrollmentTicket(function (err, ticket) {
-  console.log(ticket);
-});
- -
- -
- -
@@ -1620,7 +1440,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html index a17cf8ff0..a8d359bf4 100644 --- a/docs/module-management.JobsManager.html +++ b/docs/module-management.JobsManager.html @@ -24,7 +24,7 @@
@@ -391,6 +391,81 @@

(inner) + + + +
Type:
+ + + + + + +

+ + + +
+

(inner, constant) usersExportsRestClient :external:RestClient

+ + + + +
+

Provides an abstraction layer for consuming the +Create job to export users endpoint

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + +
@@ -419,6 +494,420 @@

Methods

+
+ + + +

exportUsers(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Export all users to a file using a long running job.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

Users export data.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
connection_id + + +String + + + + + + <optional>
+ + + + + +
+

The connection id of the connection from which users will be exported

+ +
format + + +String + + + + + + <optional>
+ + + + + +
+

The format of the file. Valid values are: "json" and "csv".

+ +
limit + + +Number + + + + + + <optional>
+ + + + + +
+

Limit the number of records.

+ +
fields + + +Array.<Object> + + + + + + <optional>
+ + + + + +
+

A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var data = {
+  connection_id: 'con_0000000000000001',
+  format: 'csv',
+  limit: 5,
+  fields: [
+    {
+      "name": "user_id"
+    },
+    {
+      "name": "name"
+    },
+    {
+      "name": "email"
+    },
+    {
+      "name": "identities[0].connection",
+      "export_as": "provider"
+    },
+    {
+      "name": "user_metadata.some_field"
+    }
+  ]
+}
+
+management.jobs.exportUsers(data, function (err, results) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Retrieved job.
+  console.log(results);
+});
+ +
+ +
+ +
@@ -466,7 +955,7 @@

getSource:
@@ -742,7 +1231,7 @@

importUser
Source:
@@ -1062,7 +1551,7 @@

Example
send_completion_email: false //optional }; -management.jobs.get(params, function (err) { +management.jobs.importUsers(params, function (err) { if (err) { // Handle error. } @@ -1120,7 +1609,7 @@

verifyEmai
Source:
@@ -1360,7 +1849,7 @@

Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html index a476b9d52..c022c6e50 100644 --- a/docs/module-management.LogsManager.html +++ b/docs/module-management.LogsManager.html @@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html index bc804d928..843cb3828 100644 --- a/docs/module-management.ManagementClient.html +++ b/docs/module-management.ManagementClient.html @@ -24,7 +24,7 @@
@@ -2376,7 +2376,7 @@

Source:
@@ -2769,14 +2769,14 @@

Example
-

createConnection(data, cbopt) → {Promise|undefined}

+

createClientGrant(data, cbopt) → {Promise|undefined}

-

Create a new connection.

+

Create an Auth0 client grant.

@@ -2812,7 +2812,7 @@

creat
Source:
@@ -2883,7 +2883,7 @@

Parameters:
-

Connection data object.

+

The client data object.

@@ -2970,12 +2970,12 @@
Returns:
Example
-
management.createConnection(data, function (err) {
+    
management.clientGrants.create(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Conection created.
+  // Client grant created.
 });
@@ -2987,14 +2987,14 @@
Example
-

createDevicePublicKey(data, cbopt) → {Promise|undefined}

+

createConnection(data, cbopt) → {Promise|undefined}

-

Create an Auth0 credential.

+

Create a new connection.

@@ -3030,7 +3030,7 @@

Source:
@@ -3101,7 +3101,7 @@

Parameters:
-

The device credential data object.

+

Connection data object.

@@ -3193,7 +3193,7 @@
Example
// Handle error. } - // Credential created. + // Conection created. });
@@ -3205,14 +3205,14 @@
Example
-

createEmailVerificationTicket(cbopt) → {Promise}

+

createCustomDomain(data, cbopt) → {Promise|undefined}

-

Create an email verification ticket.

+

Create an Auth0 Custom Domain.

@@ -3248,7 +3248,7 @@

Source:
@@ -3292,6 +3292,40 @@
Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

The custom domain data object.

+ + + + + + cb @@ -3355,6 +3389,9 @@
Returns:
Promise +| + +undefined
@@ -3369,15 +3406,12 @@
Returns:
Example
-
var data = {
-  user_id: '{USER_ID}',
-  result_url: '{REDIRECT_URL}' // Optional redirect after the ticket is used.
-};
-
-auth0.createEmailVerificationTicket(data, function (err) {
+    
management.createCustomDomain(data, function (err) {
   if (err) {
     // Handle error.
   }
+
+  // CustomDomain created.
 });
@@ -3389,14 +3423,14 @@
Example
-

createPasswordChangeTicket(cbopt) → {Promise}

+

createDevicePublicKey(data, cbopt) → {Promise|undefined}

-

Create a new password change ticket.

+

Create an Auth0 credential.

@@ -3432,7 +3466,7 @@

Source:
@@ -3476,6 +3510,40 @@
Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

The device credential data object.

+ + + + + + cb @@ -3539,6 +3607,9 @@
Returns:
Promise +| + +undefined
@@ -3553,17 +3624,12 @@
Returns:
Example
-
var params = {
-  result_url: '{REDIRECT_URL}',  // Redirect after using the ticket.
-  user_id: '{USER_ID}',  // Optional.
-  email: '{USER_EMAIL}',  // Optional.
-  new_password: '{PASSWORD}'
-};
-
-auth0.createPasswordChangeTicket(params, function (err) {
+    
management.createConnection(data, function (err) {
   if (err) {
     // Handle error.
   }
+
+  // Credential created.
 });
@@ -3575,14 +3641,14 @@
Example
-

createResourceServer(data, cbopt) → {Promise|undefined}

+

createEmailVerificationTicket(cbopt) → {Promise}

-

Create a new resource server.

+

Create an email verification ticket.

@@ -3618,7 +3684,7 @@

c
Source:
@@ -3662,40 +3728,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

Resource Server data object.

- - - - - - cb @@ -3759,9 +3791,6 @@
Returns:
Promise -| - -undefined
@@ -3776,12 +3805,15 @@
Returns:
Example
-
management.createResourceServer(data, function (err) {
+    
var data = {
+  user_id: '{USER_ID}',
+  result_url: '{REDIRECT_URL}' // Optional redirect after the ticket is used.
+};
+
+auth0.createEmailVerificationTicket(data, function (err) {
   if (err) {
     // Handle error.
   }
-
-  // Resource Server created.
 });
@@ -3793,14 +3825,14 @@
Example
-

createRule(data, cbopt) → {Promise|undefined}

+

createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}

-

Create a new rule.

+

Create a Guardian enrollment ticket.

@@ -3836,7 +3868,7 @@

createRule<
Source:
@@ -3880,40 +3912,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

Rule data object.

- - - - - - cb @@ -3994,12 +3992,8 @@
Returns:
Example
-
management.createRule(data, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Rule created.
+    
management.createGuardianEnrollmentTicket(function (err, ticket) {
+  console.log(ticket);
 });
@@ -4011,14 +4005,14 @@
Example
-

createUser(data, cbopt) → {Promise|undefined}

+

createPasswordChangeTicket(cbopt) → {Promise}

-

Create a new user.

+

Create a new password change ticket.

@@ -4054,7 +4048,7 @@

createUser<
Source:
@@ -4098,40 +4092,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

User data.

- - - - - - cb @@ -4195,9 +4155,6 @@
Returns:
Promise -| - -undefined
@@ -4212,12 +4169,17 @@
Returns:
Example
-
management.createUser(data, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // User created.
+    
var params = {
+  result_url: '{REDIRECT_URL}',  // Redirect after using the ticket.
+  user_id: '{USER_ID}',  // Optional.
+  email: '{USER_EMAIL}',  // Optional.
+  new_password: '{PASSWORD}'
+};
+
+auth0.createPasswordChangeTicket(params, function (err) {
+  if (err) {
+    // Handle error.
+  }
 });
@@ -4229,14 +4191,14 @@
Example
-

deleteAllUsers(cbopt) → {Promise|undefined}

+

createResourceServer(data, cbopt) → {Promise|undefined}

-

Delete all users.

+

Create a new resource server.

@@ -4260,8 +4222,6 @@

deleteA -
Deprecated:
  • This method will be removed in the next major release.
- @@ -4274,7 +4234,7 @@

deleteA
Source:
@@ -4318,6 +4278,40 @@

Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

Resource Server data object.

+ + + + + + cb @@ -4347,7 +4341,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -4398,12 +4392,12 @@
Returns:
Example
-
management.deleteAllUsers(function (err) {
+    
management.createResourceServer(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users deleted
+  // Resource Server created.
 });
@@ -4415,14 +4409,14 @@
Example
-

deleteClient(params, cbopt) → {Promise|undefined}

+

createRule(data, cbopt) → {Promise|undefined}

-

Delete an Auth0 client.

+

Create a new rule.

@@ -4458,7 +4452,7 @@

deleteCli
Source:
@@ -4504,7 +4498,7 @@

Parameters:
- params + data @@ -4529,58 +4523,7 @@
Parameters:
-

Client parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
client_id - - -String - - - - -

Application client ID.

- -
- +

Rule data object.

@@ -4667,12 +4610,12 @@
Returns:
Example
-
management.deleteClient({ client_id: CLIENT_ID }, function (err) {
+    
management.createRule(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Client deleted.
+  // Rule created.
 });
@@ -4684,14 +4627,14 @@
Example
-

deleteConnection(params, cbopt) → {Promise|undefined}

+

createUser(data, cbopt) → {Promise|undefined}

-

Delete an existing connection.

+

Create a new user.

@@ -4727,7 +4670,7 @@

delet
Source:
@@ -4773,7 +4716,7 @@

Parameters:
- params + data @@ -4798,58 +4741,7 @@
Parameters:
-

Connection parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Connection ID.

- -
- +

User data.

@@ -4936,12 +4828,12 @@
Returns:
Example
-
management.deleteConnection({ id: CONNECTION_ID }, function (err) {
+    
management.createUser(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Conection deleted.
+  // User created.
 });
@@ -4953,14 +4845,14 @@
Example
-

deleteDeviceCredential(params, cbopt) → {Promise|undefined}

+

deleteAllUsers(cbopt) → {Promise|undefined}

-

Delete an Auth0 device credential.

+

Delete all users.

@@ -4984,6 +4876,8 @@

Deprecated:
  • This method will be removed in the next major release.
+ @@ -4996,7 +4890,7 @@

Source:
@@ -5042,13 +4936,13 @@

Parameters:
- params + cb -Object +function @@ -5057,6 +4951,8 @@
Parameters:
+ <optional>
+ @@ -5067,119 +4963,32 @@
Parameters:
-

Credential parameters.

+

Callback function

- - - - - - - - + + - + + +
Name
Type
- - - Description - - - - - - - id - - - - -String - - - - - -

Device credential ID.

- - - - - - - - - - +
+
Returns:
- - - cb - - - - - -function - - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function.

- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - +
@@ -5205,14 +5014,12 @@
Returns:
Example
-
var params = { id: CREDENTIAL_ID };
-
-management.deleteDeviceCredential(params, function (err) {
+    
management.deleteAllUsers(function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Credential deleted.
+  // Users deleted
 });
@@ -5224,14 +5031,14 @@
Example
-

deleteEmailProvider(cbopt) → {Promise|undefined}

+

deleteClient(params, cbopt) → {Promise|undefined}

-

Delete email provider.

+

Delete an Auth0 client.

@@ -5267,7 +5074,7 @@

de
Source:
@@ -5311,6 +5118,91 @@

Parameters:
+ + + params + + + + + +Object + + + + + + + + + + + + + + + + + + +

Client parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
client_id + + +String + + + + +

Application client ID.

+ +
+ + + + + + + cb @@ -5391,12 +5283,12 @@
Returns:
Example
-
management.deleteEmailProvider(function (err) {
+    
management.deleteClient({ client_id: CLIENT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Email provider deleted.
+  // Client deleted.
 });
@@ -5408,14 +5300,14 @@
Example
-

deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}

+

deleteClientGrant(params, cbopt) → {Promise|undefined}

-

Delete a user's Guardian enrollment.

+

Delete an Auth0 client grant.

@@ -5451,7 +5343,7 @@

Source:

@@ -5497,7 +5389,7 @@
Parameters:
- data + params @@ -5522,7 +5414,7 @@
Parameters:
-

The Guardian enrollment data object.

+

Client parameters.

@@ -5565,7 +5457,7 @@
Parameters:
-

The Guardian enrollment id.

+

Client grant ID.

@@ -5660,12 +5552,12 @@
Returns:
Example
-
management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
+    
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Email provider deleted.
+  // Grant deleted.
 });
@@ -5677,14 +5569,14 @@
Example
-

deleteResourceServer(params, cbopt) → {Promise|undefined}

+

deleteConnection(params, cbopt) → {Promise|undefined}

-

Delete an existing resource server.

+

Delete an existing connection.

@@ -5720,7 +5612,7 @@

d
Source:
@@ -5791,7 +5683,7 @@

Parameters:
-

Resource Server parameters.

+

Connection parameters.

@@ -5834,7 +5726,7 @@
Parameters:
-

Resource Server ID.

+

Connection ID.

@@ -5929,12 +5821,12 @@
Returns:
Example
-
management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+    
management.deleteConnection({ id: CONNECTION_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Resource Server deleted.
+  // Conection deleted.
 });
@@ -5946,14 +5838,14 @@
Example
-

deleteRule(params, cbopt) → {Promise|undefined}

+

deleteCustomDomain(params, cbopt) → {Promise|undefined}

-

Delete an existing rule.

+

Delete a Custom Domain.

@@ -5989,7 +5881,7 @@

deleteRule<
Source:
@@ -6060,7 +5952,7 @@

Parameters:
-

Rule parameters.

+

Custom Domain parameters.

@@ -6103,7 +5995,7 @@
Parameters:
-

Rule ID.

+

Custom Domain ID.

@@ -6198,12 +6090,12 @@
Returns:
Example
-
auth0.deleteRule({ id: RULE_ID }, function (err) {
+    
management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Rule deleted.
+  // CustomDomain deleted.
 });
@@ -6215,14 +6107,14 @@
Example
-

deleteRulesConfig(params, cbopt) → {Promise|undefined}

+

deleteDeviceCredential(params, cbopt) → {Promise|undefined}

-

Delete rules config.

+

Delete an Auth0 device credential.

@@ -6258,7 +6150,7 @@

dele
Source:
@@ -6329,7 +6221,7 @@

Parameters:
-

Rule Configs parameters.

+

Credential parameters.

@@ -6355,7 +6247,7 @@
Parameters:
- key + id @@ -6372,7 +6264,7 @@
Parameters:
-

Rule Configs key.

+

Device credential ID.

@@ -6467,12 +6359,14 @@
Returns:
Example
-
management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+    
var params = { id: CREDENTIAL_ID };
+
+management.deleteDeviceCredential(params, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Rules Config deleted.
+  // Credential deleted.
 });
@@ -6484,14 +6378,14 @@
Example
-

deleteUser(params, cbopt) → {Promise|undefined}

+

deleteEmailProvider(cbopt) → {Promise|undefined}

-

Delete a user by its id.

+

Delete email provider.

@@ -6527,7 +6421,7 @@

deleteUser<
Source:
@@ -6573,13 +6467,13 @@

Parameters:
- params + cb -Object +function @@ -6588,6 +6482,8 @@
Parameters:
+ <optional>
+ @@ -6598,101 +6494,14 @@
Parameters:
-

The user data object..

+

Callback function.

- - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name
TypeDescription
id - - -String - - - - -

The user id.

- -
- - - - - - - - - - cb - - - - - -function - - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function

- - - - - - - + + + @@ -6736,12 +6545,12 @@
Returns:
Example
-
management.deleteUser({ id: USER_ID }, function (err) {
+    
management.deleteEmailProvider(function (err) {
   if (err) {
     // Handle error.
   }
 
-  // User deleted.
+  // Email provider deleted.
 });
@@ -6753,14 +6562,14 @@
Example
-

deleteUserMultifactor(params, cbopt) → {Promise|undefined}

+

deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}

-

Delete a multifactor provider for a user.

+

Delete a user's Guardian enrollment.

@@ -6796,7 +6605,7 @@

Source:
@@ -6842,7 +6651,7 @@

Parameters:
- params + data @@ -6867,7 +6676,7 @@
Parameters:
-

Data object.

+

The Guardian enrollment data object.

@@ -6910,33 +6719,7 @@
Parameters:
-

The user id.

- - - - - - - - - provider - - - - - -String - - - - - - - - - - -

Multifactor provider.

+

The Guardian enrollment id.

@@ -6980,7 +6763,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -7031,14 +6814,12 @@
Returns:
Example
-
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifactor(params, function (err, user) {
+    
management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  // Email provider deleted.
 });
@@ -7050,14 +6831,14 @@
Example
-

deleteUserMultifcator(params, cbopt) → {Promise|undefined}

+

deleteResourceServer(params, cbopt) → {Promise|undefined}

-

Delete a multifactor provider for a user.

+

Delete an existing resource server.

@@ -7081,10 +6862,6 @@

-
Deprecated:
  • The function name has a typo. -We're shipping this so it doesn't break compatibility. -Use deleteUserMultifactor instead.
- @@ -7097,7 +6874,7 @@

Source:
@@ -7168,7 +6945,7 @@

Parameters:
-

Data object.

+

Resource Server parameters.

@@ -7211,33 +6988,7 @@
Parameters:
-

The user id.

- - - - - - - - - provider - - - - - -String - - - - - - - - - - -

Multifactor provider.

+

Resource Server ID.

@@ -7281,7 +7032,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -7332,14 +7083,12 @@
Returns:
Example
-
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifcator(params, function (err, user) {
+    
management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  // Resource Server deleted.
 });
@@ -7351,14 +7100,14 @@
Example
-

getActiveUsersCount(cbopt) → {Promise|undefined}

+

deleteRule(params, cbopt) → {Promise|undefined}

-

Get a the active users count.

+

Delete an existing rule.

@@ -7394,7 +7143,7 @@

ge
Source:
@@ -7438,6 +7187,91 @@

Parameters:
+ + + params + + + + + +Object + + + + + + + + + + + + + + + + + + +

Rule parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Rule ID.

+ +
+ + + + + + + cb @@ -7518,12 +7352,12 @@
Returns:
Example
-
management.getActiveUsersCount(function (err, usersCount) {
+    
auth0.deleteRule({ id: RULE_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  console.log(usersCount);
+  // Rule deleted.
 });
@@ -7535,14 +7369,14 @@
Example
-

getBlacklistedTokens(cbopt) → {Promise|undefined}

+

deleteRulesConfig(params, cbopt) → {Promise|undefined}

-

Get all blacklisted tokens.

+

Delete rules config.

@@ -7578,7 +7412,7 @@

g
Source:
@@ -7624,13 +7458,13 @@

Parameters:
- cb + params -function +Object @@ -7639,8 +7473,6 @@
Parameters:
- <optional>
- @@ -7651,7 +7483,94 @@
Parameters:
-

Callback function.

+

Rule Configs parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +String + + + + +

Rule Configs key.

+ +
+ + + + + + + + + + cb + + + + + +function + + + + + + + + + <optional>
+ + + + + + + + + + + +

Callback function.

@@ -7702,8 +7621,12 @@
Returns:
Example
-
management.getBlacklistedTokens(function (err, tokens) {
-  console.log(tokens.length);
+    
management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Rules Config deleted.
 });
@@ -7715,14 +7638,14 @@
Example
-

getClient(params, cbopt) → {Promise|undefined}

+

deleteUser(params, cbopt) → {Promise|undefined}

-

Get an Auth0 client.

+

Delete a user by its id.

@@ -7758,7 +7681,7 @@

getClientSource:
@@ -7829,7 +7752,7 @@
Parameters:
-

Client parameters.

+

The user data object..

@@ -7855,7 +7778,7 @@
Parameters:
- client_id + id @@ -7872,7 +7795,7 @@
Parameters:
-

Application client ID.

+

The user id.

@@ -7916,7 +7839,7 @@
Parameters:
-

Callback function.

+

Callback function

@@ -7967,12 +7890,12 @@
Returns:
Example
-
management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+    
management.deleteUser({ id: USER_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  console.log(client);
+  // User deleted.
 });
@@ -7984,122 +7907,14 @@
Example
-

getClientInfo() → {Object}

- - - - - -
-

Return an object with information about the current client,

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Object - - -
-
- - -
-

Object containing client information.

-
- - -
- - - -

- - -
- - - -

getClients(paramsopt, cbopt) → {Promise|undefined}

+

deleteUserMultifactor(params, cbopt) → {Promise|undefined}

-

Get all Auth0 clients.

+

Delete a multifactor provider for a user.

@@ -8135,7 +7950,7 @@

getClients<
Source:
@@ -8196,8 +8011,6 @@

Parameters:
- <optional>
- @@ -8208,7 +8021,7 @@
Parameters:
-

Clients parameters.

+

Data object.

@@ -8222,8 +8035,6 @@
Parameters:
Type - Attributes - @@ -8236,34 +8047,24 @@
Parameters:
- per_page + id -Number +String - - - <optional>
- - - - - - - -

Number of results per page.

+

The user id.

@@ -8272,34 +8073,24 @@
Parameters:
- page + provider -Number +String - - - <optional>
- - - - - - - -

Page number, zero indexed.

+

Multifactor provider.

@@ -8343,7 +8134,7 @@
Parameters:
-

Callback function.

+

Callback function

@@ -8394,20 +8185,14 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
 
-management.getClients(params, function (err, clients) {
-  console.log(clients.length);
+management.deleteUserMultifactor(params, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Users accounts unlinked.
 });
@@ -8419,14 +8204,14 @@
Example
-

getConnection(params, cbopt) → {Promise|undefined}

+

deleteUserMultifcator(params, cbopt) → {Promise|undefined}

-

Get an Auth0 connection.

+

Delete a multifactor provider for a user.

@@ -8450,6 +8235,10 @@

getConne +
Deprecated:
  • The function name has a typo. +We're shipping this so it doesn't break compatibility. +Use deleteUserMultifactor instead.
+ @@ -8462,7 +8251,7 @@

getConne
Source:
@@ -8533,7 +8322,7 @@

Parameters:
-

Connection parameters.

+

Data object.

@@ -8576,7 +8365,33 @@
Parameters:
-

Connection ID.

+

The user id.

+ + + + + + + + + provider + + + + + +String + + + + + + + + + + +

Multifactor provider.

@@ -8620,7 +8435,7 @@
Parameters:
-

Callback function.

+

Callback function

@@ -8671,12 +8486,14 @@
Returns:
Example
-
management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
+    
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
+
+management.deleteUserMultifcator(params, function (err, user) {
   if (err) {
     // Handle error.
   }
 
-  console.log(connection);
+  // Users accounts unlinked.
 });
@@ -8688,14 +8505,14 @@
Example
-

getConnections(paramsopt, cbopt) → {Promise|undefined}

+

exportUsers(data, cbopt) → {Promise|undefined}

-

Get all connections.

+

Export all users to a file using a long running job.

@@ -8731,7 +8548,7 @@

getConn
Source:
@@ -8777,7 +8594,7 @@

Parameters:
- params + data @@ -8792,8 +8609,6 @@
Parameters:
- <optional>
- @@ -8804,7 +8619,7 @@
Parameters:
-

Connections params.

+

Users export data.

@@ -8832,13 +8647,13 @@
Parameters:
- per_page + connection_id -Number +String @@ -8859,7 +8674,7 @@
Parameters:
-

Number of results per page.

+

The connection id of the connection from which users will be exported

@@ -8868,7 +8683,43 @@
Parameters:
- page + format + + + + + +String + + + + + + + + + <optional>
+ + + + + + + + + + + +

The format of the file. Valid values are: "json" and "csv".

+ + + + + + + + + limit @@ -8895,7 +8746,43 @@
Parameters:
-

Page number, zero indexed.

+

Limit the number of records.

+ + + + + + + + + fields + + + + + +Array.<Object> + + + + + + + + + <optional>
+ + + + + + + + + + + +

A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported.

@@ -8990,20 +8877,37 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
var data = {
+  connection_id: 'con_0000000000000001',
+  format: 'csv',
+  limit: 5,
+  fields: [
+    {
+      "name": "user_id"
+    },
+    {
+      "name": "name"
+    },
+    {
+      "name": "email"
+    },
+    {
+      "name": "identities[0].connection",
+      "export_as": "provider"
+    },
+    {
+      "name": "user_metadata.some_field"
+    }
+  ]
+}
+
+management.exportUsers(data, function (err, results) {
+  if (err) {
+    // Handle error.
+  }
 
-management.getConnections(params, function (err, connections) {
-  console.log(connections.length);
+  // Retrieved job.
+  console.log(results);
 });
@@ -9015,14 +8919,14 @@
Example
-

getDailyStats(params, cbopt) → {Promise|undefined}

+

getActiveUsersCount(cbopt) → {Promise|undefined}

-

Get the daily stats.

+

Get a the active users count.

@@ -9058,7 +8962,7 @@

getDaily
Source:
@@ -9104,13 +9008,13 @@

Parameters:
- params + cb -Object +function @@ -9119,6 +9023,8 @@
Parameters:
+ <optional>
+ @@ -9129,156 +9035,43 @@
Parameters:
-

Stats parameters.

+

Callback function.

- - - - - - - - + + - + + +
Name
Type
- - - Description - - - - - - - from - - - - -String - - - - - -

The first day in YYYYMMDD format.

- - - - - - - to - - - - -String +
+
Returns:
+ - - +
+
+ Type: +
+
+ +Promise +| - - - - - -

The last day in YYYYMMDD format.

- - - - - - - - - - - - - - - - - cb - - - - - -function - - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function.

- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined +undefined
@@ -9293,17 +9086,12 @@
Returns:
Example
-
var params = {
-  from: '{YYYYMMDD}',  // First day included in the stats.
-  to: '{YYYYMMDD}'  // Last day included in the stats.
-};
-
-management.getDaily(params, function (err, stats) {
+    
management.getActiveUsersCount(function (err, usersCount) {
   if (err) {
     // Handle error.
   }
 
-  console.log(stats);
+  console.log(usersCount);
 });
@@ -9315,14 +9103,14 @@
Example
-

getDeviceCredentials(cbopt) → {Promise|undefined}

+

getBlacklistedTokens(cbopt) → {Promise|undefined}

-

Get all Auth0 credentials.

+

Get all blacklisted tokens.

@@ -9358,7 +9146,7 @@

g
Source:
@@ -9482,8 +9270,8 @@

Returns:
Example
-
management.getDeviceCredentials(function (err, credentials) {
-  console.log(credentials.length);
+    
management.getBlacklistedTokens(function (err, tokens) {
+  console.log(tokens.length);
 });
@@ -9495,14 +9283,14 @@
Example
-

getEmailProvider(cbopt) → {Promise|undefined}

+

getClient(params, cbopt) → {Promise|undefined}

-

Get the email provider.

+

Get an Auth0 client.

@@ -9538,7 +9326,7 @@

getEm
Source:
@@ -9582,6 +9370,91 @@

Parameters:
+ + + params + + + + + +Object + + + + + + + + + + + + + + + + + + +

Client parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
client_id + + +String + + + + +

Application client ID.

+ +
+ + + + + + + cb @@ -9662,8 +9535,12 @@
Returns:
Example
-
management.getEmailProvider(function (err, provider) {
-  console.log(provider.length);
+    
management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(client);
 });
@@ -9675,14 +9552,14 @@
Example
-

getGuardianEnrollment(data, cbopt) → {Promise|undefined}

+

getClientGrants(paramsopt, cbopt) → {Promise|undefined}

-

Get a single Guardian enrollment.

+

Get all Auth0 Client Grants.

@@ -9718,7 +9595,7 @@

Source:
@@ -9764,7 +9641,7 @@

Parameters:
- data + params @@ -9779,6 +9656,8 @@
Parameters:
+ <optional>
+ @@ -9789,7 +9668,7 @@
Parameters:
-

The Guardian enrollment data object.

+

Client Grants parameters.

@@ -9803,6 +9682,8 @@
Parameters:
Type + Attributes + @@ -9815,32 +9696,34 @@
Parameters:
- id + per_page -String +Number + + + <optional>
+ - + - -

The Guardian enrollment id.

- - + + - - - + + +

Number of results per page.

@@ -9849,13 +9732,13 @@
Parameters:
- cb + page -function +Number @@ -9876,7 +9759,7 @@
Parameters:
-

Callback function.

+

Page number, zero indexed.

@@ -9885,6 +9768,53 @@
Parameters:
+ + + + + + + + + cb + + + + + +function + + + + + + + + + <optional>
+ + + + + + + + + + + +

Callback function.

+ + + + + + + + + + + @@ -9895,9 +9825,6 @@
Parameters:
- - -
Returns:
@@ -9927,8 +9854,20 @@
Returns:
Example
-
management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
-  console.log(enrollment);
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getClientGrants(params, function (err, grants) {
+  console.log(grants.length);
 });
@@ -9940,14 +9879,14 @@
Example
-

getGuardianEnrollments(data, cbopt) → {Promise|undefined}

+

getClientInfo() → {Object}

-

Get a list of a user's Guardian enrollments.

+

Return an object with information about the current client,

@@ -9983,7 +9922,115 @@

Source:
+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Object + + +
+
+ + +
+

Object containing client information.

+
+ + +
+ + + +
+ + +
+ + + +

getClients(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 clients.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -10029,7 +10076,7 @@
Parameters:
- data + params @@ -10044,6 +10091,8 @@
Parameters:
+ <optional>
+ @@ -10054,7 +10103,7 @@
Parameters:
-

The user data object.

+

Clients parameters.

@@ -10068,6 +10117,8 @@
Parameters:
Type + Attributes + @@ -10080,24 +10131,70 @@
Parameters:
- id + per_page -String +Number + + + <optional>
+ + + + + + + -

The user id.

+

Number of results per page.

+ + + + + + + + + page + + + + + +Number + + + + + + + + + <optional>
+ + + + + + + + + + + +

Page number, zero indexed.

@@ -10192,8 +10289,20 @@
Returns:
Example
-
management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
-  console.log(enrollments);
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getClients(params, function (err, clients) {
+  console.log(clients.length);
 });
@@ -10205,14 +10314,14 @@
Example
-

getJob(params, cbopt) → {Promise|undefined}

+

getConnection(params, cbopt) → {Promise|undefined}

-

Get a job by its ID.

+

Get an Auth0 connection.

@@ -10248,7 +10357,7 @@

getJobSource:
@@ -10319,7 +10428,7 @@
Parameters:
-

Job parameters.

+

Connection parameters.

@@ -10362,7 +10471,7 @@
Parameters:
-

Job ID.

+

Connection ID.

@@ -10457,17 +10566,12 @@
Returns:
Example
-
var params = {
-  id: '{JOB_ID}'
-};
-
-management.getJob(params, function (err, job) {
+    
management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
   if (err) {
     // Handle error.
   }
 
-  // Retrieved job.
-  console.log(job);
+  console.log(connection);
 });
@@ -10479,14 +10583,14 @@
Example
-

getLog(params, cbopt) → {Promise|undefined}

+

getConnections(paramsopt, cbopt) → {Promise|undefined}

-

Get an Auth0 log.

+

Get all connections.

@@ -10522,7 +10626,7 @@

getLogSource:
@@ -10583,6 +10687,8 @@
Parameters:
+ <optional>
+ @@ -10593,7 +10699,7 @@
Parameters:
-

Log parameters.

+

Connections params.

@@ -10607,6 +10713,8 @@
Parameters:
Type + Attributes + @@ -10619,24 +10727,70 @@
Parameters:
- id + per_page -String +Number + + + <optional>
+ + + + + + + -

Event ID.

+

Number of results per page.

+ + + + + + + + + page + + + + + +Number + + + + + + + + + <optional>
+ + + + + + + + + + + +

Page number, zero indexed.

@@ -10731,12 +10885,20 @@
Returns:
Example
-
management.getLog({ id: EVENT_ID }, function (err, log) {
-  if (err) {
-    // Handle error.
-  }
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
 
-  console.log(log);
+management.getConnections(params, function (err, connections) {
+  console.log(connections.length);
 });
@@ -10748,14 +10910,14 @@
Example
-

getLogs(paramsopt, cbopt) → {Promise|undefined}

+

getCustomDomain(params, cbopt) → {Promise|undefined}

-

Get all logs.

+

Get a Custom Domain.

@@ -10791,7 +10953,7 @@

getLogsSource:
@@ -10852,8 +11014,6 @@
Parameters:
- <optional>
- @@ -10864,7 +11024,7 @@
Parameters:
-

Logs params.

+

Custom Domain parameters.

@@ -10878,8 +11038,6 @@
Parameters:
Type - Attributes - @@ -10892,7 +11050,7 @@
Parameters:
- q + id @@ -10905,21 +11063,19 @@
Parameters:
- - - <optional>
- - + + +

Custom Domain ID.

- - + + - + + + - -

Search Criteria using Query String Syntax

@@ -10928,13 +11084,13 @@
Parameters:
- page + cb -Number +function @@ -10955,238 +11111,134 @@
Parameters:
-

Page number. Zero based

+

Callback function.

+ + - - - per_page - - - - -Number - - - - - - <optional>
- - - - - - - -

The amount of entries per page

- - - - - - - sort - - - - -String - - +
+
Returns:
- - - - <optional>
- + - +
+
+ Type: +
+
+ +Promise +| - - - +undefined - - -

The field to use for sorting.

- - - +
+
+ +
- - - fields - - - - -String +
+
Example
- - +
management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
+  if (err) {
+    // Handle error.
+  }
 
-            
-                
-                
-                    <optional>
- + console.log(customDomain); +});
- +
- - +

+ +
- + - -

A comma separated list of fields to include or exclude

- - - +

getCustomDomains() → {Promise|undefined}

- - - include_fields - - - - -Boolean +
+

Get all Auth0 CustomDomains.

+
- - - - - - <optional>
- - - - - - +
- -

true if the fields specified are to be included in the result, false otherwise.

- - - + - - - include_totals - + - - - -Boolean + + - - - - - - - <optional>
- + - + - - - + - + - -

true if a query summary must be included in the result, false otherwise. Default false

- - - + - - - - - + + +
Source:
+
- - - cb - + - - - -function + + +
- - - - - - <optional>
- - - - - - - -

Callback function.

- - - - - - @@ -11230,20 +11282,8 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings and the search query. If pagination options are - not present, the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 2
-};
-
-management.getLogs(params, function (err, logs) {
-  console.log(logs.length);
+    
management.getCustomDomains(function (err, customDomains) {
+  console.log(customDomains.length);
 });
@@ -11255,14 +11295,14 @@
Example
-

getResourceServer(params, cbopt) → {Promise|undefined}

+

getDailyStats(params, cbopt) → {Promise|undefined}

-

Get a Resource Server.

+

Get the daily stats.

@@ -11298,7 +11338,7 @@

getR
Source:
@@ -11369,7 +11409,7 @@

Parameters:
-

Resource Server parameters.

+

Stats parameters.

@@ -11395,7 +11435,7 @@
Parameters:
- id + from @@ -11412,7 +11452,33 @@
Parameters:
-

Resource Server ID.

+

The first day in YYYYMMDD format.

+ + + + + + + + + to + + + + + +String + + + + + + + + + + +

The last day in YYYYMMDD format.

@@ -11507,12 +11573,17 @@
Returns:
Example
-
management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+    
var params = {
+  from: '{YYYYMMDD}',  // First day included in the stats.
+  to: '{YYYYMMDD}'  // Last day included in the stats.
+};
+
+management.getDaily(params, function (err, stats) {
   if (err) {
     // Handle error.
   }
 
-  console.log(resourceServer);
+  console.log(stats);
 });
@@ -11524,14 +11595,14 @@
Example
-

getResourceServers(paramsopt, cbopt) → {Promise|undefined}

+

getDeviceCredentials(cbopt) → {Promise|undefined}

-

Get all resource servers.

+

Get all Auth0 credentials.

@@ -11567,7 +11638,7 @@

get
Source:
@@ -11613,13 +11684,13 @@

Parameters:
- params + cb -Object +function @@ -11640,226 +11711,79 @@
Parameters:
-

Resource Servers parameters.

+

Callback function.

- + + - - - - - - + + +
Name
- Type - - Attributes - - - Description - - - - - - - per_page - - - - -Number - - - - - - <optional>
- - - - - - - -

Number of results per page.

- - - +
+
Returns:
- + - - - page - +
+
+ Type: +
+
+ +Promise +| - - - -Number +undefined - - +
+
- - - - <optional>
- - + +
- - - - - -

Page number, zero indexed.

- - - +
+
Example
+ +
management.getDeviceCredentials(function (err, credentials) {
+  console.log(credentials.length);
+});
+ +
+ +
+ + +
- - - - - +

getEmailProvider(cbopt, paramsopt) → {Promise|undefined}

- - - cb - - - - -function - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function.

- - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - - -
-
Example
- -

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
-
-management.getResourceServers(params, function (err, resourceServers) {
-  console.log(resourceServers.length);
-});
- -
- -
- - -
- - - -

getRule(params, cbopt) → {Promise|undefined}

- - - - - -
-

Get an Auth0 rule.

-
+
+

Get the email provider.

+
@@ -11894,7 +11818,7 @@

getRuleSource:
@@ -11938,6 +11862,42 @@
Parameters:
+ + + cb + + + + + +function + + + + + + + + + <optional>
+ + + + + + + + + + + +

Callback function.

+ + + + + + params @@ -11955,6 +11915,8 @@
Parameters:
+ <optional>
+ @@ -11965,7 +11927,7 @@
Parameters:
-

Rule parameters.

+

Clients parameters.

@@ -11979,6 +11941,8 @@
Parameters:
Type + Attributes + @@ -11991,32 +11955,34 @@
Parameters:
- id + fields -String +Number + + + <optional>
+ - + - -

Rule ID.

- - + + - - - + + +

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields.

@@ -12025,13 +11991,13 @@
Parameters:
- cb + include_fields -function +Number @@ -12052,7 +12018,15 @@
Parameters:
-

Callback function.

+

true if the fields specified are to be excluded from the result, false otherwise (defaults to true)

+ + + + + + + + @@ -12103,12 +12077,8 @@
Returns:
Example
-
management.getRule({ id: RULE_ID }, function (err, rule) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(rule);
+    
management.getEmailProvider(function (err, provider) {
+  console.log(provider.length);
 });
@@ -12120,14 +12090,14 @@
Example
-

getRules(paramsopt, cbopt) → {Promise|undefined}

+

getGuardianEnrollment(data, cbopt) → {Promise|undefined}

-

Get all rules.

+

Get a single Guardian enrollment.

@@ -12163,7 +12133,7 @@

getRulesSource:
@@ -12209,7 +12179,7 @@
Parameters:
- params + data @@ -12224,8 +12194,6 @@
Parameters:
- <optional>
- @@ -12236,7 +12204,7 @@
Parameters:
-

Rules parameters.

+

The Guardian enrollment data object.

@@ -12250,8 +12218,6 @@
Parameters:
Type - Attributes - @@ -12264,70 +12230,24 @@
Parameters:
- per_page - - - - - -Number - - - - - - - - - <optional>
- - - - - - - - - - - -

Number of results per page.

- - - - - - - - - page + id -Number +String - - - <optional>
- - - - - - - -

Page number, zero indexed.

+

The Guardian enrollment id.

@@ -12422,20 +12342,8 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
-
-management.getRules(params, function (err, rules) {
-  console.log(rules.length);
+    
management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
+  console.log(enrollment);
 });
@@ -12447,14 +12355,14 @@
Example
-

getRulesConfigs() → {Promise|undefined}

+

getGuardianEnrollments(data, cbopt) → {Promise|undefined}

-

Get rules config.

+

Get a list of a user's Guardian enrollments.

@@ -12490,7 +12398,7 @@

getRul
Source:
@@ -12509,128 +12417,61 @@

getRul +

Parameters:
+ - - - - - - - - - - - -
-
Returns:
- + + + - -
-
- Type: -
-
+
-Promise -| - -undefined - - - - - - - - - - - -
-
Example
- -
management.getRulesConfigs(function (err, rulesConfigs) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Get Rules Configs.
-});
-
+ - - -
- - - -

getTenantSettings(cbopt) → {Promise|undefined}

- - - - - -
-

Get the tenant settings..

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- +
+ - + - + + + + - + + + + + + + + + -
Parameters:
- + + + + + @@ -12734,12 +12607,8 @@
Returns:
Example
-
management.getSettings(function (err, settings) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(settings);
+    
management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
+  console.log(enrollments);
 });
@@ -12751,14 +12620,14 @@
Example
-

getUser(data, cbopt) → {Promise|undefined}

+

getJob(params, cbopt) → {Promise|undefined}

-

Get a user by its id.

+

Get a job by its ID.

@@ -12794,7 +12663,7 @@

getUserSource:
@@ -12840,7 +12709,7 @@
Parameters:

- + @@ -13003,8 +12872,17 @@
Returns:
Example
-
management.getUser({ id: USER_ID }, function (err, user) {
-  console.log(user);
+    
var params = {
+  id: '{JOB_ID}'
+};
+
+management.getJob(params, function (err, job) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Retrieved job.
+  console.log(job);
 });
@@ -13016,14 +12894,14 @@
Example
-

getUserLogs(params, cbopt) → {Promise|undefined}

+

getLog(params, cbopt) → {Promise|undefined}

-

Get user's log events.

+

Get an Auth0 log.

@@ -13059,7 +12937,7 @@

getUserLog
Source:
@@ -13130,7 +13008,7 @@

Parameters:
+ + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + +

The user data object.

+ + @@ -12642,8 +12483,6 @@
Parameters:
- - @@ -12654,6 +12493,40 @@
Parameters:
+ + + + + + + + + + + + + + + + +
TypeAttributes
id + + +String + + + + +

The user id.

+ +
+ + +
cb
dataparams @@ -12865,7 +12734,7 @@
Parameters:
-

The user data object.

+

Job parameters.

@@ -12908,7 +12777,7 @@
Parameters:
-

The user id.

+

Job ID.

-

Get logs data.

+

Log parameters.

@@ -13173,7 +13051,15 @@
Parameters:
-

User id.

+

Event ID.

+ +
+ @@ -13182,24 +13068,2952 @@
Parameters:
- per_page + cb -Number +function + + + <optional>
+ + + + + + + -

Number of results per page.

+

Callback function.

+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getLog({ id: EVENT_ID }, function (err, log) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(log);
+});
+ +
+ +
+ + +
+ + + +

getLogs(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all logs.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Logs params.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
q + + +String + + + + + + <optional>
+ + + + + +
+

Search Criteria using Query String Syntax

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number. Zero based

+ +
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

The amount of entries per page

+ +
sort + + +String + + + + + + <optional>
+ + + + + +
+

The field to use for sorting.

+ +
fields + + +String + + + + + + <optional>
+ + + + + +
+

A comma separated list of fields to include or exclude

+ +
include_fields + + +Boolean + + + + + + <optional>
+ + + + + +
+

true if the fields specified are to be included in the result, false otherwise.

+ +
include_totals + + +Boolean + + + + + + <optional>
+ + + + + +
+

true if a query summary must be included in the result, false otherwise. Default false

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings and the search query. If pagination options are + not present, the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 2
+};
+
+management.getLogs(params, function (err, logs) {
+  console.log(logs.length);
+});
+ +
+ +
+ + +
+ + + +

getResourceServer(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a Resource Server.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Resource Server parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Resource Server ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(resourceServer);
+});
+ +
+ +
+ + +
+ + + +

getResourceServers(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all resource servers.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Resource Servers parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getResourceServers(params, function (err, resourceServers) {
+  console.log(resourceServers.length);
+});
+ +
+ +
+ + +
+ + + +

getRule(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get an Auth0 rule.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Rule parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Rule ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getRule({ id: RULE_ID }, function (err, rule) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(rule);
+});
+ +
+ +
+ + +
+ + + +

getRules(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all rules.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Rules parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getRules(params, function (err, rules) {
+  console.log(rules.length);
+});
+ +
+ +
+ + +
+ + + +

getRulesConfigs() → {Promise|undefined}

+ + + + + +
+

Get rules config.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getRulesConfigs(function (err, rulesConfigs) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Get Rules Configs.
+});
+ +
+ +
+ + +
+ + + +

getTenantSettings(cbopt) → {Promise|undefined}

+ + + + + +
+

Get the tenant settings..

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getSettings(function (err, settings) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(settings);
+});
+ +
+ +
+ + +
+ + + +

getUser(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a user by its id.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

The user data object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The user id.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getUser({ id: USER_ID }, function (err, user) {
+  console.log(user);
+});
+ +
+ +
+ + +
+ + + +

getUserLogs(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get user's log events.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Get logs data.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

User id.

+ +
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
sort + + +String + + + + +

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
+
+management.getUserLogs(params, function (err, logs) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(logs);
+});
+ +
+ +
+ + +
+ + + +

getUsers(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all users.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Users params.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13217,24 +16031,235 @@
Parameters:
Number - - + + + + + + + + + + + + + + +
NameTypeAttributesDescription
search_engine + + +Number + + + + + + <optional>
+ + + + + +
+

The version of the search engine to use.

+ +
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  search_engine: 'v3',
+  per_page: 10,
+  page: 0
+};
+
+auth0.getUsers(params, function (err, users) {
+  console.log(users.length);
+});
+ +
+ +
+ + +
+ + + +

getUsersByEmail(emailopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get users for a given email address

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + - + + + - + - - + + + + - + - - - - - - - - - - - - - - - + + - - - - -
NameTypeAttributes -

Page number, zero indexed.

- -
Description
sortemail @@ -13247,45 +16272,21 @@
Parameters:
-

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+
-
include_totals - + <optional>
-Boolean + - -
-

true if a query summary must be included in the result, false otherwise. Default false;

- -
- +

Email Address of users to locate

@@ -13372,14 +16373,13 @@
Returns:
Example
-
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
-
-management.getUserLogs(params, function (err, logs) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(logs);
+        

+ This method takes an email address as the first argument, + and returns all users with that email address +

+ +
auth0.getUsersByEmail(email, function (err, users) {
+  console.log(users);
 });
@@ -13391,14 +16391,15 @@
Example
-

getUsers(paramsopt, cbopt) → {Promise|undefined}

+

importUsers(data, cbopt) → {Promise|undefined}

-

Get all users.

+

Given a path to a file and a connection id, create a new job that imports the +users contained in the file and associate them with the given connection.

@@ -13434,7 +16435,7 @@

getUsersSource:
@@ -13480,7 +16481,7 @@
Parameters:
- params + data @@ -13495,8 +16496,6 @@
Parameters:
- <optional>
- @@ -13507,7 +16506,7 @@
Parameters:
-

Users params.

+

Users import data.

@@ -13521,8 +16520,6 @@
Parameters:
Type - Attributes - @@ -13535,70 +16532,24 @@
Parameters:
- search_engine - - - - - -Number - - - - - - - - - <optional>
- - - - - - - - - - - -

The version of the search engine to use.

- - - - - - - - - per_page + connectionId -Number +String - - - <optional>
- - - - - - - -

Number of results per page.

+

Connection for the users insertion.

@@ -13607,34 +16558,24 @@
Parameters:
- page + users -Number +String - - - <optional>
- - - - - - - -

Page number, zero indexed.

+

Path to the users data file.

@@ -13729,21 +16670,15 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  search_engine: 'v3',
-  per_page: 10,
-  page: 0
+    
var params = {
+  connection_id: '{CONNECTION_ID}',
+  users: '{PATH_TO_USERS_FILE}'
 };
 
-auth0.getUsers(params, function (err, users) {
-  console.log(users.length);
+management.get(params, function (err) {
+  if (err) {
+    // Handle error.
+  }
 });
@@ -13755,14 +16690,14 @@
Example
-

getUsersByEmail(emailopt, cbopt) → {Promise|undefined}

+

linkUsers(userId, params, cbopt) → {Promise|undefined}

-

Get users for a given email address

+

Link the user with another account.

@@ -13798,7 +16733,7 @@

getUse
Source:
@@ -13817,8 +16752,95 @@

getUse -

Parameters:
- +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13958,13 +17002,18 @@
Returns:
Example
-

- This method takes an email address as the first argument, - and returns all users with that email address -

- -
auth0.getUsersByEmail(email, function (err, users) {
-  console.log(users);
+    
var userId = 'USER_ID';
+var params = {
+  user_id: 'OTHER_USER_ID',
+  connection_id: 'CONNECTION_ID'
+};
+
+management.linkUsers(userId, params, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Users linked.
 });
@@ -13976,15 +17025,14 @@
Example
-

importUsers(data, cbopt) → {Promise|undefined}

+

regenerateRecoveryCode(data, cbopt) → {Promise|undefined}

-

Given a path to a file and a connection id, create a new job that imports the -users contained in the file and associate them with the given connection.

+

Generate new Guardian recovery code.

@@ -14020,7 +17068,7 @@

importUser
Source:
@@ -14091,7 +17139,7 @@

Parameters:
- - - - - - - - - - - - - - - - - + @@ -14255,15 +17277,8 @@
Returns:
Example
-
var params = {
-  connection_id: '{CONNECTION_ID}',
-  users: '{PATH_TO_USERS_FILE}'
-};
-
-management.get(params, function (err) {
-  if (err) {
-    // Handle error.
-  }
+    
management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
+  console.log(newRecoveryCode);
 });
@@ -14275,14 +17290,14 @@
Example
-

linkUsers(userId, params, cbopt) → {Promise|undefined}

+

sendEmailVerification(data, cbopt) → {Promise|undefined}

-

Link the user with another account.

+

Send a verification email to a user.

@@ -14318,7 +17333,7 @@

linkUsersSource:
@@ -14364,41 +17379,7 @@
Parameters:

- - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - @@ -14587,18 +17542,14 @@
Returns:
Example
-
var userId = 'USER_ID';
-var params = {
-  user_id: 'OTHER_USER_ID',
-  connection_id: 'CONNECTION_ID'
+    
var params = {
+	user_id: '{USER_ID}'
 };
 
-management.linkUsers(userId, params, function (err, user) {
+management.sendEmailVerification(function (err) {
   if (err) {
     // Handle error.
   }
-
-  // Users linked.
 });
@@ -14610,14 +17561,14 @@
Example
-

regenerateRecoveryCode(data, cbopt) → {Promise|undefined}

+

setRulesConfig(params, data, cbopt) → {Promise|undefined}

-

Generate new Guardian recovery code.

+

Set a new rules config.

@@ -14653,7 +17604,7 @@

Source:
@@ -14672,8 +17623,61 @@

Parameters:

- +
Parameters:
+ + +
NameTypeAttributesDescription
userId + + +String + + + + + + + + + + +

ID of the primary user.

+ +
params + + +Object + + + + + + + + + + +

Secondary user data.

+ + @@ -13830,8 +16852,6 @@
Parameters:
- - @@ -13844,7 +16864,7 @@
Parameters:
- + - + + + + + + + + + +String + + + + + + + + + +
TypeAttributes
emailuser_id @@ -13857,21 +16877,45 @@
Parameters:
- - <optional>
- + + +
+

ID of the user to be linked.

+
connection_id + - -

Email Address of users to locate

+

ID of the connection to be used.

+ +
+
-

Users import data.

+

The user data object.

@@ -14117,33 +17165,7 @@
Parameters:
connectionId - - -String - - - - -

Connection for the users insertion.

- -
usersid @@ -14160,7 +17182,7 @@
Parameters:
-

Path to the users data file.

+

The user id.

userId - - -String - - - - - - - - - - -

ID of the primary user.

- -
paramsdata @@ -14423,7 +17404,7 @@
Parameters:
-

Secondary user data.

+

User data object.

@@ -14466,33 +17447,7 @@
Parameters:
-

ID of the user to be linked.

- -
connection_id - - -String - - - - -

ID of the connection to be used.

+

ID of the user to be verified.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14724,7 +17760,7 @@
Parameters:
- + @@ -14862,8 +17898,15 @@
Returns:
Example
-
management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
-  console.log(newRecoveryCode);
+    
var params = { key: RULE_CONFIG_KEY };
+var data =   { value: RULES_CONFIG_VALUE };
+
+management.setRulesConfig(params, data, function (err, rulesConfig) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Rules Config set.
 });
@@ -14875,14 +17918,14 @@
Example
-

sendEmailVerification(data, cbopt) → {Promise|undefined}

+

unlinkUsers(params, cbopt) → {Promise|undefined}

-

Send a verification email to a user.

+

Unlink the given accounts.

@@ -14918,7 +17961,7 @@

Source:
@@ -14964,7 +18007,7 @@

Parameters:
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15032,7 +18127,7 @@
Parameters:
@@ -15127,14 +18222,14 @@
Returns:
Example
-
var params = {
-	user_id: '{USER_ID}'
-};
+    
var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
 
-management.sendEmailVerification(function (err) {
+management.unlinkUsers(params, function (err, user) {
   if (err) {
     // Handle error.
   }
+
+  // Users accounts unlinked.
 });
@@ -15146,14 +18241,14 @@
Example
-

setRulesConfig(params, data, cbopt) → {Promise|undefined}

+

updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}

-

Set a new rules config.

+

Update the app metadata for a user.

@@ -15189,7 +18284,7 @@

setRule
Source:
@@ -15260,7 +18355,7 @@

Parameters:
- + @@ -15320,7 +18415,7 @@
Parameters:
- + @@ -15432,7 +18476,7 @@
Parameters:
@@ -15483,15 +18527,18 @@
Returns:
Example
-
var params = { key: RULE_CONFIG_KEY };
-var data =   { value: RULES_CONFIG_VALUE };
+    
var params = { id: USER_ID };
+var metadata = {
+  foo: 'bar'
+};
 
-management.setRulesConfig(params, data, function (err, rulesConfig) {
+management.updateAppMetadata(params, metadata, function (err, user) {
   if (err) {
     // Handle error.
   }
 
-  // Rules Config set.
+  // Updated user.
+  console.log(user);
 });
@@ -15503,14 +18550,14 @@
Example
-

unlinkUsers(params, cbopt) → {Promise|undefined}

+

updateClient(params, data, cbopt) → {Promise|undefined}

-

Unlink the given accounts.

+

Update an Auth0 client.

@@ -15546,7 +18593,7 @@

unlinkUser
Source:
@@ -15617,7 +18664,7 @@

Parameters:
- + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Rule Config parameters.

+ + @@ -14685,8 +17689,6 @@
Parameters:
- - @@ -14697,6 +17699,40 @@
Parameters:
+ + + + + + + + + + + + + + + + +
TypeAttributes
key + + +String + + + + +

Rule Config key.

+ +
+ + +
data -

The user data object.

+

Rule Config Data parameters.

@@ -14750,7 +17786,7 @@
Parameters:
idvalue @@ -14767,7 +17803,7 @@
Parameters:
-

The user id.

+

Rule Config Data value.

dataparams @@ -14989,7 +18032,7 @@
Parameters:
-

User data object.

+

Linked users data.

@@ -15013,6 +18056,58 @@
Parameters:
id + + +String + + + + +

Primary user ID.

+ +
provider + + +String + + + + +

Identity provider in use.

+ +
user_id -

ID of the user to be verified.

+

Secondary user ID.

-

Rule Config parameters.

+

The user data object..

@@ -15286,7 +18381,7 @@
Parameters:
keyid @@ -15303,7 +18398,7 @@
Parameters:
-

Rule Config key.

+

The user id.

datametadata @@ -15345,58 +18440,7 @@
Parameters:
-

Rule Config Data parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
value - - -String - - - - -

Rule Config Data value.

- -
- +

New app metadata.

-

Callback function.

+

Callback function

-

Linked users data.

+

Client parameters.

@@ -15643,7 +18690,7 @@
Parameters:
idclient_id @@ -15660,33 +18707,15 @@
Parameters:
-

Primary user ID.

+

Application client ID.

- - - provider - - - - - -String - - - - - - - - - - -

Identity provider in use.

@@ -15695,32 +18724,32 @@
Parameters:
- user_id + data -String +Object + + + + + + + + -

Secondary user ID.

- - - - - - - - +

Updated client data.

@@ -15807,14 +18836,15 @@
Returns:
Example
-
var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+    
var data = { name: 'newClientName' };
+var params = { client_id: CLIENT_ID };
 
-management.unlinkUsers(params, function (err, user) {
+management.updateClient(params, data, function (err, client) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  console.log(client.name);  // 'newClientName'
 });
@@ -15826,14 +18856,14 @@
Example
-

updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}

+

updateClientGrant(params, data, cbopt) → {Promise|undefined}

-

Update the app metadata for a user.

+

Update an Auth0 client grant.

@@ -15869,7 +18899,7 @@

upda
Source:
@@ -15940,7 +18970,7 @@

Parameters:
-

The user data object..

+

Client parameters.

@@ -15983,7 +19013,7 @@
Parameters:
-

The user id.

+

Client grant ID.

@@ -16000,7 +19030,7 @@
Parameters:
- metadata + data @@ -16025,7 +19055,7 @@
Parameters:
-

New app metadata.

+

Updated client data.

@@ -16061,7 +19091,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -16112,18 +19142,19 @@
Returns:
Example
-
var params = { id: USER_ID };
-var metadata = {
-  foo: 'bar'
+    
var data = {
+  client_id: CLIENT_ID,
+  audience: AUDIENCE,
+  scope: []
 };
+var params = { id: CLIENT_GRANT_ID };
 
-management.updateAppMetadata(params, metadata, function (err, user) {
+management.clientGrants.update(params, data, function (err, grant) {
   if (err) {
     // Handle error.
   }
 
-  // Updated user.
-  console.log(user);
+  console.log(grant.id);
 });
@@ -16135,14 +19166,14 @@
Example
-

updateClient(params, data, cbopt) → {Promise|undefined}

+

updateConnection(params, data, cbopt) → {Promise|undefined}

-

Update an Auth0 client.

+

Update an existing connection.

@@ -16178,7 +19209,7 @@

updateCli
Source:
@@ -16249,7 +19280,7 @@

Parameters:
-

Client parameters.

+

Connection parameters.

@@ -16275,7 +19306,7 @@
Parameters:
- client_id + id @@ -16292,7 +19323,7 @@
Parameters:
-

Application client ID.

+

Connection ID.

@@ -16334,7 +19365,7 @@
Parameters:
-

Updated client data.

+

Updated connection data.

@@ -16421,15 +19452,15 @@
Returns:
Example
-
var data = { name: 'newClientName' };
-var params = { client_id: CLIENT_ID };
+    
var data = { name: 'newConnectionName' };
+var params = { id: CONNECTION_ID };
 
-management.updateClient(params, data, function (err, client) {
+management.updateConnection(params, data, function (err, connection) {
   if (err) {
     // Handle error.
   }
 
-  console.log(client.name);  // 'newClientName'
+  console.log(connection.name);  // 'newConnectionName'
 });
@@ -16441,14 +19472,14 @@
Example
-

updateConnection(params, data, cbopt) → {Promise|undefined}

+

updateEmailProvider(params, data, cbopt) → {Promise|undefined}

-

Update an existing connection.

+

Update the email provider.

@@ -16484,7 +19515,7 @@

updat
Source:
@@ -16555,58 +19586,7 @@

Parameters:
-

Connection parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Connection ID.

- -
- +

Email provider parameters.

@@ -16640,7 +19620,7 @@
Parameters:
-

Updated connection data.

+

Updated email provider data.

@@ -16727,15 +19707,13 @@
Returns:
Example
-
var data = { name: 'newConnectionName' };
-var params = { id: CONNECTION_ID };
-
-management.updateConnection(params, data, function (err, connection) {
+    
management.updateEmailProvider(params, data, function (err, provider) {
   if (err) {
     // Handle error.
   }
 
-  console.log(connection.name);  // 'newConnectionName'
+  // Updated email provider.
+  console.log(provider);
 });
@@ -16747,14 +19725,14 @@
Example
-

updateEmailProvider(params, data, cbopt) → {Promise|undefined}

+

updateResourceServer(params, data, cbopt) → {Promise|undefined}

-

Update the email provider.

+

Update an existing resource server.

@@ -16790,7 +19768,7 @@

up
Source:
@@ -16861,7 +19839,58 @@

Parameters:
-

Email provider parameters.

+

Resource Server parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Resource Server ID.

+ +
+ @@ -16895,7 +19924,7 @@
Parameters:
-

Updated email provider data.

+

Updated Resource Server data.

@@ -16982,13 +20011,15 @@
Returns:
Example
-
management.updateEmailProvider(params, data, function (err, provider) {
+    
var data = { name: 'newResourceServerName' };
+var params = { id: RESOURCE_SERVER_ID };
+
+management.updateResourceServer(params, data, function (err, resourceServer) {
   if (err) {
     // Handle error.
   }
 
-  // Updated email provider.
-  console.log(provider);
+  console.log(resourceServer.name);  // 'newResourceServerName'
 });
@@ -17000,14 +20031,14 @@
Example
-

updateResourceServer(params, data, cbopt) → {Promise|undefined}

+

updateRule(params, data, cbopt) → {Promise|undefined}

-

Update an existing resource server.

+

Update an existing rule.

@@ -17043,7 +20074,7 @@

u
Source:
@@ -17114,7 +20145,7 @@

Parameters:
-

Resource Server parameters.

+

Rule parameters.

@@ -17157,7 +20188,7 @@
Parameters:
-

Resource Server ID.

+

Rule ID.

@@ -17199,7 +20230,7 @@
Parameters:
-

Updated Resource Server data.

+

Updated rule data.

@@ -17286,15 +20317,14 @@
Returns:
Example
-
var data = { name: 'newResourceServerName' };
-var params = { id: RESOURCE_SERVER_ID };
-
-management.updateResourceServer(params, data, function (err, resourceServer) {
+    
var params = { id: RULE_ID };
+var data = { name: 'my-rule'};
+management.updateRule(params, data, function (err, rule) {
   if (err) {
     // Handle error.
   }
 
-  console.log(resourceServer.name);  // 'newResourceServerName'
+  console.log(rule.name); // 'my-rule'.
 });
@@ -17306,14 +20336,14 @@
Example
-

updateRule(params, data, cbopt) → {Promise|undefined}

+

updateTenantSettings(data, cbopt) → {Promise|undefined}

-

Update an existing rule.

+

Update the tenant settings.

@@ -17340,89 +20370,36 @@

updateRule< - - - - - - - -
Source:
-
- - - - - - - -

- - - - - - - - - -
Parameters:
- - - - - - - - + - + - - - + - + +
Source:
+
+ - - - + - - - - - + + - - - - - - - - - - @@ -17505,7 +20450,7 @@
Parameters:
@@ -17592,14 +20537,10 @@
Returns:
Example
-
var params = { id: RULE_ID };
-var data = { name: 'my-rule'};
-management.updateRule(params, data, function (err, rule) {
+    
management.updateTenantSettings(data, function (err) {
   if (err) {
     // Handle error.
   }
-
-  console.log(rule.name); // 'my-rule'.
 });
@@ -17611,14 +20552,14 @@
Example
-

updateTenantSettings(data, cbopt) → {Promise|undefined}

+

updateUser(params, data, cbopt) → {Promise|undefined}

-

Update the tenant settings.

+

Update a user by its id.

@@ -17654,7 +20595,7 @@

u
Source:
@@ -17698,6 +20639,91 @@

Parameters:
+ + + + + + + + + + + + + + + + + + @@ -17725,7 +20751,7 @@
Parameters:
@@ -17761,7 +20787,7 @@
Parameters:
@@ -17812,10 +20838,15 @@
Returns:
Example
-
management.updateTenantSettings(data, function (err) {
+    
var params = { id: USER_ID };
+
+management.updateUser(params, data, function (err, user) {
   if (err) {
     // Handle error.
   }
+
+  // Updated user.
+  console.log(user);
 });
@@ -17827,14 +20858,14 @@
Example
-

updateUser(params, data, cbopt) → {Promise|undefined}

+

updateUserMetadata(params, metadata, cbopt) → {Promise|undefined}

-

Update a user by its id.

+

Update the user metadata for a user.

@@ -17870,7 +20901,7 @@

updateUser<
Source:
@@ -17941,7 +20972,7 @@

Parameters:
- + @@ -18114,8 +21145,11 @@
Returns:
Example
var params = { id: USER_ID };
+var metadata = {
+  address: '123th Node.js Street'
+};
 
-management.updateUser(params, data, function (err, user) {
+management.updateUserMetadata(params, metadata, function (err, user) {
   if (err) {
     // Handle error.
   }
@@ -18133,14 +21167,14 @@ 
Example
-

updateUserMetadata(params, metadata, cbopt) → {Promise|undefined}

+

verifyCustomDomain(params, cbopt) → {Promise|undefined}

-

Update the user metadata for a user.

+

Verify a Custom Domain.

@@ -18176,7 +21210,7 @@

upd
Source:
@@ -18247,7 +21281,7 @@

Parameters:
@@ -18305,40 +21339,6 @@
Parameters:
-
- - - - - - - - - - - - - - - - - @@ -18368,7 +21368,7 @@
Parameters:
@@ -18419,18 +21419,12 @@
Returns:
Example
-
var params = { id: USER_ID };
-var metadata = {
-  address: '123th Node.js Street'
-};
-
-management.updateUserMetadata(params, metadata, function (err, user) {
+    
management.verifyCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
   if (err) {
     // Handle error.
   }
 
-  // Updated user.
-  console.log(user);
+  console.log(customDomain);
 });
@@ -18454,7 +21448,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ManagementTokenProvider.html b/docs/module-management.ManagementTokenProvider.html index 98a360c74..ff9ee87b1 100644 --- a/docs/module-management.ManagementTokenProvider.html +++ b/docs/module-management.ManagementTokenProvider.html @@ -24,7 +24,7 @@
@@ -633,7 +633,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.ResourceServersManager.html b/docs/module-management.ResourceServersManager.html index 0c021904e..506dcf254 100644 --- a/docs/module-management.ResourceServersManager.html +++ b/docs/module-management.ResourceServersManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.RetryRestClient.html b/docs/module-management.RetryRestClient.html index 482cb0539..7088c566b 100644 --- a/docs/module-management.RetryRestClient.html +++ b/docs/module-management.RetryRestClient.html @@ -24,7 +24,7 @@
@@ -377,7 +377,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.RulesConfigsManager.html b/docs/module-management.RulesConfigsManager.html index 4a371256c..502ae2f83 100644 --- a/docs/module-management.RulesConfigsManager.html +++ b/docs/module-management.RulesConfigsManager.html @@ -24,7 +24,7 @@
@@ -1317,7 +1317,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.RulesManager.html b/docs/module-management.RulesManager.html index c81f2d396..b7640c53a 100644 --- a/docs/module-management.RulesManager.html +++ b/docs/module-management.RulesManager.html @@ -24,7 +24,7 @@
@@ -1910,7 +1910,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.StatsManager.html b/docs/module-management.StatsManager.html index d73bbea41..ce9e4385a 100644 --- a/docs/module-management.StatsManager.html +++ b/docs/module-management.StatsManager.html @@ -24,7 +24,7 @@
@@ -919,7 +919,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.TenantManager.html b/docs/module-management.TenantManager.html index 527516334..c659e73ae 100644 --- a/docs/module-management.TenantManager.html +++ b/docs/module-management.TenantManager.html @@ -24,7 +24,7 @@
@@ -835,7 +835,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.TicketsManager.html b/docs/module-management.TicketsManager.html index 6cc15b131..ccc194f35 100644 --- a/docs/module-management.TicketsManager.html +++ b/docs/module-management.TicketsManager.html @@ -24,7 +24,7 @@
@@ -805,7 +805,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.UsersManager.html b/docs/module-management.UsersManager.html index 4a29c2bcb..33658deef 100644 --- a/docs/module-management.UsersManager.html +++ b/docs/module-management.UsersManager.html @@ -24,7 +24,7 @@
@@ -5075,7 +5075,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-management.html b/docs/module-management.html index 24524f386..138034ca4 100644 --- a/docs/module-management.html +++ b/docs/module-management.html @@ -24,7 +24,7 @@
@@ -150,7 +150,7 @@

Classes


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/module-utils.html b/docs/module-utils.html index c703086b0..0a882f6e8 100644 --- a/docs/module-utils.html +++ b/docs/module-utils.html @@ -24,7 +24,7 @@
@@ -339,7 +339,7 @@

(static)
- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/docs/utils.js.html b/docs/utils.js.html index e1092abfd..c1d593455 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -24,7 +24,7 @@
@@ -124,7 +124,7 @@

utils.js


- Generated by JSDoc 3.5.5 on Mon Nov 12 2018 22:55:39 GMT-0200 (-02) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme.
diff --git a/package.json b/package.json index da7529028..80138069b 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { "name": "auth0", - "version": "2.14.0", + "version": "2.15.0", "description": "SDK for Auth0 API v2", "main": "src/index.js", - "files": [ - "src" - ], + "files": ["src"], "scripts": { "test": "mocha -R spec ./test/**/*.tests.js ./test/*.tests.js", - "test:ci": "istanbul cover _mocha --report lcovonly -R $(find ./test -name *.tests.js) -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", + "test:ci": + "istanbul cover _mocha --report lcovonly -R $(find ./test -name *.tests.js) -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", "test:coverage": "codecov", - "test:watch": "cross-env NODE_ENV=test mocha --timeout 5000 ./test/**/*.tests.js ./test/*.tests.js --watch", + "test:watch": + "cross-env NODE_ENV=test mocha --timeout 5000 ./test/**/*.tests.js ./test/*.tests.js --watch", "jsdoc:generate": "jsdoc --configure .jsdoc.json --verbose", "release:clean": "node scripts/cleanup.js", "preversion": "node scripts/prepare.js", @@ -22,10 +22,7 @@ "type": "git", "url": "https://github.com/auth0/node-auth0" }, - "keywords": [ - "auth0", - "api" - ], + "keywords": ["auth0", "api"], "author": "Auth0", "license": "MIT", "bugs": { From f48de54c7aa8382487706a544eb69e8b417077a3 Mon Sep 17 00:00:00 2001 From: Jose Santos Date: Wed, 13 Mar 2019 08:29:50 +0100 Subject: [PATCH 18/37] Add support for Auth0 Grants --- src/management/GrantsManager.js | 119 ++++++++++++++ src/management/index.js | 71 +++++++++ test/management/grants.tests.js | 174 +++++++++++++++++++++ test/management/management-client.tests.js | 7 + 4 files changed, 371 insertions(+) create mode 100644 src/management/GrantsManager.js create mode 100644 test/management/grants.tests.js diff --git a/src/management/GrantsManager.js b/src/management/GrantsManager.js new file mode 100644 index 000000000..9ccaf09a7 --- /dev/null +++ b/src/management/GrantsManager.js @@ -0,0 +1,119 @@ +var ArgumentError = require('rest-facade').ArgumentError; +var utils = require('../utils'); +var Auth0RestClient = require('../Auth0RestClient'); +var RetryRestClient = require('../RetryRestClient'); +/** + * @class GrantsManager + * Auth0 Grants Manager. + * + * See {@link https://auth0.com/docs/api/v2#!/Grants Grants} + * + * @constructor + * @memberOf module:management + * + * @param {Object} options The client options. + * @param {String} options.baseUrl The URL of the API. + * @param {Object} [options.headers] Headers to be included in all requests. + * @param {Object} [options.retry] Retry Policy Config + */ +var GrantsManager = function(options) { + if (options === null || typeof options !== 'object') { + throw new ArgumentError('Must provide client options'); + } + + if (options.baseUrl === null || options.baseUrl === undefined) { + throw new ArgumentError('Must provide a base URL for the API'); + } + + if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) { + throw new ArgumentError('The provided base URL is invalid'); + } + + /** + * Options object for the Rest Client instance. + * + * @type {Object} + */ + var clientOptions = { + errorFormatter: { message: 'message', name: 'error' }, + headers: options.headers, + query: { repeatParams: false } + }; + + /** + * Provides an abstraction layer for consuming the + * {@link https://auth0.com/docs/api/v2#!/Grants Auth0 Grants endpoint}. + * + * @type {external:RestClient} + */ + var auth0RestClient = new Auth0RestClient( + options.baseUrl + '/grants/:id', + clientOptions, + options.tokenProvider + ); + this.resource = new RetryRestClient(auth0RestClient, options.retry); +}; + +/** + * Get all Auth0 Grants. + * + * @method getAll + * @memberOf module:management.GrantsManager.prototype + * + * @example + * var params = { + * per_page: 10, + * page: 0, + * include_totals: true, + * user_id: 'USER_ID', + * client_id: 'CLIENT_ID', + * audience: 'AUDIENCE' + * }; + * + * management.getGrants(params, function (err, grants) { + * console.log(grants.length); + * }); + * + * @param {Object} params Grants parameters. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {String} params.user_id The user_id of the grants to retrieve. + * @param {String} params.client_id The client_id of the grants to retrieve. + * @param {String} params.audience The audience of the grants to retrieve. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(GrantsManager, 'getAll', 'resource.getAll'); + +/** + * Delete an Auth0 grant. + * + * @method delete + * @memberOf module:management.GrantsManager.prototype + * + * @example + * var params = { + * id: 'GRANT_ID', + * user_id: 'USER_ID' + * }; + * + * management.deleteGrant(params, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Grant deleted. + * }); + * + * @param {Object} params Grant parameters. + * @param {String} params.id Grant ID. + * @param {String} params.user_id The user_id of the grants to delete. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(GrantsManager, 'delete', 'resource.delete'); + +module.exports = GrantsManager; diff --git a/src/management/index.js b/src/management/index.js index ee75f5964..106128d6a 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -11,6 +11,7 @@ var assign = Object.assign || require('object.assign'); // Managers. var ClientsManager = require('./ClientsManager'); var ClientGrantsManager = require('./ClientGrantsManager'); +var GrantsManager = require('./GrantsManager'); var UsersManager = require('./UsersManager'); var ConnectionsManager = require('./ConnectionsManager'); var BlacklistedTokensManager = require('./BlacklistedTokensManager'); @@ -149,6 +150,14 @@ var ManagementClient = function(options) { */ this.clientGrants = new ClientGrantsManager(managerOptions); + /** + * Simple abstraction for performing CRUD operations on the grants + * endpoint. + * + * @type {GrantsManager} + */ + this.grants = new GrantsManager(managerOptions); + /** * Simple abstraction for performing CRUD operations on the * users endpoint. @@ -662,6 +671,68 @@ utils.wrapPropertyMethod(ManagementClient, 'updateClientGrant', 'clientGrants.up */ utils.wrapPropertyMethod(ManagementClient, 'deleteClientGrant', 'clientGrants.delete'); +/** + * Get all Auth0 Grants. + * + * @method getGrants + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { + * per_page: 10, + * page: 0, + * include_totals: true, + * user_id: USER_ID, + * client_id: CLIENT_ID, + * audience: AUDIENCE + * }; + * + * management.getGrants(params, function (err, grants) { + * console.log(grants.length); + * }); + * + * @param {Object} params Grants parameters. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {String} params.user_id The user_id of the grants to retrieve. + * @param {String} params.client_id The client_id of the grants to retrieve. + * @param {String} params.audience The audience of the grants to retrieve. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getGrants', 'grants.getAll'); + +/** + * Delete an Auth0 grant. + * + * @method deleteGrant + * @memberOf module:management.GrantsManager.prototype + * + * @example + * var params = { + * id: GRANT_ID, + * user_id: USER_ID + * }; + * + * management.deleteGrant(params, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Grant deleted. + * }); + * + * @param {Object} params Grant parameters. + * @param {String} params.id Grant ID. + * @param {String} params.user_id The user_id of the grants to delete. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'deleteGrant', 'grants.delete'); + /** * Create an Auth0 credential. * diff --git a/test/management/grants.tests.js b/test/management/grants.tests.js new file mode 100644 index 000000000..665a34a7f --- /dev/null +++ b/test/management/grants.tests.js @@ -0,0 +1,174 @@ +var expect = require('chai').expect; +var nock = require('nock'); +var Promise = require('bluebird'); + +var SRC_DIR = '../../src'; +var API_URL = 'https://tenant.auth0.com'; + +var GrantsManager = require(SRC_DIR + '/management/GrantsManager'); +var ArgumentError = require('rest-facade').ArgumentError; + +describe('GrantsManager', function() { + before(function() { + this.token = 'TOKEN'; + this.grants = new GrantsManager({ + headers: { + authorization: 'Bearer ' + this.token + }, + baseUrl: API_URL + }); + }); + + afterEach(function() { + nock.cleanAll(); + }); + + describe('instance', function() { + var methods = ['getAll', 'delete']; + + methods.forEach(function(method) { + it('should have a ' + method + ' method', function() { + expect(this.grants[method]).to.exist.to.be.an.instanceOf(Function); + }); + }); + }); + + describe('#constructor', function() { + it('should error when no options are provided', function() { + expect(GrantsManager).to.throw(ArgumentError, 'Must provide client options'); + }); + + it('should throw an error when no base URL is provided', function() { + var grants = GrantsManager.bind(null, {}); + + expect(grants).to.throw(ArgumentError, 'Must provide a base URL for the API'); + }); + + it('should throw an error when the base URL is invalid', function() { + var grants = GrantsManager.bind(null, { baseUrl: '' }); + + expect(grants).to.throw(ArgumentError, 'The provided base URL is invalid'); + }); + }); + + describe('#getAll', function() { + beforeEach(function() { + this.request = nock(API_URL) + .get('/grants') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.grants.getAll(function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.grants + .getAll() + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/grants') + .reply(500); + + this.grants.getAll().catch(function(err) { + expect(err).to.exist; + done(); + }); + }); + + it('should pass the body of the response to the "then" handler', function(done) { + nock.cleanAll(); + + var data = [{ test: true }]; + var request = nock(API_URL) + .get('/grants') + .reply(200, data); + + this.grants.getAll().then(function(grants) { + expect(grants).to.be.an.instanceOf(Array); + + expect(grants.length).to.equal(data.length); + + expect(grants[0].test).to.equal(data[0].test); + + done(); + }); + }); + + it('should perform a GET request to /api/v2/grants', function(done) { + var request = this.request; + + this.grants.getAll().then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/grants') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.grants.getAll().then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + + it('should pass the parameters in the query-string', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/grants') + .query({ + include_fields: true, + fields: 'test' + }) + .reply(200); + + this.grants.getAll({ include_fields: true, fields: 'test' }).then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + }); + + describe('#delete', function() { + var id = 5; + + beforeEach(function() { + this.request = nock(API_URL) + .delete('/grants/' + id) + .reply(200); + }); + + it('should accept a callback', function(done) { + this.grants.delete({ id: id }, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.grants.delete({ id: id }).then(done.bind(null, null)); + }); + + it('should perform a DELETE request to /grants/' + id, function(done) { + var request = this.request; + + this.grants.delete({ id: id }).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); +}); diff --git a/test/management/management-client.tests.js b/test/management/management-client.tests.js index 86ef52613..955fb6c2c 100644 --- a/test/management/management-client.tests.js +++ b/test/management/management-client.tests.js @@ -8,6 +8,7 @@ var UsersManager = require('../../src/management/UsersManager'); var BlacklistedTokensManager = require('../../src/management/BlacklistedTokensManager'); var ClientsManager = require('../../src/management/ClientsManager'); var ClientGrantsManager = require('../../src/management/ClientGrantsManager'); +var GrantsManager = require('../../src/management/GrantsManager'); var ConnectionsManager = require('../../src/management/ConnectionsManager'); var DeviceCredentialsManager = require('../../src/management/DeviceCredentialsManager'); var EmailProviderManager = require('../../src/management/EmailProviderManager'); @@ -111,6 +112,10 @@ describe('ManagementClient', function() { property: 'clientGrants', cls: ClientGrantsManager }, + GrantsManager: { + property: 'grants', + cls: GrantsManager + }, ConnectionsManager: { property: 'connections', cls: ConnectionsManager @@ -177,6 +182,8 @@ describe('ManagementClient', function() { 'createClientGrant', 'updateClientGrant', 'deleteClientGrant', + 'getGrants', + 'deleteGrant', 'createDevicePublicKey', 'getDeviceCredentials', 'deleteDeviceCredential', From 4c603eed30ac55d8a5dc2f3cbbdd9e4b5dfbd5fa Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Thu, 14 Mar 2019 15:37:27 -0400 Subject: [PATCH 19/37] Changes to support roles and permissions --- src/management/RolesManager.js | 355 +++++++++++++++++ src/management/UsersManager.js | 250 ++++++++++++ src/management/index.js | 405 +++++++++++++++++++ test/management/roles.tests.js | 689 +++++++++++++++++++++++++++++++++ test/management/users.tests.js | 442 ++++++++++++++++++++- 5 files changed, 2140 insertions(+), 1 deletion(-) create mode 100644 src/management/RolesManager.js create mode 100644 test/management/roles.tests.js diff --git a/src/management/RolesManager.js b/src/management/RolesManager.js new file mode 100644 index 000000000..37ef30ce4 --- /dev/null +++ b/src/management/RolesManager.js @@ -0,0 +1,355 @@ +var ArgumentError = require('rest-facade').ArgumentError; +var utils = require('../utils'); +var Auth0RestClient = require('../Auth0RestClient'); +var RetryRestClient = require('../RetryRestClient'); + +/** + * Simple facade for consuming a REST API endpoint. + * @external RestClient + * @see https://github.com/ngonzalvez/rest-facade + */ + +/** + * @class RolesManager + * The role class provides a simple abstraction for performing CRUD operations + * on Auth0 RolesManager. + * @constructor + * @memberOf module:management + * + * @param {Object} options The client options. + * @param {String} options.baseUrl The URL of the API. + * @param {Object} [options.headers] Headers to be included in all requests. + * @param {Object} [options.retry] Retry Policy Config + */ +var RolesManager = function(options) { + if (options === null || typeof options !== 'object') { + throw new ArgumentError('Must provide manager options'); + } + + if (options.baseUrl === null || options.baseUrl === undefined) { + throw new ArgumentError('Must provide a base URL for the API'); + } + + if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) { + throw new ArgumentError('The provided base URL is invalid'); + } + + /** + * Options object for the Rest Client instance. + * + * @type {Object} + */ + var clientOptions = { + headers: options.headers, + query: { repeatParams: false } + }; + + /** + * Provides an abstraction layer for performing CRUD operations on + * {@link https://auth0.com/docs/api/v2#!/RolesManager Auth0 RolesManagers}. + * + * @type {external:RestClient} + */ + var auth0RestClient = new Auth0RestClient( + options.baseUrl + '/roles/:id', + clientOptions, + options.tokenProvider + ); + this.resource = new RetryRestClient(auth0RestClient, options.retry); + + var permissionsInRoleClient = new Auth0RestClient( + options.baseUrl + '/roles/:id/permissions', + clientOptions, + options.tokenProvider + ); + this.permissions = new RetryRestClient(permissionsInRoleClient, options.retry); + + var usersInRoleClient = new Auth0RestClient( + options.baseUrl + '/roles/:id/users', + clientOptions, + options.tokenProvider + ); + this.users = new RetryRestClient(usersInRoleClient, options.retry); +}; + +/** + * Create a new role. + * + * @method create + * @memberOf module:management.RolesManager.prototype + * + * @example + * management.roles.create(data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role created. + * }); + * + * @param {Object} data Role data object. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(RolesManager, 'create', 'resource.create'); + +/** + * Get all roles. + * + * @method getAll + * @memberOf module:management.RolesManager.prototype + * + * @example

+ * + * // Pagination settings. + * var params = { + * per_page: 10, + * page: 0 + * }; + * + * management.roles.getAll(params, function (err, roles) { + * console.log(roles.length); + * }); + * + * @param {Object} [params] Roles parameters. + * @param {Number} [params.per_page] Number of results per page. + * @param {Number} [params.page] Page number, zero indexed. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(RolesManager, 'getAll', 'resource.getAll'); + +/** + * Get an Auth0 role. + * + * @method get + * @memberOf module:management.RolesManager.prototype + * + * @example + * management.roles.get({ id: ROLE_ID }, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role); + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(RolesManager, 'get', 'resource.get'); + +/** + * Update an existing role. + * + * @method update + * @memberOf module:management.RolesManager.prototype + * + * @example + * var data = { name: 'New name' }; + * var params = { id: ROLE_ID }; + * + * // Using auth0 instance. + * management.updateRole(params, data, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role.name); // 'New name' + * }); + * + * // Using the roles manager directly. + * management.roles.update(params, data, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role.name); // 'New name' + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Object} data Updated role data. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(RolesManager, 'update', 'resource.patch'); + +/** + * Delete an existing role. + * + * @method delete + * @memberOf module:management.RolesManager.prototype + * + * @example + * management.roles.delete({ id: ROLE_ID }, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role deleted. + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(RolesManager, 'delete', 'resource.delete'); + +/** + * Get Permissions in a Role + * + * @method getPermissionsInRole + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = {id : 'ROLE_ID'} + * @example + * + * management.roles.getPermissions( {id : 'ROLE_ID'}, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} [email] Email address of user(s) to find + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +RolesManager.prototype.getPermissions = function(params, callback) { + return this.permissions.getAll(params, callback); +}; + +/** + * Add permissions in a role + * + * @method addPermissions + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.roles.addPermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions added. + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +RolesManager.prototype.addPermissions = function(params, data, cb) { + data = data || {}; + params = params || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The roleId passed in params cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The role Id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.create(params, data, cb); + } + + return this.permissions.create(params, data); +}; + +/** + * Remove permissions from a role + * + * @method removePermissions + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.roles.removePermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions added. + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +RolesManager.prototype.removePermissions = function(params, data, cb) { + data = data || {}; + params = params || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The roleId passed in params cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The role Id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.delete(params, data, cb); + } + + return this.permissions.delete(params, data); +}; + +/** + * Get Users in a Role + * + * @method getUsers + * @memberOf module:management.RolesManager.prototype + * + * @example + * params = {id : 'ROLE_ID'} + * @example + * + * management.roles.getUsers( {id : 'ROLE_ID'}, function (err, users) { + * console.log(users); + * }); + * + * @param {String} [email] Email address of user(s) to find + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +RolesManager.prototype.getUsers = function(params, callback) { + return this.users.getAll(params, callback); +}; + +module.exports = RolesManager; diff --git a/src/management/UsersManager.js b/src/management/UsersManager.js index 18f162515..f5469204d 100644 --- a/src/management/UsersManager.js +++ b/src/management/UsersManager.js @@ -121,6 +121,30 @@ var UsersManager = function(options) { recoveryCodeRegenerationAuth0RestClients, options.retry ); + + /** + * Provides an abstraction layer for CRD on roles for a user + * + * @type {external:RestClient} + */ + var userRolesClient = new Auth0RestClient( + options.baseUrl + '/users/:id/roles', + clientOptions, + options.tokenProvider + ); + this.roles = new RetryRestClient(userRolesClient, options.retry); + + /** + * Provides an abstraction layer for CRD on permissions directly on a user + * + * @type {external:RestClient} + */ + var userPermissionsClient = new Auth0RestClient( + options.baseUrl + '/users/:id/permissions', + clientOptions, + options.tokenProvider + ); + this.permissions = new RetryRestClient(userPermissionsClient, options.retry); }; /** @@ -623,4 +647,230 @@ UsersManager.prototype.regenerateRecoveryCode = function(params, cb) { return this.recoveryCodeRegenerations.create(params, {}); }; +/** + * Get a list of roles for a user. + * + * @method getUserRoles + * @memberOf module:management.UsersManager.prototype + * + * @example + * management.users.getRoles({ id: USER_ID }, function (err, roles) { + * console.log(roles); + * }); + * + * @param {Object} data The user data object. + * @param {String} data.id The user id. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +UsersManager.prototype.getRoles = function() { + return this.roles.getAll.apply(this.roles, arguments); +}; + +/** + * Assign roles to a user + * + * @method assignRoles + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "roles" : ["roleId1", "roleID2"]}; + * + * management.users.assignRoles(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // roles added. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.assignRoles = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.roles.create(query, data, cb); + } + + return this.roles.create(query, data); +}; + +/** + * Remove roles from a user + * + * @method removeRoles + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "roles" : ["roleId1", "roleID2"]}; + * + * management.users.removeRoles(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // roles removed. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.removeRoles = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.roles.delete(query, data, cb); + } + + return this.roles.delete(query, data); +}; + +/** + * Get a list of permissions for a user. + * + * @method getPermissions + * @memberOf module:management.UsersManager.prototype + * + * @example + * management.users.getPermissions({ id: USER_ID }, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {Object} data The user data object. + * @param {String} data.id The user id. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +UsersManager.prototype.getPermissions = function() { + return this.permissions.getAll.apply(this.permissions, arguments); +}; + +/** + * Assign permissions to a user + * + * @method assignPermissions + * @memberOf module:management.permissionsManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.users.assignPermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions added. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permissions + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.assignPermissions = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.create(query, data, cb); + } + + return this.permissions.create(query, data); +}; + +/** + * Remove permissions from a user + * + * @method removePermissions + * @memberOf module:management.permissionsManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.users.removePermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions removed. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permission IDs + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.removePermissions = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.delete(query, data, cb); + } + + return this.permissions.delete(query, data); +}; + module.exports = UsersManager; diff --git a/src/management/index.js b/src/management/index.js index ee75f5964..fa4f44a97 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -28,6 +28,7 @@ var RulesConfigsManager = require('./RulesConfigsManager'); var EmailTemplatesManager = require('./EmailTemplatesManager'); var GuardianManager = require('./GuardianManager'); var CustomDomainsManager = require('./CustomDomainsManager'); +var RolesManager = require('./RolesManager'); var BASE_URL_FORMAT = 'https://%s/api/v2'; var MANAGEMENT_API_AUD_FORMAT = 'https://%s/api/v2/'; @@ -270,6 +271,14 @@ var ManagementClient = function(options) { * @type {RulesConfigsManager} */ this.rulesConfigs = new RulesConfigsManager(managerOptions); + + /** + * Simple abstraction for performing CRUD operations on the + * roles endpoint. + * + * @type {RolesManager} + */ + this.roles = new RolesManager(managerOptions); }; /** @@ -1235,6 +1244,176 @@ utils.wrapPropertyMethod(ManagementClient, 'linkUsers', 'users.link'); */ utils.wrapPropertyMethod(ManagementClient, 'getUserLogs', 'users.logs'); +/** + * Get user's roles + * + * @method getUserRoles + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true }; + * + * management.getUserRoles(params, function (err, logs) { + * if (err) { + * // Handle error. + * } + * + * console.log(logs); + * }); + * + * @param {Object} params Get roles data. + * @param {String} params.id User id. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {String} params.sort The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUserRoles', 'users.getRoles'); + +/** + * Asign roles to a user + * + * @method assignRolestoUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "roles" :["role1"]}; + * + * management.assignRolestoUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned roles. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'assignRolestoUser', 'users.assignRoles'); + +/** + * Remove roles from a user + * + * @method removeRolesFromUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "roles" :["role1"]}; + * + * management.removeRolesFromUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned roles. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removeRolesFromUser', 'users.removeRoles'); + +/** + * Get user's permissions + * + * @method getUserPermissions + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true }; + * + * management.getUserPermissions(params, function (err, logs) { + * if (err) { + * // Handle error. + * } + * + * console.log(logs); + * }); + * + * @param {Object} params Get permissions data. + * @param {String} params.id User id. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {String} params.sort The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUserPermissions', 'users.getPermissions'); + +/** + * Asign permissions to a user + * + * @method assignPermissionsToUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.assignPermissionsToUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned permissions. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permissions + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'assignPermissionsToUser', 'users.assignPermissions'); + +/** + * Remove permissions from a user + * + * @method removePermissionsFromUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.removePermissionsFromUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned permissions. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permission IDs + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removePermissionsFromUser', 'users.removePermissions'); + /** * Get a list of a user's Guardian enrollments. * @@ -2248,4 +2427,230 @@ utils.wrapPropertyMethod( */ utils.wrapPropertyMethod(ManagementClient, 'updateGuardianFactor', 'guardian.factors.update'); +/** + * Get all roles. + * + * @method getRoles + * @memberOf module:management.ManagementClient.prototype + * + * @example + * + * // Pagination settings. + * var params = { + * per_page: 10, + * page: 0 + * }; + * + * management.getRoles(params, function (err, roles) { + * console.log(roles.length); + * }); + * + * @param {Object} [params] Roles parameters. + * @param {Number} [params.per_page] Number of results per page. + * @param {Number} [params.page] Page number, zero indexed. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getRoles', 'roles.getAll'); + +/** + * Create a new role. + * + * @method createRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * data = {"name": "test1","description": "123"} + * management.createRole(data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role created. + * }); + * + * @param {Object} data Role data object. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'createRole', 'roles.create'); + +/** + * Get an Auth0 role. + * + * @method getRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * management.getRole({ id: ROLE_ID }, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role); + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getRole', 'roles.get'); + +/** + * Delete an existing role. + * + * @method deleteRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * management.deleteRole({ id: ROLE_ID }, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role deleted. + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'deleteRole', 'roles.delete'); + +/** + * Update an existing role. + * + * @method updateRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: ROLE_ID }; + * var data = { name: 'my-role'}; + * management.updateRole(params, data, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role.name); // 'my-role'. + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Object} data Updated role data. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'updateRole', 'roles.update'); + +/** + * Get permissions for a given role + * + * @method getPermissionsInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * @example + * + * management.getPermissionsInRole(params, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} [roleId] Id of the role + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getPermissionsInRole', 'roles.getPermissions'); + +/** + * Add permissions in a role + * + * @method addPermissionsInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.addPermissionsInRole(params, data, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'addPermissionsInRole', 'roles.addPermissions'); + +/** + * Remove permissions from a role + * + * @method removePermissionsFromRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.removePermissionsFromRole(params, data, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removePermissionsFromRole', 'roles.removePermissions'); + +/** + * Get users in a given role + * + * @method getUsersInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * @example + * + * management.getUsersInRole(params, function (err, users) { + * console.log(users); + * }); + * + * @param {String} [roleId] Id of the role + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUsersInRole', 'roles.getUsers'); + module.exports = ManagementClient; diff --git a/test/management/roles.tests.js b/test/management/roles.tests.js new file mode 100644 index 000000000..9ebd83f80 --- /dev/null +++ b/test/management/roles.tests.js @@ -0,0 +1,689 @@ +var expect = require('chai').expect; +var nock = require('nock'); + +var SRC_DIR = '../../src'; +var API_URL = 'https://tenant.auth0.com'; + +var RolesManager = require(SRC_DIR + '/management/RolesManager'); +var ArgumentError = require('rest-facade').ArgumentError; + +describe('RolesManager', function() { + before(function() { + this.token = 'TOKEN'; + this.roles = new RolesManager({ + headers: { authorization: 'Bearer ' + this.token }, + baseUrl: API_URL + }); + }); + + describe('instance', function() { + var methods = [ + 'get', + 'getAll', + 'create', + 'update', + 'delete', + 'getPermissions', + 'addPermissions', + 'removePermissions', + 'getUsers' + ]; + + methods.forEach(function(method) { + it('should have a ' + method + ' method', function() { + expect(this.roles[method]).to.exist.to.be.an.instanceOf(Function); + }); + }); + }); + + describe('#constructor', function() { + it('should error when no options are provided', function() { + expect(RolesManager).to.throw(ArgumentError, 'Must provide manager options'); + }); + + it('should throw an error when no base URL is provided', function() { + var client = RolesManager.bind(null, {}); + + expect(client).to.throw(ArgumentError, 'Must provide a base URL for the API'); + }); + + it('should throw an error when the base URL is invalid', function() { + var client = RolesManager.bind(null, { baseUrl: '' }); + + expect(client).to.throw(ArgumentError, 'The provided base URL is invalid'); + }); + }); + + describe('#getAll', function() { + beforeEach(function() { + this.request = nock(API_URL) + .get('/roles') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.getAll(function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .getAll() + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles') + .reply(500); + + this.roles.getAll().catch(function(err) { + expect(err).to.exist; + done(); + }); + }); + + it('should pass the body of the response to the "then" handler', function(done) { + nock.cleanAll(); + + var data = [{ test: true }]; + var request = nock(API_URL) + .get('/roles') + .reply(200, data); + + this.roles.getAll().then(function(credentials) { + expect(credentials).to.be.an.instanceOf(Array); + + expect(credentials.length).to.equal(data.length); + + expect(credentials[0].test).to.equal(data[0].test); + + done(); + }); + }); + + it('should perform a GET request to /api/v2/roles', function(done) { + var request = this.request; + + this.roles.getAll().then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.getAll().then(function() { + expect(request.isDone()).to.be.true; + done(); + }); + }); + + it('should pass the parameters in the query-string', function(done) { + nock.cleanAll(); + + var params = { + include_fields: true, + fields: 'test' + }; + var request = nock(API_URL) + .get('/roles') + .query(params) + .reply(200); + + this.roles.getAll(params).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#get', function() { + beforeEach(function() { + this.data = { + id: 'rol_ID', + name: 'My role', + description: 'This is my role' + }; + + this.request = nock(API_URL) + .get('/roles/' + this.data.id) + .reply(200, this.data); + }); + + it('should accept a callback', function(done) { + var params = { id: this.data.id }; + + this.roles.get(params, done.bind(null, null)); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .get({ id: this.data.id }) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should perform a POST request to /api/v2/roles/rol_ID', function(done) { + var request = this.request; + + this.roles.get({ id: this.data.id }).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + this.data.id) + .reply(500); + + this.roles.get({ id: this.data.id }).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + this.data.id) + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.get({ id: this.data.id }).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#create', function() { + var data = { + id: 'rol_ID', + name: 'My role', + description: 'This is my role' + }; + + beforeEach(function() { + this.request = nock(API_URL) + .post('/roles') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.create(data, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .create(data) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles') + .reply(500); + + this.roles.create(data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a POST request to /api/v2/roles', function(done) { + var request = this.request; + + this.roles.create(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles', data) + .reply(200); + + this.roles.create(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.create(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#update', function() { + beforeEach(function() { + this.data = { id: 'rol_ID' }; + + this.request = nock(API_URL) + .patch('/roles/' + this.data.id) + .reply(200, this.data); + }); + + it('should accept a callback', function(done) { + this.roles.update({ id: 'rol_ID' }, {}, done.bind(null, null)); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .update({ id: 'rol_ID' }, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should perform a PATCH request to /api/v2/roles/rol_ID', function(done) { + var request = this.request; + + this.roles.update({ id: 'rol_ID' }, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the new data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .patch('/roles/' + this.data.id, this.data) + .reply(200); + + this.roles.update({ id: 'rol_ID' }, this.data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .patch('/roles/' + this.data.id) + .reply(500); + + this.roles.update({ id: this.data.id }, this.data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + }); + + describe('#delete', function() { + var id = 'rol_ID'; + + beforeEach(function() { + this.request = nock(API_URL) + .delete('/roles/' + id) + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.delete({ id: id }, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.roles.delete({ id: id }).then(done.bind(null, null)); + }); + + it('should perform a delete request to /roles/' + id, function(done) { + var request = this.request; + + this.roles.delete({ id: id }).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/roles/' + id) + .reply(500); + + this.roles.delete({ id: id }).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/roles/' + id) + .matchHeader('authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.delete({ id: id }).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#getPermissions', function() { + var data = { + id: 'role_id' + }; + + beforeEach(function() { + this.request = nock(API_URL) + .get('/roles/' + data.id + '/permissions') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.getPermissions(data, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.roles.getPermissions(data).then(done.bind(null, null)); + }); + + it('should perform a GET request to /api/v2/roles/rol_ID/permissions', function(done) { + var request = this.request; + + this.roles.getPermissions(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + data.id + '/permissions') + .reply(500); + + this.roles.getPermissions(data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + data.id + '/permissions') + .matchHeader('authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.getPermissions(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#addPermissions', function() { + beforeEach(function() { + this.data = { + id: 'rol_ID' + }; + this.body = { permission_name: 'My Permission', resource_server_identifier: 'test123' }; + + this.request = nock(API_URL) + .post('/roles/' + this.data.id + '/permissions') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.addPermissions(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .addPermissions(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/permissions') + .reply(500); + + this.roles.addPermissions(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a POST request to /api/v2/roles/rol_ID/permissions', function(done) { + var request = this.request; + + this.roles.addPermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/permissions', this.body) + .reply(200); + + this.roles.addPermissions(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/permissions') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.addPermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#removePermissions', function() { + beforeEach(function() { + this.data = { + id: 'rol_ID' + }; + this.body = { permission_name: 'My Permission', resource_server_identifier: 'test123' }; + + this.request = nock(API_URL) + .delete('/roles/' + this.data.id + '/permissions', {}) + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.removePermissions(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .removePermissions(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/permissions') + .reply(500); + + this.roles.removePermissions(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a DELETE request to /api/v2/roles/rol_ID/permissions', function(done) { + var request = this.request; + + this.roles.removePermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/roles/' + this.data.id + '/permissions', this.body) + .reply(200); + + this.roles.removePermissions(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/roles/' + this.data.id + '/permissions') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.removePermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#getUsers', function() { + var data = { + id: 'role_id' + }; + + beforeEach(function() { + this.request = nock(API_URL) + .get('/roles/' + data.id + '/users') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.roles.getUsers(data, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.roles.getUsers(data).then(done.bind(null, null)); + }); + + it('should perform a GET request to /api/v2/roles/rol_Id/users', function(done) { + var request = this.request; + + this.roles.getUsers(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + data.id + '/users') + .reply(500); + + this.roles.getUsers(data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/roles/' + data.id + '/users') + .matchHeader('authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.getUsers(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); +}); diff --git a/test/management/users.tests.js b/test/management/users.tests.js index 7d55bb7b1..aa5808473 100644 --- a/test/management/users.tests.js +++ b/test/management/users.tests.js @@ -31,7 +31,13 @@ describe('UsersManager', function() { 'updateUserMetadata', 'updateAppMetadata', 'getGuardianEnrollments', - 'regenerateRecoveryCode' + 'regenerateRecoveryCode', + 'getRoles', + 'assignRoles', + 'removeRoles', + 'getPermissions', + 'assignPermissions', + 'removePermissions' ]; methods.forEach(function(method) { @@ -1035,4 +1041,438 @@ describe('UsersManager', function() { }); }); }); + + describe('#getRoles', function() { + var data = { + id: 'user_id' + }; + + beforeEach(function() { + this.request = nock(API_URL) + .get('/users/' + data.id + '/roles') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.getRoles(data, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.users.getRoles(data).then(done.bind(null, null)); + }); + + it('should perform a GET request to /api/v2/users/user_id/roles', function(done) { + var request = this.request; + + this.users.getRoles(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/users/' + data.id + '/roles') + .reply(500); + + this.users.getRoles(data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/users/' + data.id + '/roles') + .matchHeader('authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.getRoles(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#assignRoles', function() { + beforeEach(function() { + this.data = { + id: 'user_id' + }; + this.body = { roles: ['role1', 'role2', 'role3'] }; + + this.request = nock(API_URL) + .post('/users/' + this.data.id + '/roles') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.assignRoles(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.users + .assignRoles(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/roles') + .reply(500); + + this.users.assignRoles(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a POST request to /api/v2/users/user_id/roles', function(done) { + var request = this.request; + + this.users.assignRoles(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/roles', this.body) + .reply(200); + + this.users.assignRoles(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/roles') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.assignRoles(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#removeRoles', function() { + beforeEach(function() { + this.data = { + id: 'user_id' + }; + this.body = { roles: ['role1', 'role2', 'role3'] }; + + this.request = nock(API_URL) + .delete('/users/' + this.data.id + '/roles', {}) + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.removeRoles(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.users + .removeRoles(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/roles') + .reply(500); + + this.users.removeRoles(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a DELETE request to /api/v2/users/user_id/roles', function(done) { + var request = this.request; + + this.users.removeRoles(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/users/' + this.data.id + '/roles', this.body) + .reply(200); + + this.users.removeRoles(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/users/' + this.data.id + '/roles') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.removeRoles(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#getPermissions', function() { + var data = { + id: 'user_id' + }; + + beforeEach(function() { + this.request = nock(API_URL) + .get('/users/' + data.id + '/permissions') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.getPermissions(data, done.bind(null, null)); + }); + + it('should return a promise when no callback is given', function(done) { + this.users.getPermissions(data).then(done.bind(null, null)); + }); + + it('should perform a GET request to /api/v2/users/user_id/permissions', function(done) { + var request = this.request; + + this.users.getPermissions(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/users/' + data.id + '/permissions') + .reply(500); + + this.users.getPermissions(data).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should include the token in the authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .get('/users/' + data.id + '/permissions') + .matchHeader('authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.getPermissions(data).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#assignPermissions', function() { + beforeEach(function() { + this.data = { + id: 'user_id' + }; + this.body = { permission_name: 'My Permission', resource_server_identifier: 'test123' }; + + this.request = nock(API_URL) + .post('/users/' + this.data.id + '/permissions') + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.assignPermissions(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.users + .assignPermissions(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/permissions') + .reply(500); + + this.users.assignPermissions(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a POST request to /api/v2/users/user_id/permissions', function(done) { + var request = this.request; + + this.users.assignPermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/permissions', this.body) + .reply(200); + + this.users.assignPermissions(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/permissions') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.assignPermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); + + describe('#removePermissions', function() { + beforeEach(function() { + this.data = { + id: 'user_id' + }; + this.body = { permission_name: 'My Permission', resource_server_identifier: 'test123' }; + + this.request = nock(API_URL) + .delete('/users/' + this.data.id + '/permissions', {}) + .reply(200); + }); + + it('should accept a callback', function(done) { + this.users.removePermissions(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.users + .removePermissions(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/users/' + this.data.id + '/permissions') + .reply(500); + + this.users.removePermissions(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a DELETE request to /api/v2/users/user_id/permissions', function(done) { + var request = this.request; + + this.users.removePermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/users/' + this.data.id + '/permissions', this.body) + .reply(200); + + this.users.removePermissions(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .delete('/users/' + this.data.id + '/permissions') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.users.removePermissions(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); }); From bfa2ce7b99454168e2d12dfb5eefd8c63f44df09 Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Mon, 18 Mar 2019 14:16:17 -0300 Subject: [PATCH 20/37] v2.16.0 --- CHANGELOG.md | 8 + docs/RetryRestClient.js.html | 4 +- docs/auth_DatabaseAuthenticator.js.html | 4 +- docs/auth_OAUthWithIDTokenValidation.js.html | 4 +- docs/auth_OAuthAuthenticator.js.html | 4 +- docs/auth_PasswordlessAuthenticator.js.html | 4 +- docs/auth_TokensManager.js.html | 4 +- docs/auth_UsersManager.js.html | 4 +- docs/auth_index.js.html | 4 +- docs/external-RestClient.html | 24 +- docs/index.html | 4 +- docs/index.js.html | 4 +- ...anagement_BlacklistedTokensManager.js.html | 4 +- docs/management_ClientGrantsManager.js.html | 4 +- docs/management_ClientsManager.js.html | 4 +- docs/management_ConnectionsManager.js.html | 4 +- docs/management_CustomDomainsManager.js.html | 4 +- ...anagement_DeviceCredentialsManager.js.html | 4 +- docs/management_EmailProviderManager.js.html | 4 +- docs/management_EmailTemplatesManager.js.html | 4 +- docs/management_GrantsManager.js.html | 179 ++ docs/management_GuardianManager.js.html | 4 +- docs/management_JobsManager.js.html | 4 +- docs/management_LogsManager.js.html | 4 +- ...management_ManagementTokenProvider.js.html | 4 +- .../management_ResourceServersManager.js.html | 4 +- docs/management_RulesConfigsManager.js.html | 4 +- docs/management_RulesManager.js.html | 4 +- docs/management_StatsManager.js.html | 4 +- docs/management_TenantManager.js.html | 4 +- docs/management_TicketsManager.js.html | 4 +- docs/management_UsersManager.js.html | 4 +- docs/management_index.js.html | 75 +- docs/module-auth.AuthenticationClient.html | 4 +- docs/module-auth.DatabaseAuthenticator.html | 4 +- ...odule-auth.OAUthWithIDTokenValidation.html | 4 +- docs/module-auth.OAuthAuthenticator.html | 4 +- ...module-auth.PasswordlessAuthenticator.html | 4 +- docs/module-auth.TokensManager.html | 4 +- docs/module-auth.UsersManager.html | 4 +- docs/module-auth.html | 4 +- ...e-management.BlacklistedTokensManager.html | 4 +- ...module-management.ClientGrantsManager.html | 4 +- docs/module-management.ClientsManager.html | 4 +- .../module-management.ConnectionsManager.html | 4 +- ...odule-management.CustomDomainsManager.html | 4 +- ...e-management.DeviceCredentialsManager.html | 4 +- ...odule-management.EmailProviderManager.html | 4 +- ...dule-management.EmailTemplatesManager.html | 4 +- docs/module-management.GrantsManager.html | 1524 +++++++++++++++++ docs/module-management.GuardianManager.html | 4 +- docs/module-management.JobsManager.html | 4 +- docs/module-management.LogsManager.html | 4 +- docs/module-management.ManagementClient.html | 667 +++++++- ...le-management.ManagementTokenProvider.html | 4 +- ...ule-management.ResourceServersManager.html | 4 +- docs/module-management.RetryRestClient.html | 4 +- ...module-management.RulesConfigsManager.html | 4 +- docs/module-management.RulesManager.html | 4 +- docs/module-management.StatsManager.html | 4 +- docs/module-management.TenantManager.html | 4 +- docs/module-management.TicketsManager.html | 4 +- docs/module-management.UsersManager.html | 4 +- docs/module-management.html | 7 +- docs/module-utils.html | 4 +- docs/utils.js.html | 4 +- package.json | 2 +- 67 files changed, 2493 insertions(+), 229 deletions(-) create mode 100644 docs/management_GrantsManager.js.html create mode 100644 docs/module-management.GrantsManager.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 83c30723f..baa634fba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [v2.16.0](https://github.com/auth0/node-auth0/tree/v2.16.0) (2019-03-18) + +[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.15.0...v2.16.0) + +**Added** + +* Add support for Auth0 Grants [\#343](https://github.com/auth0/node-auth0/pull/343) ([jsmpereira](https://github.com/jsmpereira)) + ## [v2.15.0](https://github.com/auth0/node-auth0/tree/v2.15.0) (2019-03-11) [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.14.0...v2.15.0) diff --git a/docs/RetryRestClient.js.html b/docs/RetryRestClient.js.html index 4796c1884..4fc11d1e3 100644 --- a/docs/RetryRestClient.js.html +++ b/docs/RetryRestClient.js.html @@ -24,7 +24,7 @@
@@ -207,7 +207,7 @@

RetryRestClient.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_DatabaseAuthenticator.js.html b/docs/auth_DatabaseAuthenticator.js.html index 81b0a5a0a..2f9d5a3a1 100644 --- a/docs/auth_DatabaseAuthenticator.js.html +++ b/docs/auth_DatabaseAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -345,7 +345,7 @@

auth/DatabaseAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_OAUthWithIDTokenValidation.js.html b/docs/auth_OAUthWithIDTokenValidation.js.html index ec4acfc0a..401e86a61 100644 --- a/docs/auth_OAUthWithIDTokenValidation.js.html +++ b/docs/auth_OAUthWithIDTokenValidation.js.html @@ -24,7 +24,7 @@
@@ -158,7 +158,7 @@

auth/OAUthWithIDTokenValidation.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_OAuthAuthenticator.js.html b/docs/auth_OAuthAuthenticator.js.html index 727dcef3b..d10f1c13a 100644 --- a/docs/auth_OAuthAuthenticator.js.html +++ b/docs/auth_OAuthAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -424,7 +424,7 @@

auth/OAuthAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_PasswordlessAuthenticator.js.html b/docs/auth_PasswordlessAuthenticator.js.html index 88599915d..945d78d6c 100644 --- a/docs/auth_PasswordlessAuthenticator.js.html +++ b/docs/auth_PasswordlessAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -286,7 +286,7 @@

auth/PasswordlessAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_TokensManager.js.html b/docs/auth_TokensManager.js.html index 2cc6f4c80..f64d2a0f6 100644 --- a/docs/auth_TokensManager.js.html +++ b/docs/auth_TokensManager.js.html @@ -24,7 +24,7 @@
@@ -226,7 +226,7 @@

auth/TokensManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_UsersManager.js.html b/docs/auth_UsersManager.js.html index 65d309b9d..c5d7e9da6 100644 --- a/docs/auth_UsersManager.js.html +++ b/docs/auth_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -224,7 +224,7 @@

auth/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_index.js.html b/docs/auth_index.js.html index 15aacbf37..78496dcab 100644 --- a/docs/auth_index.js.html +++ b/docs/auth_index.js.html @@ -24,7 +24,7 @@
@@ -632,7 +632,7 @@

auth/index.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/external-RestClient.html b/docs/external-RestClient.html index 4975cbc43..3799198a8 100644 --- a/docs/external-RestClient.html +++ b/docs/external-RestClient.html @@ -24,7 +24,7 @@
@@ -87,7 +87,7 @@

Source:
@@ -187,7 +187,7 @@

Source:
@@ -287,7 +287,7 @@

Source:
@@ -487,7 +487,7 @@

Source:
@@ -587,7 +587,7 @@

Source:
@@ -687,7 +687,7 @@

Source:
@@ -787,7 +787,7 @@

Source:
@@ -887,7 +887,7 @@

Source:
@@ -987,7 +987,7 @@

Source:
@@ -1087,7 +1087,7 @@

Source:
@@ -1139,7 +1139,7 @@


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/index.html b/docs/index.html index 35675c193..833192586 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
@@ -151,7 +151,7 @@

License

This project is licensed under the MIT license. See the

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/index.js.html b/docs/index.js.html index 9e941863c..de8d6d96f 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -24,7 +24,7 @@
@@ -61,7 +61,7 @@

index.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html index 57186a500..bcff23394 100644 --- a/docs/management_BlacklistedTokensManager.js.html +++ b/docs/management_BlacklistedTokensManager.js.html @@ -24,7 +24,7 @@
@@ -153,7 +153,7 @@

management/BlacklistedTokensManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html index 090f03820..4850884f1 100644 --- a/docs/management_ClientGrantsManager.js.html +++ b/docs/management_ClientGrantsManager.js.html @@ -24,7 +24,7 @@
@@ -216,7 +216,7 @@

management/ClientGrantsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html index c8a415528..140924389 100644 --- a/docs/management_ClientsManager.js.html +++ b/docs/management_ClientsManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ClientsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html index 70edd7e7a..45945c82d 100644 --- a/docs/management_ConnectionsManager.js.html +++ b/docs/management_ConnectionsManager.js.html @@ -24,7 +24,7 @@
@@ -232,7 +232,7 @@

management/ConnectionsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html index 8940d287b..9ae700a03 100644 --- a/docs/management_CustomDomainsManager.js.html +++ b/docs/management_CustomDomainsManager.js.html @@ -24,7 +24,7 @@
@@ -241,7 +241,7 @@

management/CustomDomainsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html index 9f64551f5..2b1af95ad 100644 --- a/docs/management_DeviceCredentialsManager.js.html +++ b/docs/management_DeviceCredentialsManager.js.html @@ -24,7 +24,7 @@
@@ -177,7 +177,7 @@

management/DeviceCredentialsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html index 276f60672..1f8e53332 100644 --- a/docs/management_EmailProviderManager.js.html +++ b/docs/management_EmailProviderManager.js.html @@ -24,7 +24,7 @@
@@ -198,7 +198,7 @@

management/EmailProviderManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html index 1d5725300..d16a37ce0 100644 --- a/docs/management_EmailTemplatesManager.js.html +++ b/docs/management_EmailTemplatesManager.js.html @@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@

management/EmailTemplatesManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html new file mode 100644 index 000000000..9696f7d60 --- /dev/null +++ b/docs/management_GrantsManager.js.html @@ -0,0 +1,179 @@ + + + + + + management/GrantsManager.js - Documentation + + + + + + + + + + + + + + + + + +
+ +

management/GrantsManager.js

+ + + + + + + +
+
+
var ArgumentError = require('rest-facade').ArgumentError;
+var utils = require('../utils');
+var Auth0RestClient = require('../Auth0RestClient');
+var RetryRestClient = require('../RetryRestClient');
+/**
+ * @class GrantsManager
+ * Auth0 Grants Manager.
+ *
+ * See {@link https://auth0.com/docs/api/v2#!/Grants Grants}
+ *
+ * @constructor
+ * @memberOf module:management
+ *
+ * @param {Object} options            The client options.
+ * @param {String} options.baseUrl    The URL of the API.
+ * @param {Object} [options.headers]  Headers to be included in all requests.
+ * @param {Object} [options.retry]    Retry Policy Config
+ */
+var GrantsManager = function(options) {
+  if (options === null || typeof options !== 'object') {
+    throw new ArgumentError('Must provide client options');
+  }
+
+  if (options.baseUrl === null || options.baseUrl === undefined) {
+    throw new ArgumentError('Must provide a base URL for the API');
+  }
+
+  if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) {
+    throw new ArgumentError('The provided base URL is invalid');
+  }
+
+  /**
+   * Options object for the Rest Client instance.
+   *
+   * @type {Object}
+   */
+  var clientOptions = {
+    errorFormatter: { message: 'message', name: 'error' },
+    headers: options.headers,
+    query: { repeatParams: false }
+  };
+
+  /**
+   * Provides an abstraction layer for consuming the
+   * {@link https://auth0.com/docs/api/v2#!/Grants Auth0 Grants endpoint}.
+   *
+   * @type {external:RestClient}
+   */
+  var auth0RestClient = new Auth0RestClient(
+    options.baseUrl + '/grants/:id',
+    clientOptions,
+    options.tokenProvider
+  );
+  this.resource = new RetryRestClient(auth0RestClient, options.retry);
+};
+
+/**
+ * Get all Auth0 Grants.
+ *
+ * @method    getAll
+ * @memberOf  module:management.GrantsManager.prototype
+ *
+ * @example
+ * var params = {
+ *   per_page: 10,
+ *   page: 0,
+ *   include_totals: true,
+ *   user_id: 'USER_ID',
+ *   client_id: 'CLIENT_ID',
+ *   audience: 'AUDIENCE'
+ * };
+ *
+ * management.getGrants(params, function (err, grants) {
+ *   console.log(grants.length);
+ * });
+ *
+ * @param   {Object}    params                Grants parameters.
+ * @param   {Number}    params.per_page       Number of results per page.
+ * @param   {Number}    params.page           Page number, zero indexed.
+ * @param   {Boolean}   params.include_totals true if a query summary must be included in the result, false otherwise. Default false;
+ * @param   {String}    params.user_id        The user_id of the grants to retrieve.
+ * @param   {String}    params.client_id      The client_id of the grants to retrieve.
+ * @param   {String}    params.audience       The audience of the grants to retrieve.
+ * @param   {Function}  [cb]                  Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(GrantsManager, 'getAll', 'resource.getAll');
+
+/**
+ * Delete an Auth0 grant.
+ *
+ * @method    delete
+ * @memberOf  module:management.GrantsManager.prototype
+ *
+ * @example
+ * var params = {
+ *    id: 'GRANT_ID',
+ *    user_id: 'USER_ID'
+ * };
+ *
+ * management.deleteGrant(params, function (err) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // Grant deleted.
+ * });
+ *
+ * @param   {Object}    params         Grant parameters.
+ * @param   {String}    params.id      Grant ID.
+ * @param   {String}    params.user_id The user_id of the grants to delete.
+ * @param   {Function}  [cb]           Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(GrantsManager, 'delete', 'resource.delete');
+
+module.exports = GrantsManager;
+
+
+
+ + + + +
+ +
+ +
+ Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. +
+ + + + + diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html index 3afa11710..8b6e44737 100644 --- a/docs/management_GuardianManager.js.html +++ b/docs/management_GuardianManager.js.html @@ -24,7 +24,7 @@
@@ -328,7 +328,7 @@

management/GuardianManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html index 409665611..74929d905 100644 --- a/docs/management_JobsManager.js.html +++ b/docs/management_JobsManager.js.html @@ -24,7 +24,7 @@
@@ -354,7 +354,7 @@

management/JobsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html index 02b71be8d..5e3528292 100644 --- a/docs/management_LogsManager.js.html +++ b/docs/management_LogsManager.js.html @@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@

management/LogsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html index 61a6fa94b..81f2d0d5f 100644 --- a/docs/management_ManagementTokenProvider.js.html +++ b/docs/management_ManagementTokenProvider.js.html @@ -24,7 +24,7 @@
@@ -189,7 +189,7 @@

management/ManagementTokenProvider.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html index fafbb3aca..056216f03 100644 --- a/docs/management_ResourceServersManager.js.html +++ b/docs/management_ResourceServersManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ResourceServersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html index 439658b62..4273811b1 100644 --- a/docs/management_RulesConfigsManager.js.html +++ b/docs/management_RulesConfigsManager.js.html @@ -24,7 +24,7 @@
@@ -179,7 +179,7 @@

management/RulesConfigsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html index 93eae695b..01d16792a 100644 --- a/docs/management_RulesManager.js.html +++ b/docs/management_RulesManager.js.html @@ -24,7 +24,7 @@
@@ -248,7 +248,7 @@

management/RulesManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html index 6ef638d33..60e18bd43 100644 --- a/docs/management_StatsManager.js.html +++ b/docs/management_StatsManager.js.html @@ -24,7 +24,7 @@
@@ -174,7 +174,7 @@

management/StatsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html index 25f65f66b..5cc586f03 100644 --- a/docs/management_TenantManager.js.html +++ b/docs/management_TenantManager.js.html @@ -24,7 +24,7 @@
@@ -161,7 +161,7 @@

management/TenantManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html index 03451ef26..c9072b7c3 100644 --- a/docs/management_TicketsManager.js.html +++ b/docs/management_TicketsManager.js.html @@ -24,7 +24,7 @@
@@ -166,7 +166,7 @@

management/TicketsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html index e09e07ad9..da1311f7f 100644 --- a/docs/management_UsersManager.js.html +++ b/docs/management_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -677,7 +677,7 @@

management/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_index.js.html b/docs/management_index.js.html index a94ca9567..f4c40428e 100644 --- a/docs/management_index.js.html +++ b/docs/management_index.js.html @@ -24,7 +24,7 @@
@@ -52,6 +52,7 @@

management/index.js

// Managers. var ClientsManager = require('./ClientsManager'); var ClientGrantsManager = require('./ClientGrantsManager'); +var GrantsManager = require('./GrantsManager'); var UsersManager = require('./UsersManager'); var ConnectionsManager = require('./ConnectionsManager'); var BlacklistedTokensManager = require('./BlacklistedTokensManager'); @@ -190,6 +191,14 @@

management/index.js

*/ this.clientGrants = new ClientGrantsManager(managerOptions); + /** + * Simple abstraction for performing CRUD operations on the grants + * endpoint. + * + * @type {GrantsManager} + */ + this.grants = new GrantsManager(managerOptions); + /** * Simple abstraction for performing CRUD operations on the * users endpoint. @@ -703,6 +712,68 @@

management/index.js

*/ utils.wrapPropertyMethod(ManagementClient, 'deleteClientGrant', 'clientGrants.delete'); +/** + * Get all Auth0 Grants. + * + * @method getGrants + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { + * per_page: 10, + * page: 0, + * include_totals: true, + * user_id: USER_ID, + * client_id: CLIENT_ID, + * audience: AUDIENCE + * }; + * + * management.getGrants(params, function (err, grants) { + * console.log(grants.length); + * }); + * + * @param {Object} params Grants parameters. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {String} params.user_id The user_id of the grants to retrieve. + * @param {String} params.client_id The client_id of the grants to retrieve. + * @param {String} params.audience The audience of the grants to retrieve. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getGrants', 'grants.getAll'); + +/** + * Delete an Auth0 grant. + * + * @method deleteGrant + * @memberOf module:management.GrantsManager.prototype + * + * @example + * var params = { + * id: GRANT_ID, + * user_id: USER_ID + * }; + * + * management.deleteGrant(params, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Grant deleted. + * }); + * + * @param {Object} params Grant parameters. + * @param {String} params.id Grant ID. + * @param {String} params.user_id The user_id of the grants to delete. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'deleteGrant', 'grants.delete'); + /** * Create an Auth0 credential. * @@ -2302,7 +2373,7 @@

management/index.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html index 3759ff8a2..cc2c32621 100644 --- a/docs/module-auth.AuthenticationClient.html +++ b/docs/module-auth.AuthenticationClient.html @@ -24,7 +24,7 @@
@@ -3894,7 +3894,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html index 64f95eedb..90932c634 100644 --- a/docs/module-auth.DatabaseAuthenticator.html +++ b/docs/module-auth.DatabaseAuthenticator.html @@ -24,7 +24,7 @@
@@ -1738,7 +1738,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html index f161a65ee..3649be502 100644 --- a/docs/module-auth.OAUthWithIDTokenValidation.html +++ b/docs/module-auth.OAUthWithIDTokenValidation.html @@ -24,7 +24,7 @@
@@ -414,7 +414,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html index 9aec2c527..993a84683 100644 --- a/docs/module-auth.OAuthAuthenticator.html +++ b/docs/module-auth.OAuthAuthenticator.html @@ -24,7 +24,7 @@
@@ -1796,7 +1796,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html index e20079a2c..a3a317708 100644 --- a/docs/module-auth.PasswordlessAuthenticator.html +++ b/docs/module-auth.PasswordlessAuthenticator.html @@ -24,7 +24,7 @@
@@ -1492,7 +1492,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html index c01be4808..3f2e224de 100644 --- a/docs/module-auth.TokensManager.html +++ b/docs/module-auth.TokensManager.html @@ -24,7 +24,7 @@
@@ -352,7 +352,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html index f35ae1e47..9f54e8205 100644 --- a/docs/module-auth.UsersManager.html +++ b/docs/module-auth.UsersManager.html @@ -24,7 +24,7 @@
@@ -1009,7 +1009,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.html b/docs/module-auth.html index cc295c8ec..a569091fd 100644 --- a/docs/module-auth.html +++ b/docs/module-auth.html @@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@

Classes


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html index 094d54110..e45a51278 100644 --- a/docs/module-management.BlacklistedTokensManager.html +++ b/docs/module-management.BlacklistedTokensManager.html @@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html index a14a07f8c..43b5a1cd5 100644 --- a/docs/module-management.ClientGrantsManager.html +++ b/docs/module-management.ClientGrantsManager.html @@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html index 0b77f92d1..e534945d0 100644 --- a/docs/module-management.ClientsManager.html +++ b/docs/module-management.ClientsManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html index c6a8da76d..4caac30c4 100644 --- a/docs/module-management.ConnectionsManager.html +++ b/docs/module-management.ConnectionsManager.html @@ -24,7 +24,7 @@
@@ -1899,7 +1899,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html index c61671616..3a70ea836 100644 --- a/docs/module-management.CustomDomainsManager.html +++ b/docs/module-management.CustomDomainsManager.html @@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html index c87bb56fc..421ed06f7 100644 --- a/docs/module-management.DeviceCredentialsManager.html +++ b/docs/module-management.DeviceCredentialsManager.html @@ -24,7 +24,7 @@
@@ -1179,7 +1179,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html index 530ab5dcb..e055228b4 100644 --- a/docs/module-management.EmailProviderManager.html +++ b/docs/module-management.EmailProviderManager.html @@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html index ecaea5ef5..619a896b8 100644 --- a/docs/module-management.EmailTemplatesManager.html +++ b/docs/module-management.EmailTemplatesManager.html @@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html new file mode 100644 index 000000000..c7503b11c --- /dev/null +++ b/docs/module-management.GrantsManager.html @@ -0,0 +1,1524 @@ + + + + + + GrantsManager - Documentation + + + + + + + + + + + + + + + + + +
+ +

GrantsManager

+ + + + + + + +
+ +
+ +

+ management. + + GrantsManager +

+ +

GrantsManager +Auth0 Grants Manager.

+

See Grants

+ + +
+ +
+
+ + +
+ + +

Constructor

+ + +

new GrantsManager(options)

+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + +

NameTypeAttributesDescription
params - - -Object - - - - - - -

Rule parameters.

- - + +
Parameters:
+ @@ -17434,6 +20411,8 @@
Parameters:
+ + @@ -17444,40 +20423,6 @@
Parameters:
- - - - - - - - - - - - - - - - -
TypeAttributes
id - - -String - - - - -

Rule ID.

- -
- - -
data -

Updated rule data.

+

The new tenant settings.

params + + +Object + + + + + + + + + + +

The user parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The user id.

+ +
+ + +
data -

The new tenant settings.

+

New user data.

-

Callback function.

+

Callback function

-

The user parameters.

+

The user data object..

@@ -18001,7 +21032,7 @@
Parameters:
datametadata @@ -18026,7 +21057,7 @@
Parameters:
-

New user data.

+

New user metadata.

-

The user data object..

+

Custom Domain parameters.

@@ -18290,7 +21324,7 @@
Parameters:
-

The user id.

+

Custom Domain ID.

metadata - - -Object - - - - - - - - - - -

New user metadata.

- -
cb -

Callback function

+

Callback function.

+ * This method takes an optional object as first argument that may be used to + * specify pagination settings. If pagination options are not present, + * the first page of a limited number of results will be returned. + * + * This method takes a first argument as the roleId and returns the permissions within that role + * + * This method takes a roleId and returns the users with that role assigned + * + * This method takes an optional object as first argument that may be used to + * specify pagination settings. If pagination options are not present, + * the first page of a limited number of results will be returned. + * + * This method takes a roleId and + * returns all permissions within that role + * + * + * This method takes a roleId and + * returns all users within that role + * + *
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + +

The client options.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
baseUrl + + +String + + + + + + + + + + +

The URL of the API.

+ +
headers + + +Object + + + + + + <optional>
+ + + + + +
+

Headers to be included in all requests.

+ +
retry + + +Object + + + + + + <optional>
+ + + + + +
+

Retry Policy Config

+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +

Members

+ + + +
+

(inner) auth0RestClient :external:RestClient

+ + + + +
+

Provides an abstraction layer for consuming the +Auth0 Grants endpoint.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+ + + + + + +
+ + + +
+

(inner) clientOptions :Object

+ + + + +
+

Options object for the Rest Client instance.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+
    +
  • + +Object + + +
  • +
+ + + + + +
+ + + + + +

Methods

+ + + +
+ + + +

delete(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Delete an Auth0 grant.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Grant parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Grant ID.

+ +
user_id + + +String + + + + +

The user_id of the grants to delete.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+   id: 'GRANT_ID',
+   user_id: 'USER_ID'
+};
+
+management.deleteGrant(params, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Grant deleted.
+});
+ +
+ +
+ + +
+ + + +

deleteGrant(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Delete an Auth0 grant.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Grant parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Grant ID.

+ +
user_id + + +String + + + + +

The user_id of the grants to delete.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+   id: GRANT_ID,
+   user_id: USER_ID
+};
+
+management.deleteGrant(params, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Grant deleted.
+});
+ +
+ +
+ + +
+ + + +

getAll(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 Grants.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Grants parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

+ +
user_id + + +String + + + + +

The user_id of the grants to retrieve.

+ +
client_id + + +String + + + + +

The client_id of the grants to retrieve.

+ +
audience + + +String + + + + +

The audience of the grants to retrieve.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+  per_page: 10,
+  page: 0,
+  include_totals: true,
+  user_id: 'USER_ID',
+  client_id: 'CLIENT_ID',
+  audience: 'AUDIENCE'
+};
+
+management.getGrants(params, function (err, grants) {
+  console.log(grants.length);
+});
+ +
+ +
+ + + + + + + + + + + + + +
+ +
+ +
+ Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. +
+ + + + + \ No newline at end of file diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html index 59e6fb9d8..c86c3e833 100644 --- a/docs/module-management.GuardianManager.html +++ b/docs/module-management.GuardianManager.html @@ -24,7 +24,7 @@
@@ -1440,7 +1440,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html index a8d359bf4..94b44b410 100644 --- a/docs/module-management.JobsManager.html +++ b/docs/module-management.JobsManager.html @@ -24,7 +24,7 @@
@@ -1849,7 +1849,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html index c022c6e50..3acd3f88b 100644 --- a/docs/module-management.LogsManager.html +++ b/docs/module-management.LogsManager.html @@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html index 843cb3828..7505f6676 100644 --- a/docs/module-management.ManagementClient.html +++ b/docs/module-management.ManagementClient.html @@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@

new M
Source:
@@ -723,7 +723,7 @@

blac
Source:
@@ -798,7 +798,7 @@

clientGra
Source:
@@ -873,7 +873,7 @@

clientsSource:
@@ -948,7 +948,7 @@

connection
Source:
@@ -1023,7 +1023,7 @@

customDo
Source:
@@ -1098,7 +1098,7 @@

devi
Source:
@@ -1173,7 +1173,7 @@

emailPro
Source:
@@ -1248,7 +1248,7 @@

emailTe
Source:
@@ -1275,6 +1275,81 @@

Type:
+

+ + + +
+

grants :GrantsManager

+ + + + +
+

Simple abstraction for performing CRUD operations on the grants +endpoint.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+
    +
  • + +GrantsManager + + +
  • +
+ + + + +
@@ -1323,7 +1398,7 @@

guardianSource:
@@ -1397,7 +1472,7 @@

jobsSource:
@@ -1471,7 +1546,7 @@

logsSource:
@@ -1546,7 +1621,7 @@

resour
Source:
@@ -1621,7 +1696,7 @@

rulesSource:
@@ -1695,7 +1770,7 @@

rulesConf
Source:
@@ -1769,7 +1844,7 @@

statsSource:
@@ -1843,7 +1918,7 @@

tenantSource:
@@ -1917,7 +1992,7 @@

ticketsSource:
@@ -1992,7 +2067,7 @@

usersSource:
@@ -2076,7 +2151,7 @@

blackli
Source:
@@ -2376,7 +2451,7 @@

Source:
@@ -2594,7 +2669,7 @@

createCli
Source:
@@ -2812,7 +2887,7 @@

crea
Source:
@@ -3030,7 +3105,7 @@

creat
Source:
@@ -3248,7 +3323,7 @@

cre
Source:
@@ -3466,7 +3541,7 @@

Source:
@@ -3684,7 +3759,7 @@

Source:
@@ -3868,7 +3943,7 @@

Source:
@@ -4048,7 +4123,7 @@

Source:
@@ -4234,7 +4309,7 @@

c
Source:
@@ -4452,7 +4527,7 @@

createRule<
Source:
@@ -4670,7 +4745,7 @@

createUser<
Source:
@@ -4890,7 +4965,7 @@

deleteA
Source:
@@ -5074,7 +5149,7 @@

deleteCli
Source:
@@ -5343,7 +5418,7 @@

dele
Source:
@@ -5612,7 +5687,7 @@

delet
Source:
@@ -5881,7 +5956,7 @@

del
Source:
@@ -6150,7 +6225,7 @@

Source:
@@ -6421,7 +6496,7 @@

de
Source:
@@ -6605,7 +6680,7 @@

Source:
@@ -6874,7 +6949,7 @@

d
Source:
@@ -7143,7 +7218,7 @@

deleteRule<
Source:
@@ -7412,7 +7487,7 @@

dele
Source:
@@ -7681,7 +7756,7 @@

deleteUser<
Source:
@@ -7950,7 +8025,7 @@

Source:
@@ -8251,7 +8326,7 @@

Source:
@@ -8548,7 +8623,7 @@

exportUser
Source:
@@ -8962,7 +9037,7 @@

ge
Source:
@@ -9146,7 +9221,7 @@

g
Source:
@@ -9326,7 +9401,7 @@

getClientSource:
@@ -9595,7 +9670,7 @@

getCli
Source:
@@ -9922,7 +9997,7 @@

getClien
Source:
@@ -10030,7 +10105,7 @@

getClients<
Source:
@@ -10357,7 +10432,7 @@

getConne
Source:
@@ -10626,7 +10701,7 @@

getConn
Source:
@@ -10953,7 +11028,7 @@

getCus
Source:
@@ -11222,7 +11297,7 @@

getCu
Source:
@@ -11338,7 +11413,7 @@

getDaily
Source:
@@ -11638,7 +11713,7 @@

g
Source:
@@ -11818,7 +11893,7 @@

getEm
Source:
@@ -12086,6 +12161,410 @@

Example

+
+ + + +

getGrants(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 Grants.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Grants parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

+ +
user_id + + +String + + + + +

The user_id of the grants to retrieve.

+ +
client_id + + +String + + + + +

The client_id of the grants to retrieve.

+ +
audience + + +String + + + + +

The audience of the grants to retrieve.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+  per_page: 10,
+  page: 0,
+  include_totals: true,
+  user_id: USER_ID,
+  client_id: CLIENT_ID,
+  audience: AUDIENCE
+};
+
+management.getGrants(params, function (err, grants) {
+  console.log(grants.length);
+});
+ +
+ +
+ +
@@ -12133,7 +12612,7 @@

Source:
@@ -12398,7 +12877,7 @@

Source:
@@ -12663,7 +13142,7 @@

getJobSource:
@@ -12937,7 +13416,7 @@

getLogSource:
@@ -13206,7 +13685,7 @@

getLogsSource:
@@ -13713,7 +14192,7 @@

getR
Source:
@@ -13982,7 +14461,7 @@

get
Source:
@@ -14309,7 +14788,7 @@

getRuleSource:
@@ -14578,7 +15057,7 @@

getRulesSource:
@@ -14905,7 +15384,7 @@

getRul
Source:
@@ -15025,7 +15504,7 @@

getT
Source:
@@ -15209,7 +15688,7 @@

getUserSource:
@@ -15474,7 +15953,7 @@

getUserLog
Source:
@@ -15849,7 +16328,7 @@

getUsersSource:
@@ -16213,7 +16692,7 @@

getUse
Source:
@@ -16435,7 +16914,7 @@

importUser
Source:
@@ -16733,7 +17212,7 @@

linkUsersSource:
@@ -17068,7 +17547,7 @@

Source:
@@ -17333,7 +17812,7 @@

Source:
@@ -17604,7 +18083,7 @@

setRule
Source:
@@ -17961,7 +18440,7 @@

unlinkUser
Source:
@@ -18284,7 +18763,7 @@

upda
Source:
@@ -18593,7 +19072,7 @@

updateCli
Source:
@@ -18899,7 +19378,7 @@

upda
Source:
@@ -19209,7 +19688,7 @@

updat
Source:
@@ -19515,7 +19994,7 @@

up
Source:
@@ -19768,7 +20247,7 @@

u
Source:
@@ -20074,7 +20553,7 @@

updateRule<
Source:
@@ -20379,7 +20858,7 @@

u
Source:
@@ -20595,7 +21074,7 @@

updateUser<
Source:
@@ -20901,7 +21380,7 @@

upd
Source:
@@ -21210,7 +21689,7 @@

ver
Source:
@@ -21448,7 +21927,7 @@

Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ManagementTokenProvider.html b/docs/module-management.ManagementTokenProvider.html index ff9ee87b1..d54c5c3d0 100644 --- a/docs/module-management.ManagementTokenProvider.html +++ b/docs/module-management.ManagementTokenProvider.html @@ -24,7 +24,7 @@
@@ -633,7 +633,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ResourceServersManager.html b/docs/module-management.ResourceServersManager.html index 506dcf254..68b038b8a 100644 --- a/docs/module-management.ResourceServersManager.html +++ b/docs/module-management.ResourceServersManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RetryRestClient.html b/docs/module-management.RetryRestClient.html index 7088c566b..7b3710806 100644 --- a/docs/module-management.RetryRestClient.html +++ b/docs/module-management.RetryRestClient.html @@ -24,7 +24,7 @@
@@ -377,7 +377,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RulesConfigsManager.html b/docs/module-management.RulesConfigsManager.html index 502ae2f83..4ed666499 100644 --- a/docs/module-management.RulesConfigsManager.html +++ b/docs/module-management.RulesConfigsManager.html @@ -24,7 +24,7 @@
@@ -1317,7 +1317,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RulesManager.html b/docs/module-management.RulesManager.html index b7640c53a..7f9a2d970 100644 --- a/docs/module-management.RulesManager.html +++ b/docs/module-management.RulesManager.html @@ -24,7 +24,7 @@
@@ -1910,7 +1910,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.StatsManager.html b/docs/module-management.StatsManager.html index ce9e4385a..5bd99e37f 100644 --- a/docs/module-management.StatsManager.html +++ b/docs/module-management.StatsManager.html @@ -24,7 +24,7 @@
@@ -919,7 +919,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.TenantManager.html b/docs/module-management.TenantManager.html index c659e73ae..1c823a01d 100644 --- a/docs/module-management.TenantManager.html +++ b/docs/module-management.TenantManager.html @@ -24,7 +24,7 @@
@@ -835,7 +835,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.TicketsManager.html b/docs/module-management.TicketsManager.html index ccc194f35..314bbde5f 100644 --- a/docs/module-management.TicketsManager.html +++ b/docs/module-management.TicketsManager.html @@ -24,7 +24,7 @@
@@ -805,7 +805,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.UsersManager.html b/docs/module-management.UsersManager.html index 33658deef..0a798e1d0 100644 --- a/docs/module-management.UsersManager.html +++ b/docs/module-management.UsersManager.html @@ -24,7 +24,7 @@
@@ -5075,7 +5075,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.html b/docs/module-management.html index 138034ca4..7535febd0 100644 --- a/docs/module-management.html +++ b/docs/module-management.html @@ -24,7 +24,7 @@
@@ -86,6 +86,9 @@

Classes

EmailTemplatesManager
+
GrantsManager
+
+
GuardianManager
@@ -150,7 +153,7 @@

Classes


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-utils.html b/docs/module-utils.html index 0a882f6e8..5f35d0d26 100644 --- a/docs/module-utils.html +++ b/docs/module-utils.html @@ -24,7 +24,7 @@
@@ -339,7 +339,7 @@

(static)
- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/utils.js.html b/docs/utils.js.html index c1d593455..d73697cdf 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -24,7 +24,7 @@
@@ -124,7 +124,7 @@

utils.js


- Generated by JSDoc 3.5.5 on Mon Mar 11 2019 17:57:22 GMT-0300 (-03) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/package.json b/package.json index 80138069b..341b38cbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0", - "version": "2.15.0", + "version": "2.16.0", "description": "SDK for Auth0 API v2", "main": "src/index.js", "files": ["src"], From 43bad6e59ba996eaae22cfad2e16a0f258450302 Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 10:58:13 -0400 Subject: [PATCH 21/37] Fix codecov tests --- test/management/users.tests.js | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/test/management/users.tests.js b/test/management/users.tests.js index aa5808473..5a01cf536 100644 --- a/test/management/users.tests.js +++ b/test/management/users.tests.js @@ -1113,6 +1113,20 @@ describe('UsersManager', function() { .reply(200); }); + it('should validate empty user_id', function() { + var _this = this; + expect(function() { + _this.users.assignRoles({ id: null }, _this.body, function() {}); + }).to.throw('The user_id cannot be null or undefined'); + }); + + it('should validate non-string user_id', function() { + var _this = this; + expect(function() { + _this.users.assignRoles({ id: 127 }, _this.body, function() {}); + }).to.throw('The user_id has to be a string'); + }); + it('should accept a callback', function(done) { this.users.assignRoles(this.data, {}, function() { done(); @@ -1192,6 +1206,20 @@ describe('UsersManager', function() { .reply(200); }); + it('should validate empty user_id', function() { + var _this = this; + expect(function() { + _this.users.removeRoles({ id: null }, this.body, function() {}); + }).to.throw('The user_id cannot be null or undefined'); + }); + + it('should validate non-string user_id', function() { + var _this = this; + expect(function() { + _this.users.removeRoles({ id: 123 }, _this.body, function() {}); + }).to.throw('The user_id has to be a string'); + }); + it('should accept a callback', function(done) { this.users.removeRoles(this.data, {}, function() { done(); @@ -1330,6 +1358,20 @@ describe('UsersManager', function() { .reply(200); }); + it('should validate empty user_id', function() { + var _this = this; + expect(function() { + _this.users.assignPermissions({ id: null }, this.body, function() {}); + }).to.throw('The user_id cannot be null or undefined'); + }); + + it('should validate non-string user_id', function() { + var _this = this; + expect(function() { + _this.users.assignPermissions({ id: 123 }, _this.body, function() {}); + }).to.throw('The user_id has to be a string'); + }); + it('should accept a callback', function(done) { this.users.assignPermissions(this.data, {}, function() { done(); @@ -1409,6 +1451,20 @@ describe('UsersManager', function() { .reply(200); }); + it('should validate empty user_id', function() { + var _this = this; + expect(function() { + _this.users.assignPermissions({ id: null }, this.body, function() {}); + }).to.throw('The user_id cannot be null or undefined'); + }); + + it('should validate non-string user_id', function() { + var _this = this; + expect(function() { + _this.users.assignPermissions({ id: 123 }, _this.body, function() {}); + }).to.throw('The user_id has to be a string'); + }); + it('should accept a callback', function(done) { this.users.removePermissions(this.data, {}, function() { done(); From 253adf440fe0fa1432c887442a3f3f53bd6c9275 Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 11:03:20 -0400 Subject: [PATCH 22/37] Fix codecov tests - fix typo --- test/management/users.tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/management/users.tests.js b/test/management/users.tests.js index 5a01cf536..72b8156c5 100644 --- a/test/management/users.tests.js +++ b/test/management/users.tests.js @@ -1454,14 +1454,14 @@ describe('UsersManager', function() { it('should validate empty user_id', function() { var _this = this; expect(function() { - _this.users.assignPermissions({ id: null }, this.body, function() {}); + _this.users.removePermissions({ id: null }, this.body, function() {}); }).to.throw('The user_id cannot be null or undefined'); }); it('should validate non-string user_id', function() { var _this = this; expect(function() { - _this.users.assignPermissions({ id: 123 }, _this.body, function() {}); + _this.users.removePermissions({ id: 123 }, _this.body, function() {}); }).to.throw('The user_id has to be a string'); }); From b8b6b640dc42ca61ea2f18040d753d31c64822b2 Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 11:15:30 -0400 Subject: [PATCH 23/37] Fix codecov tests - adding more tests --- test/management/users.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/management/users.tests.js b/test/management/users.tests.js index 72b8156c5..c9cbe5d85 100644 --- a/test/management/users.tests.js +++ b/test/management/users.tests.js @@ -823,6 +823,13 @@ describe('UsersManager', function() { .reply(200); }); + it('should validate empty user_id', function() { + var _this = this; + expect(function() { + _this.users.logs({ id: null }, function() {}); + }).to.throw('The user_id cannot be null or undefined'); + }); + it('should accept a callback', function(done) { this.users.logs(data, done.bind(null, null)); }); From 13f01aa610d4b08480fbfc65192527fa471a2024 Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 11:33:11 -0400 Subject: [PATCH 24/37] Fix codecov tests --- test/management/users.tests.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/management/users.tests.js b/test/management/users.tests.js index c9cbe5d85..72b8156c5 100644 --- a/test/management/users.tests.js +++ b/test/management/users.tests.js @@ -823,13 +823,6 @@ describe('UsersManager', function() { .reply(200); }); - it('should validate empty user_id', function() { - var _this = this; - expect(function() { - _this.users.logs({ id: null }, function() {}); - }).to.throw('The user_id cannot be null or undefined'); - }); - it('should accept a callback', function(done) { this.users.logs(data, done.bind(null, null)); }); From 57170e94dcaf52d099295270fa0d3d53763a49e5 Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 11:52:00 -0400 Subject: [PATCH 25/37] Fix codecov tests for RolesManager --- test/management/roles.tests.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/management/roles.tests.js b/test/management/roles.tests.js index 9ebd83f80..d5687af26 100644 --- a/test/management/roles.tests.js +++ b/test/management/roles.tests.js @@ -561,6 +561,20 @@ describe('RolesManager', function() { .reply(200); }); + it('should validate empty roleId', function() { + var _this = this; + expect(function() { + _this.roles.removePermissions({ id: null }, _this.body, function() {}); + }).to.throw('The roleId passed in params cannot be null or undefined'); + }); + + it('should validate non-string roleId', function() { + var _this = this; + expect(function() { + _this.roles.removePermissions({ id: 123 }, _this.body, function() {}); + }).to.throw('The role Id has to be a string'); + }); + it('should accept a callback', function(done) { this.roles.removePermissions(this.data, {}, function() { done(); From 109ff6df1683d3452128f19eacd282df36b99bcf Mon Sep 17 00:00:00 2001 From: Pushp Abrol Date: Wed, 27 Mar 2019 15:37:07 -0400 Subject: [PATCH 26/37] Adding endpoint to assign users to role and tests --- src/management/RolesManager.js | 47 +++++++++++++++++ test/management/roles.tests.js | 96 +++++++++++++++++++++++++++++++++- 2 files changed, 142 insertions(+), 1 deletion(-) diff --git a/src/management/RolesManager.js b/src/management/RolesManager.js index 37ef30ce4..826a15cef 100644 --- a/src/management/RolesManager.js +++ b/src/management/RolesManager.js @@ -352,4 +352,51 @@ RolesManager.prototype.getUsers = function(params, callback) { return this.users.getAll(params, callback); }; +/** + * Assign users to a role + * + * @method assignUsers + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "users" : ["userId1","userId2"]}; + * + * management.roles.assignUsers(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions added. + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +RolesManager.prototype.assignUsers = function(params, data, cb) { + data = data || {}; + params = params || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The roleId passed in params cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The role Id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.create(params, data, cb); + } + + return this.users.create(params, data); +}; + module.exports = RolesManager; diff --git a/test/management/roles.tests.js b/test/management/roles.tests.js index d5687af26..fa336e1ae 100644 --- a/test/management/roles.tests.js +++ b/test/management/roles.tests.js @@ -26,7 +26,8 @@ describe('RolesManager', function() { 'getPermissions', 'addPermissions', 'removePermissions', - 'getUsers' + 'getUsers', + 'assignUsers' ]; methods.forEach(function(method) { @@ -700,4 +701,97 @@ describe('RolesManager', function() { }); }); }); + + describe('#assignUsers', function() { + beforeEach(function() { + this.data = { + id: 'rol_ID' + }; + this.body = { users: ['userID1'] }; + + this.request = nock(API_URL) + .post('/roles/' + this.data.id + '/users') + .reply(200); + }); + + it('should validate empty roleId', function() { + var _this = this; + expect(function() { + _this.roles.assignUsers({ id: null }, _this.body, function() {}); + }).to.throw('The roleId passed in params cannot be null or undefined'); + }); + + it('should validate non-string roleId', function() { + var _this = this; + expect(function() { + _this.roles.assignUsers({ id: 123 }, _this.body, function() {}); + }).to.throw('The role Id has to be a string'); + }); + + it('should accept a callback', function(done) { + this.roles.assignUsers(this.data, {}, function() { + done(); + }); + }); + + it('should return a promise if no callback is given', function(done) { + this.roles + .assignUsers(this.data, {}) + .then(done.bind(null, null)) + .catch(done.bind(null, null)); + }); + + it('should pass any errors to the promise catch handler', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/users') + .reply(500); + + this.roles.assignUsers(this.data, {}).catch(function(err) { + expect(err).to.exist; + + done(); + }); + }); + + it('should perform a POST request to /api/v2/roles/rol_ID/users', function(done) { + var request = this.request; + + this.roles.assignUsers(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should pass the data in the body of the request', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/users', this.body) + .reply(200); + + this.roles.assignUsers(this.data, this.body).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + + it('should include the token in the Authorization header', function(done) { + nock.cleanAll(); + + var request = nock(API_URL) + .post('/roles/' + this.data.id + '/users') + .matchHeader('Authorization', 'Bearer ' + this.token) + .reply(200); + + this.roles.assignUsers(this.data, {}).then(function() { + expect(request.isDone()).to.be.true; + + done(); + }); + }); + }); }); From 4ce6d79c135fdf4c15af64b1986655af28fcd14e Mon Sep 17 00:00:00 2001 From: IdentityDan <49003466+IdentityDan@users.noreply.github.com> Date: Mon, 15 Apr 2019 08:05:06 -0700 Subject: [PATCH 27/37] missing params in sendEmailVerification (#354) Added params to sendEmailVerification. Error was noticed in community topic here: https://community.auth0.com/t/resend-confirmation-email-rule-button/23734/6 --- src/management/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/management/index.js b/src/management/index.js index 647172b82..89b91340f 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -1923,7 +1923,7 @@ utils.wrapPropertyMethod(ManagementClient, 'exportUsers', 'jobs.exportUsers'); * user_id: '{USER_ID}' * }; * - * management.sendEmailVerification(function (err) { + * management.sendEmailVerification(params, function (err) { * if (err) { * // Handle error. * } From f033e057206466434618c34c034d85948031560a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Rudge?= Date: Mon, 15 Apr 2019 12:08:55 -0300 Subject: [PATCH 28/37] v2.17.0 (#355) --- CHANGELOG.md | 9 + docs/RetryRestClient.js.html | 4 +- docs/auth_DatabaseAuthenticator.js.html | 4 +- docs/auth_OAUthWithIDTokenValidation.js.html | 4 +- docs/auth_OAuthAuthenticator.js.html | 4 +- docs/auth_PasswordlessAuthenticator.js.html | 4 +- docs/auth_TokensManager.js.html | 4 +- docs/auth_UsersManager.js.html | 4 +- docs/auth_index.js.html | 4 +- docs/external-RestClient.html | 126 +- docs/index.html | 4 +- docs/index.js.html | 4 +- ...anagement_BlacklistedTokensManager.js.html | 4 +- docs/management_ClientGrantsManager.js.html | 4 +- docs/management_ClientsManager.js.html | 4 +- docs/management_ConnectionsManager.js.html | 4 +- docs/management_CustomDomainsManager.js.html | 4 +- ...anagement_DeviceCredentialsManager.js.html | 4 +- docs/management_EmailProviderManager.js.html | 4 +- docs/management_EmailTemplatesManager.js.html | 4 +- docs/management_GrantsManager.js.html | 4 +- docs/management_GuardianManager.js.html | 4 +- docs/management_JobsManager.js.html | 4 +- docs/management_LogsManager.js.html | 4 +- ...management_ManagementTokenProvider.js.html | 4 +- .../management_ResourceServersManager.js.html | 4 +- docs/management_RolesManager.js.html | 462 + docs/management_RulesConfigsManager.js.html | 4 +- docs/management_RulesManager.js.html | 4 +- docs/management_StatsManager.js.html | 4 +- docs/management_TenantManager.js.html | 4 +- docs/management_TicketsManager.js.html | 4 +- docs/management_UsersManager.js.html | 254 +- docs/management_index.js.html | 409 +- docs/module-auth.AuthenticationClient.html | 4 +- docs/module-auth.DatabaseAuthenticator.html | 4 +- ...odule-auth.OAUthWithIDTokenValidation.html | 4 +- docs/module-auth.OAuthAuthenticator.html | 4 +- ...module-auth.PasswordlessAuthenticator.html | 4 +- docs/module-auth.TokensManager.html | 4 +- docs/module-auth.UsersManager.html | 4 +- docs/module-auth.html | 4 +- ...e-management.BlacklistedTokensManager.html | 4 +- ...module-management.ClientGrantsManager.html | 4 +- docs/module-management.ClientsManager.html | 4 +- .../module-management.ConnectionsManager.html | 4 +- ...odule-management.CustomDomainsManager.html | 4 +- ...e-management.DeviceCredentialsManager.html | 4 +- ...odule-management.EmailProviderManager.html | 4 +- ...dule-management.EmailTemplatesManager.html | 4 +- docs/module-management.GrantsManager.html | 6 +- docs/module-management.GuardianManager.html | 4 +- docs/module-management.JobsManager.html | 4 +- docs/module-management.LogsManager.html | 4 +- docs/module-management.ManagementClient.html | 10440 +++++++++++----- ...le-management.ManagementTokenProvider.html | 4 +- ...ule-management.ResourceServersManager.html | 4 +- docs/module-management.RetryRestClient.html | 4 +- docs/module-management.RolesManager.html | 4226 +++++++ ...module-management.RulesConfigsManager.html | 4 +- docs/module-management.RulesManager.html | 4 +- docs/module-management.StatsManager.html | 4 +- docs/module-management.TenantManager.html | 4 +- docs/module-management.TicketsManager.html | 4 +- docs/module-management.UsersManager.html | 712 +- docs/module-management.html | 7 +- docs/module-utils.html | 4 +- docs/utils.js.html | 4 +- package.json | 2 +- 69 files changed, 13933 insertions(+), 2952 deletions(-) create mode 100644 docs/management_RolesManager.js.html create mode 100644 docs/module-management.RolesManager.html diff --git a/CHANGELOG.md b/CHANGELOG.md index baa634fba..faad18685 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## [v2.17.0](https://github.com/auth0/node-auth0/tree/v2.17.0) (2019-04-15) + +[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.16.0...v2.17.0) + +**Added** + +* Add method to assign users to a role [\#348](https://github.com/auth0/node-auth0/pull/348) ([pushpabrol](https://github.com/pushpabrol)) +* Add support for roles and permissions [\#344](https://github.com/auth0/node-auth0/pull/344) ([pushpabrol](https://github.com/pushpabrol)) + ## [v2.16.0](https://github.com/auth0/node-auth0/tree/v2.16.0) (2019-03-18) [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.15.0...v2.16.0) diff --git a/docs/RetryRestClient.js.html b/docs/RetryRestClient.js.html index 4fc11d1e3..2539ec61e 100644 --- a/docs/RetryRestClient.js.html +++ b/docs/RetryRestClient.js.html @@ -24,7 +24,7 @@
@@ -207,7 +207,7 @@

RetryRestClient.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_DatabaseAuthenticator.js.html b/docs/auth_DatabaseAuthenticator.js.html index 2f9d5a3a1..bcb4fcd0c 100644 --- a/docs/auth_DatabaseAuthenticator.js.html +++ b/docs/auth_DatabaseAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -345,7 +345,7 @@

auth/DatabaseAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_OAUthWithIDTokenValidation.js.html b/docs/auth_OAUthWithIDTokenValidation.js.html index 401e86a61..d6664e141 100644 --- a/docs/auth_OAUthWithIDTokenValidation.js.html +++ b/docs/auth_OAUthWithIDTokenValidation.js.html @@ -24,7 +24,7 @@
@@ -158,7 +158,7 @@

auth/OAUthWithIDTokenValidation.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_OAuthAuthenticator.js.html b/docs/auth_OAuthAuthenticator.js.html index d10f1c13a..3481f6a34 100644 --- a/docs/auth_OAuthAuthenticator.js.html +++ b/docs/auth_OAuthAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -424,7 +424,7 @@

auth/OAuthAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_PasswordlessAuthenticator.js.html b/docs/auth_PasswordlessAuthenticator.js.html index 945d78d6c..01335de0c 100644 --- a/docs/auth_PasswordlessAuthenticator.js.html +++ b/docs/auth_PasswordlessAuthenticator.js.html @@ -24,7 +24,7 @@
@@ -286,7 +286,7 @@

auth/PasswordlessAuthenticator.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_TokensManager.js.html b/docs/auth_TokensManager.js.html index f64d2a0f6..4fd3eb8fa 100644 --- a/docs/auth_TokensManager.js.html +++ b/docs/auth_TokensManager.js.html @@ -24,7 +24,7 @@
@@ -226,7 +226,7 @@

auth/TokensManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_UsersManager.js.html b/docs/auth_UsersManager.js.html index c5d7e9da6..345cfface 100644 --- a/docs/auth_UsersManager.js.html +++ b/docs/auth_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -224,7 +224,7 @@

auth/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/auth_index.js.html b/docs/auth_index.js.html index 78496dcab..2f29d7cdb 100644 --- a/docs/auth_index.js.html +++ b/docs/auth_index.js.html @@ -24,7 +24,7 @@
@@ -632,7 +632,7 @@

auth/index.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/external-RestClient.html b/docs/external-RestClient.html index 3799198a8..428fc8d88 100644 --- a/docs/external-RestClient.html +++ b/docs/external-RestClient.html @@ -24,7 +24,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

+ RestClient +

+ + +
+ +
+
+ + +

Simple facade for consuming a REST API endpoint.

+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -1139,7 +1239,7 @@


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/index.html b/docs/index.html index 833192586..59b2d5896 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
@@ -151,7 +151,7 @@

License

This project is licensed under the MIT license. See the

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/index.js.html b/docs/index.js.html index de8d6d96f..094cc993b 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -24,7 +24,7 @@
@@ -61,7 +61,7 @@

index.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html index bcff23394..ca8b9a674 100644 --- a/docs/management_BlacklistedTokensManager.js.html +++ b/docs/management_BlacklistedTokensManager.js.html @@ -24,7 +24,7 @@
@@ -153,7 +153,7 @@

management/BlacklistedTokensManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html index 4850884f1..35705ce1a 100644 --- a/docs/management_ClientGrantsManager.js.html +++ b/docs/management_ClientGrantsManager.js.html @@ -24,7 +24,7 @@
@@ -216,7 +216,7 @@

management/ClientGrantsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html index 140924389..c976734cd 100644 --- a/docs/management_ClientsManager.js.html +++ b/docs/management_ClientsManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ClientsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html index 45945c82d..2652dc8d3 100644 --- a/docs/management_ConnectionsManager.js.html +++ b/docs/management_ConnectionsManager.js.html @@ -24,7 +24,7 @@
@@ -232,7 +232,7 @@

management/ConnectionsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html index 9ae700a03..c9ed7853b 100644 --- a/docs/management_CustomDomainsManager.js.html +++ b/docs/management_CustomDomainsManager.js.html @@ -24,7 +24,7 @@
@@ -241,7 +241,7 @@

management/CustomDomainsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html index 2b1af95ad..88683e316 100644 --- a/docs/management_DeviceCredentialsManager.js.html +++ b/docs/management_DeviceCredentialsManager.js.html @@ -24,7 +24,7 @@
@@ -177,7 +177,7 @@

management/DeviceCredentialsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html index 1f8e53332..01384f0f8 100644 --- a/docs/management_EmailProviderManager.js.html +++ b/docs/management_EmailProviderManager.js.html @@ -24,7 +24,7 @@
@@ -198,7 +198,7 @@

management/EmailProviderManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html index d16a37ce0..6438643cb 100644 --- a/docs/management_EmailTemplatesManager.js.html +++ b/docs/management_EmailTemplatesManager.js.html @@ -24,7 +24,7 @@
@@ -180,7 +180,7 @@

management/EmailTemplatesManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html index 9696f7d60..ccceff56b 100644 --- a/docs/management_GrantsManager.js.html +++ b/docs/management_GrantsManager.js.html @@ -24,7 +24,7 @@
@@ -170,7 +170,7 @@

management/GrantsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html index 8b6e44737..a83fef1f9 100644 --- a/docs/management_GuardianManager.js.html +++ b/docs/management_GuardianManager.js.html @@ -24,7 +24,7 @@
@@ -328,7 +328,7 @@

management/GuardianManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html index 74929d905..9b1f553c9 100644 --- a/docs/management_JobsManager.js.html +++ b/docs/management_JobsManager.js.html @@ -24,7 +24,7 @@
@@ -354,7 +354,7 @@

management/JobsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html index 5e3528292..a1c5c3285 100644 --- a/docs/management_LogsManager.js.html +++ b/docs/management_LogsManager.js.html @@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@

management/LogsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html index 81f2d0d5f..d54e67e7f 100644 --- a/docs/management_ManagementTokenProvider.js.html +++ b/docs/management_ManagementTokenProvider.js.html @@ -24,7 +24,7 @@
@@ -189,7 +189,7 @@

management/ManagementTokenProvider.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html index 056216f03..6e22790ed 100644 --- a/docs/management_ResourceServersManager.js.html +++ b/docs/management_ResourceServersManager.js.html @@ -24,7 +24,7 @@
@@ -238,7 +238,7 @@

management/ResourceServersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_RolesManager.js.html b/docs/management_RolesManager.js.html new file mode 100644 index 000000000..adcf4d6a0 --- /dev/null +++ b/docs/management_RolesManager.js.html @@ -0,0 +1,462 @@ + + + + + + management/RolesManager.js - Documentation + + + + + + + + + + + + + + + + + +
+ +

management/RolesManager.js

+ + + + + + + +
+
+
var ArgumentError = require('rest-facade').ArgumentError;
+var utils = require('../utils');
+var Auth0RestClient = require('../Auth0RestClient');
+var RetryRestClient = require('../RetryRestClient');
+
+/**
+ * Simple facade for consuming a REST API endpoint.
+ * @external RestClient
+ * @see https://github.com/ngonzalvez/rest-facade
+ */
+
+/**
+ * @class RolesManager
+ * The role class provides a simple abstraction for performing CRUD operations
+ * on Auth0 RolesManager.
+ * @constructor
+ * @memberOf module:management
+ *
+ * @param {Object} options            The client options.
+ * @param {String} options.baseUrl    The URL of the API.
+ * @param {Object} [options.headers]  Headers to be included in all requests.
+ * @param {Object} [options.retry]    Retry Policy Config
+ */
+var RolesManager = function(options) {
+  if (options === null || typeof options !== 'object') {
+    throw new ArgumentError('Must provide manager options');
+  }
+
+  if (options.baseUrl === null || options.baseUrl === undefined) {
+    throw new ArgumentError('Must provide a base URL for the API');
+  }
+
+  if ('string' !== typeof options.baseUrl || options.baseUrl.length === 0) {
+    throw new ArgumentError('The provided base URL is invalid');
+  }
+
+  /**
+   * Options object for the Rest Client instance.
+   *
+   * @type {Object}
+   */
+  var clientOptions = {
+    headers: options.headers,
+    query: { repeatParams: false }
+  };
+
+  /**
+   * Provides an abstraction layer for performing CRUD operations on
+   * {@link https://auth0.com/docs/api/v2#!/RolesManager Auth0 RolesManagers}.
+   *
+   * @type {external:RestClient}
+   */
+  var auth0RestClient = new Auth0RestClient(
+    options.baseUrl + '/roles/:id',
+    clientOptions,
+    options.tokenProvider
+  );
+  this.resource = new RetryRestClient(auth0RestClient, options.retry);
+
+  var permissionsInRoleClient = new Auth0RestClient(
+    options.baseUrl + '/roles/:id/permissions',
+    clientOptions,
+    options.tokenProvider
+  );
+  this.permissions = new RetryRestClient(permissionsInRoleClient, options.retry);
+
+  var usersInRoleClient = new Auth0RestClient(
+    options.baseUrl + '/roles/:id/users',
+    clientOptions,
+    options.tokenProvider
+  );
+  this.users = new RetryRestClient(usersInRoleClient, options.retry);
+};
+
+/**
+ * Create a new role.
+ *
+ * @method    create
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * management.roles.create(data, function (err) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // Role created.
+ * });
+ *
+ * @param   {Object}    data     Role data object.
+ * @param   {Function}  [cb]     Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(RolesManager, 'create', 'resource.create');
+
+/**
+ * Get all roles.
+ *
+ * @method    getAll
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example <caption>
+ *   This method takes an optional object as first argument that may be used to
+ *   specify pagination settings. If pagination options are not present,
+ *   the first page of a limited number of results will be returned.
+ * </caption>
+ *
+ * // Pagination settings.
+ * var params = {
+ *   per_page: 10,
+ *   page: 0
+ * };
+ *
+ * management.roles.getAll(params, function (err, roles) {
+ *   console.log(roles.length);
+ * });
+ *
+ * @param   {Object}    [params]          Roles parameters.
+ * @param   {Number}    [params.per_page] Number of results per page.
+ * @param   {Number}    [params.page]     Page number, zero indexed.
+ * @param   {Function}  [cb]              Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(RolesManager, 'getAll', 'resource.getAll');
+
+/**
+ * Get an Auth0 role.
+ *
+ * @method    get
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * management.roles.get({ id: ROLE_ID }, function (err, role) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   console.log(role);
+ * });
+ *
+ * @param   {Object}    params        Role parameters.
+ * @param   {String}    params.id     Role ID.
+ * @param   {Function}  [cb]          Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(RolesManager, 'get', 'resource.get');
+
+/**
+ * Update an existing role.
+ *
+ * @method    update
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * var data = { name: 'New name' };
+ * var params = { id: ROLE_ID };
+ *
+ * // Using auth0 instance.
+ * management.updateRole(params, data, function (err, role) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   console.log(role.name);  // 'New name'
+ * });
+ *
+ * // Using the roles manager directly.
+ * management.roles.update(params, data, function (err, role) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   console.log(role.name);  // 'New name'
+ * });
+ *
+ * @param   {Object}    params        Role parameters.
+ * @param   {String}    params.id     Role ID.
+ * @param   {Object}    data          Updated role data.
+ * @param   {Function}  [cb]          Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(RolesManager, 'update', 'resource.patch');
+
+/**
+ * Delete an existing role.
+ *
+ * @method    delete
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * management.roles.delete({ id: ROLE_ID }, function (err) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // Role deleted.
+ * });
+ *
+ * @param   {Object}    params        Role parameters.
+ * @param   {String}    params.id     Role ID.
+ * @param   {Function}  [cb]          Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+utils.wrapPropertyMethod(RolesManager, 'delete', 'resource.delete');
+
+/**
+ * Get Permissions in a Role
+ *
+ * @method    getPermissionsInRole
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * var params = {id : 'ROLE_ID'}
+ * @example <caption>
+ *   This method takes a first argument as the roleId and returns the permissions within that role
+ * </caption>
+ *
+ * management.roles.getPermissions( {id : 'ROLE_ID'}, function (err, permissions) {
+ *   console.log(permissions);
+ * });
+ *
+ * @param   {String}    [email]           Email address of user(s) to find
+ * @param   {Function}  [cb]              Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+RolesManager.prototype.getPermissions = function(params, callback) {
+  return this.permissions.getAll(params, callback);
+};
+
+/**
+ * Add permissions in a role
+ *
+ * @method    addPermissions
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * var params =  { id :'ROLE_ID'};
+ * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+ *
+ * management.roles.addPermissions(params, data, function (err, user) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // permissions added.
+ * });
+ *
+ * @param   {String}    params.id                ID of the Role.
+ * @param   {Object}    data                permissions data
+ * @param   {String}    data.permissions    Array of permissions
+ * @param   {String}    data.permissions.permission_name  Name of a permission
+ * @param   {String}    data.permissions.resource_server_identifier  Identifier for a resource
+ * @param   {Function}  [cb]                  Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+
+RolesManager.prototype.addPermissions = function(params, data, cb) {
+  data = data || {};
+  params = params || {};
+
+  // Require a user ID.
+  if (!params.id) {
+    throw new ArgumentError('The roleId passed in params cannot be null or undefined');
+  }
+  if (typeof params.id !== 'string') {
+    throw new ArgumentError('The role Id has to be a string');
+  }
+
+  if (cb && cb instanceof Function) {
+    return this.permissions.create(params, data, cb);
+  }
+
+  return this.permissions.create(params, data);
+};
+
+/**
+ * Remove permissions from a role
+ *
+ * @method    removePermissions
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * var params =  { id :'ROLE_ID'};
+ * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+ *
+ * management.roles.removePermissions(params, data, function (err, user) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // permissions added.
+ * });
+ *
+ * @param   {String}    params.id                ID of the Role.
+ * @param   {Object}    data                permissions data
+ * @param   {String}    data.permissions    Array of permissions
+ * @param   {String}    data.permissions.permission_name  Name of a permission
+ * @param   {String}    data.permissions.resource_server_identifier  Identifier for a resource
+ * @param   {Function}  [cb]                  Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+
+RolesManager.prototype.removePermissions = function(params, data, cb) {
+  data = data || {};
+  params = params || {};
+
+  // Require a user ID.
+  if (!params.id) {
+    throw new ArgumentError('The roleId passed in params cannot be null or undefined');
+  }
+  if (typeof params.id !== 'string') {
+    throw new ArgumentError('The role Id has to be a string');
+  }
+
+  if (cb && cb instanceof Function) {
+    return this.permissions.delete(params, data, cb);
+  }
+
+  return this.permissions.delete(params, data);
+};
+
+/**
+ * Get Users in a Role
+ *
+ * @method    getUsers
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * params = {id : 'ROLE_ID'}
+ * @example <caption>
+ *   This method takes a roleId and returns the users with that role assigned
+ * </caption>
+ *
+ * management.roles.getUsers( {id : 'ROLE_ID'}, function (err, users) {
+ *   console.log(users);
+ * });
+ *
+ * @param   {String}    [email]           Email address of user(s) to find
+ * @param   {Function}  [cb]              Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+RolesManager.prototype.getUsers = function(params, callback) {
+  return this.users.getAll(params, callback);
+};
+
+/**
+ * Assign users to a role
+ *
+ * @method    assignUsers
+ * @memberOf  module:management.RolesManager.prototype
+ *
+ * @example
+ * var params =  { id :'ROLE_ID'};
+ * var data = { "users" : ["userId1","userId2"]};
+ *
+ * management.roles.assignUsers(params, data, function (err, user) {
+ *   if (err) {
+ *     // Handle error.
+ *   }
+ *
+ *   // permissions added.
+ * });
+ *
+ * @param   {String}    params.id                ID of the Role.
+ * @param   {Object}    data                permissions data
+ * @param   {String}    data.permissions    Array of permissions
+ * @param   {String}    data.permissions.permission_name  Name of a permission
+ * @param   {String}    data.permissions.resource_server_identifier  Identifier for a resource
+ * @param   {Function}  [cb]                  Callback function.
+ *
+ * @return  {Promise|undefined}
+ */
+
+RolesManager.prototype.assignUsers = function(params, data, cb) {
+  data = data || {};
+  params = params || {};
+
+  // Require a user ID.
+  if (!params.id) {
+    throw new ArgumentError('The roleId passed in params cannot be null or undefined');
+  }
+  if (typeof params.id !== 'string') {
+    throw new ArgumentError('The role Id has to be a string');
+  }
+
+  if (cb && cb instanceof Function) {
+    return this.permissions.create(params, data, cb);
+  }
+
+  return this.users.create(params, data);
+};
+
+module.exports = RolesManager;
+
+
+
+ + + + +
+ +
+ +
+ Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme. +
+ + + + + diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html index 4273811b1..4164615e5 100644 --- a/docs/management_RulesConfigsManager.js.html +++ b/docs/management_RulesConfigsManager.js.html @@ -24,7 +24,7 @@
@@ -179,7 +179,7 @@

management/RulesConfigsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html index 01d16792a..7cde7ef0c 100644 --- a/docs/management_RulesManager.js.html +++ b/docs/management_RulesManager.js.html @@ -24,7 +24,7 @@
@@ -248,7 +248,7 @@

management/RulesManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html index 60e18bd43..93c852667 100644 --- a/docs/management_StatsManager.js.html +++ b/docs/management_StatsManager.js.html @@ -24,7 +24,7 @@
@@ -174,7 +174,7 @@

management/StatsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html index 5cc586f03..db15c4e7b 100644 --- a/docs/management_TenantManager.js.html +++ b/docs/management_TenantManager.js.html @@ -24,7 +24,7 @@
@@ -161,7 +161,7 @@

management/TenantManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html index c9072b7c3..418b10d7e 100644 --- a/docs/management_TicketsManager.js.html +++ b/docs/management_TicketsManager.js.html @@ -24,7 +24,7 @@
@@ -166,7 +166,7 @@

management/TicketsManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html index da1311f7f..9f330abbb 100644 --- a/docs/management_UsersManager.js.html +++ b/docs/management_UsersManager.js.html @@ -24,7 +24,7 @@
@@ -162,6 +162,30 @@

management/UsersManager.js

recoveryCodeRegenerationAuth0RestClients, options.retry ); + + /** + * Provides an abstraction layer for CRD on roles for a user + * + * @type {external:RestClient} + */ + var userRolesClient = new Auth0RestClient( + options.baseUrl + '/users/:id/roles', + clientOptions, + options.tokenProvider + ); + this.roles = new RetryRestClient(userRolesClient, options.retry); + + /** + * Provides an abstraction layer for CRD on permissions directly on a user + * + * @type {external:RestClient} + */ + var userPermissionsClient = new Auth0RestClient( + options.baseUrl + '/users/:id/permissions', + clientOptions, + options.tokenProvider + ); + this.permissions = new RetryRestClient(userPermissionsClient, options.retry); }; /** @@ -664,6 +688,232 @@

management/UsersManager.js

return this.recoveryCodeRegenerations.create(params, {}); }; +/** + * Get a list of roles for a user. + * + * @method getUserRoles + * @memberOf module:management.UsersManager.prototype + * + * @example + * management.users.getRoles({ id: USER_ID }, function (err, roles) { + * console.log(roles); + * }); + * + * @param {Object} data The user data object. + * @param {String} data.id The user id. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +UsersManager.prototype.getRoles = function() { + return this.roles.getAll.apply(this.roles, arguments); +}; + +/** + * Assign roles to a user + * + * @method assignRoles + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "roles" : ["roleId1", "roleID2"]}; + * + * management.users.assignRoles(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // roles added. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.assignRoles = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.roles.create(query, data, cb); + } + + return this.roles.create(query, data); +}; + +/** + * Remove roles from a user + * + * @method removeRoles + * @memberOf module:management.RolesManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "roles" : ["roleId1", "roleID2"]}; + * + * management.users.removeRoles(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // roles removed. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.removeRoles = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.roles.delete(query, data, cb); + } + + return this.roles.delete(query, data); +}; + +/** + * Get a list of permissions for a user. + * + * @method getPermissions + * @memberOf module:management.UsersManager.prototype + * + * @example + * management.users.getPermissions({ id: USER_ID }, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {Object} data The user data object. + * @param {String} data.id The user id. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +UsersManager.prototype.getPermissions = function() { + return this.permissions.getAll.apply(this.permissions, arguments); +}; + +/** + * Assign permissions to a user + * + * @method assignPermissions + * @memberOf module:management.permissionsManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.users.assignPermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions added. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permissions + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.assignPermissions = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.create(query, data, cb); + } + + return this.permissions.create(query, data); +}; + +/** + * Remove permissions from a user + * + * @method removePermissions + * @memberOf module:management.permissionsManager.prototype + * + * @example + * var params = { id : 'USER_ID'; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.users.removePermissions(params, data, function (err, user) { + * if (err) { + * // Handle error. + * } + * + * // permissions removed. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permission IDs + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ + +UsersManager.prototype.removePermissions = function(params, data, cb) { + var query = params || {}; + data = data || {}; + + // Require a user ID. + if (!params.id) { + throw new ArgumentError('The user_id cannot be null or undefined'); + } + if (typeof params.id !== 'string') { + throw new ArgumentError('The user_id has to be a string'); + } + + if (cb && cb instanceof Function) { + return this.permissions.delete(query, data, cb); + } + + return this.permissions.delete(query, data); +}; + module.exports = UsersManager;

@@ -677,7 +927,7 @@

management/UsersManager.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/management_index.js.html b/docs/management_index.js.html index f4c40428e..4d6da6415 100644 --- a/docs/management_index.js.html +++ b/docs/management_index.js.html @@ -24,7 +24,7 @@
@@ -70,6 +70,7 @@

management/index.js

var EmailTemplatesManager = require('./EmailTemplatesManager'); var GuardianManager = require('./GuardianManager'); var CustomDomainsManager = require('./CustomDomainsManager'); +var RolesManager = require('./RolesManager'); var BASE_URL_FORMAT = 'https://%s/api/v2'; var MANAGEMENT_API_AUD_FORMAT = 'https://%s/api/v2/'; @@ -320,6 +321,14 @@

management/index.js

* @type {RulesConfigsManager} */ this.rulesConfigs = new RulesConfigsManager(managerOptions); + + /** + * Simple abstraction for performing CRUD operations on the + * roles endpoint. + * + * @type {RolesManager} + */ + this.roles = new RolesManager(managerOptions); }; /** @@ -1347,6 +1356,176 @@

management/index.js

*/ utils.wrapPropertyMethod(ManagementClient, 'getUserLogs', 'users.logs'); +/** + * Get user's roles + * + * @method getUserRoles + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true }; + * + * management.getUserRoles(params, function (err, logs) { + * if (err) { + * // Handle error. + * } + * + * console.log(logs); + * }); + * + * @param {Object} params Get roles data. + * @param {String} params.id User id. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {String} params.sort The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUserRoles', 'users.getRoles'); + +/** + * Asign roles to a user + * + * @method assignRolestoUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "roles" :["role1"]}; + * + * management.assignRolestoUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned roles. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'assignRolestoUser', 'users.assignRoles'); + +/** + * Remove roles from a user + * + * @method removeRolesFromUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "roles" :["role1"]}; + * + * management.removeRolesFromUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned roles. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of role IDs + * @param {String} data.roles Array of role IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removeRolesFromUser', 'users.removeRoles'); + +/** + * Get user's permissions + * + * @method getUserPermissions + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true }; + * + * management.getUserPermissions(params, function (err, logs) { + * if (err) { + * // Handle error. + * } + * + * console.log(logs); + * }); + * + * @param {Object} params Get permissions data. + * @param {String} params.id User id. + * @param {Number} params.per_page Number of results per page. + * @param {Number} params.page Page number, zero indexed. + * @param {String} params.sort The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. + * @param {Boolean} params.include_totals true if a query summary must be included in the result, false otherwise. Default false; + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUserPermissions', 'users.getPermissions'); + +/** + * Asign permissions to a user + * + * @method assignPermissionsToUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.assignPermissionsToUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned permissions. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permissions + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'assignPermissionsToUser', 'users.assignPermissions'); + +/** + * Remove permissions from a user + * + * @method removePermissionsFromUser + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var parms = { id : 'USER_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.removePermissionsFromUser(params, data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // User assigned permissions. + * }); + * + * @param {Object} params params object + * @param {String} params.id user_id + * @param {String} data data object containing list of permission IDs + * @param {String} data.permissions Array of permission IDs + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removePermissionsFromUser', 'users.removePermissions'); + /** * Get a list of a user's Guardian enrollments. * @@ -2360,6 +2539,232 @@

management/index.js

*/ utils.wrapPropertyMethod(ManagementClient, 'updateGuardianFactor', 'guardian.factors.update'); +/** + * Get all roles. + * + * @method getRoles + * @memberOf module:management.ManagementClient.prototype + * + * @example <caption> + * This method takes an optional object as first argument that may be used to + * specify pagination settings. If pagination options are not present, + * the first page of a limited number of results will be returned. + * </caption> + * + * // Pagination settings. + * var params = { + * per_page: 10, + * page: 0 + * }; + * + * management.getRoles(params, function (err, roles) { + * console.log(roles.length); + * }); + * + * @param {Object} [params] Roles parameters. + * @param {Number} [params.per_page] Number of results per page. + * @param {Number} [params.page] Page number, zero indexed. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getRoles', 'roles.getAll'); + +/** + * Create a new role. + * + * @method createRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * data = {"name": "test1","description": "123"} + * management.createRole(data, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role created. + * }); + * + * @param {Object} data Role data object. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'createRole', 'roles.create'); + +/** + * Get an Auth0 role. + * + * @method getRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * management.getRole({ id: ROLE_ID }, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role); + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getRole', 'roles.get'); + +/** + * Delete an existing role. + * + * @method deleteRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * management.deleteRole({ id: ROLE_ID }, function (err) { + * if (err) { + * // Handle error. + * } + * + * // Role deleted. + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'deleteRole', 'roles.delete'); + +/** + * Update an existing role. + * + * @method updateRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id: ROLE_ID }; + * var data = { name: 'my-role'}; + * management.updateRole(params, data, function (err, role) { + * if (err) { + * // Handle error. + * } + * + * console.log(role.name); // 'my-role'. + * }); + * + * @param {Object} params Role parameters. + * @param {String} params.id Role ID. + * @param {Object} data Updated role data. + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'updateRole', 'roles.update'); + +/** + * Get permissions for a given role + * + * @method getPermissionsInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * @example <caption> + * This method takes a roleId and + * returns all permissions within that role + * + * </caption> + * + * management.getPermissionsInRole(params, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} [roleId] Id of the role + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getPermissionsInRole', 'roles.getPermissions'); + +/** + * Add permissions in a role + * + * @method addPermissionsInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.addPermissionsInRole(params, data, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'addPermissionsInRole', 'roles.addPermissions'); + +/** + * Remove permissions from a role + * + * @method removePermissionsFromRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]}; + * + * management.removePermissionsFromRole(params, data, function (err, permissions) { + * console.log(permissions); + * }); + * + * @param {String} params.id ID of the Role. + * @param {Object} data permissions data + * @param {String} data.permissions Array of permissions + * @param {String} data.permissions.permission_name Name of a permission + * @param {String} data.permissions.resource_server_identifier Identifier for a resource + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'removePermissionsFromRole', 'roles.removePermissions'); + +/** + * Get users in a given role + * + * @method getUsersInRole + * @memberOf module:management.ManagementClient.prototype + * + * @example + * var params = { id :'ROLE_ID'}; + * @example <caption> + * This method takes a roleId and + * returns all users within that role + * + * </caption> + * + * management.getUsersInRole(params, function (err, users) { + * console.log(users); + * }); + * + * @param {String} [roleId] Id of the role + * @param {Function} [cb] Callback function. + * + * @return {Promise|undefined} + */ +utils.wrapPropertyMethod(ManagementClient, 'getUsersInRole', 'roles.getUsers'); + module.exports = ManagementClient; @@ -2373,7 +2778,7 @@

management/index.js


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html index cc2c32621..86d7d5b8a 100644 --- a/docs/module-auth.AuthenticationClient.html +++ b/docs/module-auth.AuthenticationClient.html @@ -24,7 +24,7 @@
@@ -3894,7 +3894,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html index 90932c634..edaf06cc6 100644 --- a/docs/module-auth.DatabaseAuthenticator.html +++ b/docs/module-auth.DatabaseAuthenticator.html @@ -24,7 +24,7 @@
@@ -1738,7 +1738,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html index 3649be502..e9938b53c 100644 --- a/docs/module-auth.OAUthWithIDTokenValidation.html +++ b/docs/module-auth.OAUthWithIDTokenValidation.html @@ -24,7 +24,7 @@
@@ -414,7 +414,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html index 993a84683..53f0c464f 100644 --- a/docs/module-auth.OAuthAuthenticator.html +++ b/docs/module-auth.OAuthAuthenticator.html @@ -24,7 +24,7 @@
@@ -1796,7 +1796,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html index a3a317708..e7917a34b 100644 --- a/docs/module-auth.PasswordlessAuthenticator.html +++ b/docs/module-auth.PasswordlessAuthenticator.html @@ -24,7 +24,7 @@
@@ -1492,7 +1492,7 @@
Examples

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html index 3f2e224de..9cce2d10d 100644 --- a/docs/module-auth.TokensManager.html +++ b/docs/module-auth.TokensManager.html @@ -24,7 +24,7 @@
@@ -352,7 +352,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html index 9f54e8205..384968aae 100644 --- a/docs/module-auth.UsersManager.html +++ b/docs/module-auth.UsersManager.html @@ -24,7 +24,7 @@
@@ -1009,7 +1009,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-auth.html b/docs/module-auth.html index a569091fd..fe29f3866 100644 --- a/docs/module-auth.html +++ b/docs/module-auth.html @@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@

Classes


- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html index e45a51278..7a5b7f786 100644 --- a/docs/module-management.BlacklistedTokensManager.html +++ b/docs/module-management.BlacklistedTokensManager.html @@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html index 43b5a1cd5..c6582dd4c 100644 --- a/docs/module-management.ClientGrantsManager.html +++ b/docs/module-management.ClientGrantsManager.html @@ -24,7 +24,7 @@
@@ -1636,7 +1636,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html index e534945d0..e6e53026f 100644 --- a/docs/module-management.ClientsManager.html +++ b/docs/module-management.ClientsManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html index 4caac30c4..49b038240 100644 --- a/docs/module-management.ConnectionsManager.html +++ b/docs/module-management.ConnectionsManager.html @@ -24,7 +24,7 @@
@@ -1899,7 +1899,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html index 3a70ea836..cd019aa11 100644 --- a/docs/module-management.CustomDomainsManager.html +++ b/docs/module-management.CustomDomainsManager.html @@ -24,7 +24,7 @@
@@ -1731,7 +1731,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html index 421ed06f7..cf109bcaf 100644 --- a/docs/module-management.DeviceCredentialsManager.html +++ b/docs/module-management.DeviceCredentialsManager.html @@ -24,7 +24,7 @@
@@ -1179,7 +1179,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html index e055228b4..2ddc399ed 100644 --- a/docs/module-management.EmailProviderManager.html +++ b/docs/module-management.EmailProviderManager.html @@ -24,7 +24,7 @@
@@ -1480,7 +1480,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html index 619a896b8..ade45bd25 100644 --- a/docs/module-management.EmailTemplatesManager.html +++ b/docs/module-management.EmailTemplatesManager.html @@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html index c7503b11c..99216617b 100644 --- a/docs/module-management.GrantsManager.html +++ b/docs/module-management.GrantsManager.html @@ -24,7 +24,7 @@
@@ -842,7 +842,7 @@

deleteGran
Source:
@@ -1515,7 +1515,7 @@

Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html index c86c3e833..d6bd3438b 100644 --- a/docs/module-management.GuardianManager.html +++ b/docs/module-management.GuardianManager.html @@ -24,7 +24,7 @@
@@ -1440,7 +1440,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html index 94b44b410..c2adbe428 100644 --- a/docs/module-management.JobsManager.html +++ b/docs/module-management.JobsManager.html @@ -24,7 +24,7 @@
@@ -1849,7 +1849,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html index 3acd3f88b..c15ce93bc 100644 --- a/docs/module-management.LogsManager.html +++ b/docs/module-management.LogsManager.html @@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html index 7505f6676..f65be0741 100644 --- a/docs/module-management.ManagementClient.html +++ b/docs/module-management.ManagementClient.html @@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@

new M
Source:
@@ -723,7 +723,7 @@

blac
Source:
@@ -798,7 +798,7 @@

clientGra
Source:
@@ -873,7 +873,7 @@

clientsSource:
@@ -948,7 +948,7 @@

connection
Source:
@@ -1023,7 +1023,7 @@

customDo
Source:
@@ -1098,7 +1098,7 @@

devi
Source:
@@ -1173,7 +1173,7 @@

emailPro
Source:
@@ -1248,7 +1248,7 @@

emailTe
Source:
@@ -1323,7 +1323,7 @@

grantsSource:
@@ -1398,7 +1398,7 @@

guardianSource:
@@ -1472,7 +1472,7 @@

jobsSource:
@@ -1546,7 +1546,7 @@

logsSource:
@@ -1621,7 +1621,7 @@

resour
Source:
@@ -1648,6 +1648,81 @@

Type:
+

+ + + +
+

roles :RolesManager

+ + + + +
+

Simple abstraction for performing CRUD operations on the +roles endpoint.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+
    +
  • + +RolesManager + + +
  • +
+ + + + +
@@ -1696,7 +1771,7 @@

rulesSource:
@@ -1770,7 +1845,7 @@

rulesConf
Source:
@@ -1844,7 +1919,7 @@

statsSource:
@@ -1918,7 +1993,7 @@

tenantSource:
@@ -1992,7 +2067,7 @@

ticketsSource:
@@ -2067,7 +2142,7 @@

usersSource:
@@ -2108,14 +2183,14 @@

Methods

-

blacklistToken(token, cbopt) → {Promise|undefined}

+

addPermissionsInRole(data, cbopt) → {Promise|undefined}

-

Blacklist a new token.

+

Add permissions in a role

@@ -2151,7 +2226,7 @@

blackli
Source:
@@ -2197,7 +2272,41 @@

Parameters:
- token + params.id + + + + + +String + + + + + + + + + + + + + + + + + + +

ID of the Role.

+ + + + + + + + + data @@ -2222,7 +2331,7 @@
Parameters:
-

Token data.

+

permissions data

@@ -2248,7 +2357,7 @@
Parameters:
- aud + permissions @@ -2265,7 +2374,50 @@
Parameters:
-

Audience (your app client ID).

+

Array of permissions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2274,7 +2426,7 @@
Parameters:
- + + + + + +
NameTypeDescription
permission_name + + +String + + + + +

Name of a permission

jtiresource_server_identifier @@ -2291,7 +2443,15 @@
Parameters:
-

The JWT ID claim.

+

Identifier for a resource

+ +
+ @@ -2386,17 +2546,11 @@
Returns:
Example
-
var token = {
- aud: 'aud',
- jti: 'jti'
-};
-
-management.blacklistToken(token, function (err) {
-  if (err) {
-    // Handle error.
-  }
+    
var params = { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
 
-  // Token blacklisted.
+management.addPermissionsInRole(params, data, function (err, permissions) {
+  console.log(permissions);
 });
@@ -2408,14 +2562,14 @@
Example
-

configureEmailProvider(data, cbopt) → {Promise|undefined}

+

assignPermissionsToUser(params, data, cbopt) → {Promise|undefined}

-

Configure the email provider.

+

Asign permissions to a user

@@ -2451,7 +2605,7 @@

Source:
@@ -2497,7 +2651,7 @@

Parameters:
- data + params @@ -2522,43 +2676,50 @@
Parameters:
-

The email provider data object.

+

params object

- - + + + + + + + + + + + + + + + + + + + - + - - @@ -2567,34 +2728,163 @@
Parameters:
NameTypeDescription
cbid -function +String - - <optional>
- - - - - -
-

Callback function.

+

user_id

+ + + + + + + data + + + + +String + + + + + + + + + + + +

data object containing list of permissions

+ + + + + + + + - -
-
Returns:
+
-
-
- Type: -
-
-Promise -| - -undefined + +
+ + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permissions + + +String + + + + +

Array of permission IDs

+ +
+ + + + + + + + + + cb + + + + + +function + + + + + + + + + <optional>
+ + + + + + + + + + + +

Callback function.

+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined
@@ -2609,12 +2899,15 @@
Returns:
Example
-
management.configureEmailProvider(data, function (err) {
+    
var parms =  { id : 'USER_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+
+management.assignPermissionsToUser(params, data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Email provider configured.
+  // User assigned permissions.
 });
@@ -2626,14 +2919,14 @@
Example
-

createClient(data, cbopt) → {Promise|undefined}

+

assignRolestoUser(params, data, cbopt) → {Promise|undefined}

-

Create an Auth0 client.

+

Asign roles to a user

@@ -2669,7 +2962,7 @@

createCli
Source:
@@ -2715,7 +3008,7 @@

Parameters:
- data + params @@ -2740,7 +3033,143 @@
Parameters:
-

The client data object.

+

params object

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

user_id

+ +
+ + + + + + + + + + data + + + + + +String + + + + + + + + + + + + + + + + + + +

data object containing list of role IDs

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
roles + + +String + + + + +

Array of role IDs

+ +
+ @@ -2827,12 +3256,15 @@
Returns:
Example
-
management.createClient(data, function (err) {
+    
var parms =  { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
+
+management.assignRolestoUser(params, data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Client created.
+  // User assigned roles.
 });
@@ -2844,14 +3276,14 @@
Example
-

createClientGrant(data, cbopt) → {Promise|undefined}

+

blacklistToken(token, cbopt) → {Promise|undefined}

-

Create an Auth0 client grant.

+

Blacklist a new token.

@@ -2887,7 +3319,7 @@

crea
Source:
@@ -2933,7 +3365,7 @@

Parameters:
- data + token @@ -2958,7 +3390,84 @@
Parameters:
-

The client data object.

+

Token data.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
aud + + +String + + + + +

Audience (your app client ID).

+ +
jti + + +String + + + + +

The JWT ID claim.

+ +
+ @@ -3045,12 +3554,17 @@
Returns:
Example
-
management.clientGrants.create(data, function (err) {
+    
var token = {
+ aud: 'aud',
+ jti: 'jti'
+};
+
+management.blacklistToken(token, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Client grant created.
+  // Token blacklisted.
 });
@@ -3062,14 +3576,14 @@
Example
-

createConnection(data, cbopt) → {Promise|undefined}

+

configureEmailProvider(data, cbopt) → {Promise|undefined}

-

Create a new connection.

+

Configure the email provider.

@@ -3105,7 +3619,7 @@

creat
Source:
@@ -3176,7 +3690,7 @@

Parameters:
-

Connection data object.

+

The email provider data object.

@@ -3263,12 +3777,12 @@
Returns:
Example
-
management.createConnection(data, function (err) {
+    
management.configureEmailProvider(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Conection created.
+  // Email provider configured.
 });
@@ -3280,14 +3794,14 @@
Example
-

createCustomDomain(data, cbopt) → {Promise|undefined}

+

createClient(data, cbopt) → {Promise|undefined}

-

Create an Auth0 Custom Domain.

+

Create an Auth0 client.

@@ -3323,7 +3837,7 @@

cre
Source:
@@ -3394,7 +3908,7 @@

Parameters:
-

The custom domain data object.

+

The client data object.

@@ -3481,12 +3995,12 @@
Returns:
Example
-
management.createCustomDomain(data, function (err) {
+    
management.createClient(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // CustomDomain created.
+  // Client created.
 });
@@ -3498,14 +4012,14 @@
Example
-

createDevicePublicKey(data, cbopt) → {Promise|undefined}

+

createClientGrant(data, cbopt) → {Promise|undefined}

-

Create an Auth0 credential.

+

Create an Auth0 client grant.

@@ -3541,7 +4055,7 @@

Source:
@@ -3612,7 +4126,7 @@

Parameters:
-

The device credential data object.

+

The client data object.

@@ -3699,12 +4213,12 @@
Returns:
Example
-
management.createConnection(data, function (err) {
+    
management.clientGrants.create(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Credential created.
+  // Client grant created.
 });
@@ -3716,14 +4230,14 @@
Example
-

createEmailVerificationTicket(cbopt) → {Promise}

+

createConnection(data, cbopt) → {Promise|undefined}

-

Create an email verification ticket.

+

Create a new connection.

@@ -3759,7 +4273,7 @@

Source:
@@ -3803,6 +4317,40 @@
Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

Connection data object.

+ + + + + + cb @@ -3866,6 +4414,9 @@
Returns:
Promise +| + +undefined
@@ -3880,15 +4431,12 @@
Returns:
Example
-
var data = {
-  user_id: '{USER_ID}',
-  result_url: '{REDIRECT_URL}' // Optional redirect after the ticket is used.
-};
-
-auth0.createEmailVerificationTicket(data, function (err) {
+    
management.createConnection(data, function (err) {
   if (err) {
     // Handle error.
   }
+
+  // Conection created.
 });
@@ -3900,14 +4448,14 @@
Example
-

createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}

+

createCustomDomain(data, cbopt) → {Promise|undefined}

-

Create a Guardian enrollment ticket.

+

Create an Auth0 Custom Domain.

@@ -3943,7 +4491,7 @@

Source:
@@ -3987,6 +4535,40 @@
Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

The custom domain data object.

+ + + + + + cb @@ -4067,8 +4649,12 @@
Returns:
Example
-
management.createGuardianEnrollmentTicket(function (err, ticket) {
-  console.log(ticket);
+    
management.createCustomDomain(data, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // CustomDomain created.
 });
@@ -4080,14 +4666,14 @@
Example
-

createPasswordChangeTicket(cbopt) → {Promise}

+

createDevicePublicKey(data, cbopt) → {Promise|undefined}

-

Create a new password change ticket.

+

Create an Auth0 credential.

@@ -4123,7 +4709,7 @@

Source:
@@ -4167,6 +4753,40 @@
Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

The device credential data object.

+ + + + + + cb @@ -4230,6 +4850,9 @@
Returns:
Promise +| + +undefined
@@ -4244,17 +4867,12 @@
Returns:
Example
-
var params = {
-  result_url: '{REDIRECT_URL}',  // Redirect after using the ticket.
-  user_id: '{USER_ID}',  // Optional.
-  email: '{USER_EMAIL}',  // Optional.
-  new_password: '{PASSWORD}'
-};
-
-auth0.createPasswordChangeTicket(params, function (err) {
+    
management.createConnection(data, function (err) {
   if (err) {
     // Handle error.
   }
+
+  // Credential created.
 });
@@ -4266,14 +4884,14 @@
Example
-

createResourceServer(data, cbopt) → {Promise|undefined}

+

createEmailVerificationTicket(cbopt) → {Promise}

-

Create a new resource server.

+

Create an email verification ticket.

@@ -4309,7 +4927,7 @@

c
Source:
@@ -4353,40 +4971,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

Resource Server data object.

- - - - - - cb @@ -4450,9 +5034,6 @@
Returns:
Promise -| - -undefined
@@ -4467,12 +5048,15 @@
Returns:
Example
-
management.createResourceServer(data, function (err) {
+    
var data = {
+  user_id: '{USER_ID}',
+  result_url: '{REDIRECT_URL}' // Optional redirect after the ticket is used.
+};
+
+auth0.createEmailVerificationTicket(data, function (err) {
   if (err) {
     // Handle error.
   }
-
-  // Resource Server created.
 });
@@ -4484,14 +5068,14 @@
Example
-

createRule(data, cbopt) → {Promise|undefined}

+

createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}

-

Create a new rule.

+

Create a Guardian enrollment ticket.

@@ -4527,7 +5111,7 @@

createRule<
Source:
@@ -4571,40 +5155,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

Rule data object.

- - - - - - cb @@ -4685,12 +5235,8 @@
Returns:
Example
-
management.createRule(data, function (err) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Rule created.
+    
management.createGuardianEnrollmentTicket(function (err, ticket) {
+  console.log(ticket);
 });
@@ -4702,14 +5248,14 @@
Example
-

createUser(data, cbopt) → {Promise|undefined}

+

createPasswordChangeTicket(cbopt) → {Promise}

-

Create a new user.

+

Create a new password change ticket.

@@ -4745,7 +5291,7 @@

createUser<
Source:
@@ -4789,40 +5335,6 @@

Parameters:
- - - data - - - - - -Object - - - - - - - - - - - - - - - - - - -

User data.

- - - - - - cb @@ -4886,9 +5398,6 @@
Returns:
Promise -| - -undefined
@@ -4903,12 +5412,17 @@
Returns:
Example
-
management.createUser(data, function (err) {
+    
var params = {
+  result_url: '{REDIRECT_URL}',  // Redirect after using the ticket.
+  user_id: '{USER_ID}',  // Optional.
+  email: '{USER_EMAIL}',  // Optional.
+  new_password: '{PASSWORD}'
+};
+
+auth0.createPasswordChangeTicket(params, function (err) {
   if (err) {
     // Handle error.
   }
-
-  // User created.
 });
@@ -4920,14 +5434,14 @@
Example
-

deleteAllUsers(cbopt) → {Promise|undefined}

+

createResourceServer(data, cbopt) → {Promise|undefined}

-

Delete all users.

+

Create a new resource server.

@@ -4951,8 +5465,6 @@

deleteA -
Deprecated:
  • This method will be removed in the next major release.
- @@ -4965,7 +5477,7 @@

deleteA
Source:
@@ -5009,6 +5521,40 @@

Parameters:
+ + + data + + + + + +Object + + + + + + + + + + + + + + + + + + +

Resource Server data object.

+ + + + + + cb @@ -5038,7 +5584,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -5089,12 +5635,12 @@
Returns:
Example
-
management.deleteAllUsers(function (err) {
+    
management.createResourceServer(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users deleted
+  // Resource Server created.
 });
@@ -5106,14 +5652,14 @@
Example
-

deleteClient(params, cbopt) → {Promise|undefined}

+

createRole(data, cbopt) → {Promise|undefined}

-

Delete an Auth0 client.

+

Create a new role.

@@ -5149,7 +5695,7 @@

deleteCli
Source:
@@ -5195,7 +5741,7 @@

Parameters:
- params + data @@ -5220,94 +5766,43 @@
Parameters:
-

Client parameters.

+

Role data object.

- - - - - - - - - - - - - - - - - - + + - - + + + - - - - -
NameTypeDescription
client_idcb -String +function + + <optional>
+ + + + + +
-

Application client ID.

- -
- - - - - - - - - - cb - - - - - -function - - - - - - - - - <optional>
- - - - - - - - - - - -

Callback function.

+

Callback function.

@@ -5358,12 +5853,13 @@
Returns:
Example
-
management.deleteClient({ client_id: CLIENT_ID }, function (err) {
+    
data = {"name": "test1","description": "123"}
+management.createRole(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Client deleted.
+  // Role created.
 });
@@ -5375,14 +5871,14 @@
Example
-

deleteClientGrant(params, cbopt) → {Promise|undefined}

+

createRule(data, cbopt) → {Promise|undefined}

-

Delete an Auth0 client grant.

+

Create a new rule.

@@ -5418,7 +5914,7 @@

dele
Source:
@@ -5464,7 +5960,7 @@

Parameters:
- params + data @@ -5489,58 +5985,7 @@
Parameters:
-

Client parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Client grant ID.

- -
- +

Rule data object.

@@ -5627,12 +6072,12 @@
Returns:
Example
-
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
+    
management.createRule(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Grant deleted.
+  // Rule created.
 });
@@ -5644,14 +6089,14 @@
Example
-

deleteConnection(params, cbopt) → {Promise|undefined}

+

createUser(data, cbopt) → {Promise|undefined}

-

Delete an existing connection.

+

Create a new user.

@@ -5687,7 +6132,7 @@

delet
Source:
@@ -5733,7 +6178,7 @@

Parameters:
- params + data @@ -5758,58 +6203,7 @@
Parameters:
-

Connection parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Connection ID.

- -
- +

User data.

@@ -5896,12 +6290,12 @@
Returns:
Example
-
management.deleteConnection({ id: CONNECTION_ID }, function (err) {
+    
management.createUser(data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Conection deleted.
+  // User created.
 });
@@ -5913,14 +6307,14 @@
Example
-

deleteCustomDomain(params, cbopt) → {Promise|undefined}

+

deleteAllUsers(cbopt) → {Promise|undefined}

-

Delete a Custom Domain.

+

Delete all users.

@@ -5944,6 +6338,8 @@

del +
Deprecated:
  • This method will be removed in the next major release.
+ @@ -5956,7 +6352,7 @@

del
Source:
@@ -6000,91 +6396,6 @@

Parameters:
- - - params - - - - - -Object - - - - - - - - - - - - - - - - - - -

Custom Domain parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Custom Domain ID.

- -
- - - - - - - cb @@ -6114,7 +6425,7 @@
Parameters:
-

Callback function.

+

Callback function

@@ -6165,12 +6476,12 @@
Returns:
Example
-
management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
+    
management.deleteAllUsers(function (err) {
   if (err) {
     // Handle error.
   }
 
-  // CustomDomain deleted.
+  // Users deleted
 });
@@ -6182,14 +6493,14 @@
Example
-

deleteDeviceCredential(params, cbopt) → {Promise|undefined}

+

deleteClient(params, cbopt) → {Promise|undefined}

-

Delete an Auth0 device credential.

+

Delete an Auth0 client.

@@ -6225,7 +6536,7 @@

Source:
@@ -6296,7 +6607,7 @@

Parameters:
-

Credential parameters.

+

Client parameters.

@@ -6322,7 +6633,7 @@
Parameters:
- id + client_id @@ -6339,7 +6650,7 @@
Parameters:
-

Device credential ID.

+

Application client ID.

@@ -6434,14 +6745,12 @@
Returns:
Example
-
var params = { id: CREDENTIAL_ID };
-
-management.deleteDeviceCredential(params, function (err) {
+    
management.deleteClient({ client_id: CLIENT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Credential deleted.
+  // Client deleted.
 });
@@ -6453,14 +6762,14 @@
Example
-

deleteEmailProvider(cbopt) → {Promise|undefined}

+

deleteClientGrant(params, cbopt) → {Promise|undefined}

-

Delete email provider.

+

Delete an Auth0 client grant.

@@ -6496,7 +6805,7 @@

de
Source:
@@ -6540,6 +6849,91 @@

Parameters:
+ + + params + + + + + +Object + + + + + + + + + + + + + + + + + + +

Client parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Client grant ID.

+ +
+ + + + + + + cb @@ -6620,12 +7014,12 @@
Returns:
Example
-
management.deleteEmailProvider(function (err) {
+    
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Email provider deleted.
+  // Grant deleted.
 });
@@ -6637,14 +7031,14 @@
Example
-

deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}

+

deleteConnection(params, cbopt) → {Promise|undefined}

-

Delete a user's Guardian enrollment.

+

Delete an existing connection.

@@ -6680,7 +7074,7 @@

Source:
@@ -6726,7 +7120,7 @@
Parameters:
- data + params @@ -6751,7 +7145,7 @@
Parameters:
-

The Guardian enrollment data object.

+

Connection parameters.

@@ -6794,7 +7188,7 @@
Parameters:
-

The Guardian enrollment id.

+

Connection ID.

@@ -6889,12 +7283,12 @@
Returns:
Example
-
management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
+    
management.deleteConnection({ id: CONNECTION_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Email provider deleted.
+  // Conection deleted.
 });
@@ -6906,14 +7300,14 @@
Example
-

deleteResourceServer(params, cbopt) → {Promise|undefined}

+

deleteCustomDomain(params, cbopt) → {Promise|undefined}

-

Delete an existing resource server.

+

Delete a Custom Domain.

@@ -6949,7 +7343,7 @@

d
Source:
@@ -7020,7 +7414,7 @@

Parameters:
-

Resource Server parameters.

+

Custom Domain parameters.

@@ -7063,7 +7457,7 @@
Parameters:
-

Resource Server ID.

+

Custom Domain ID.

@@ -7158,12 +7552,12 @@
Returns:
Example
-
management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+    
management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Resource Server deleted.
+  // CustomDomain deleted.
 });
@@ -7175,14 +7569,14 @@
Example
-

deleteRule(params, cbopt) → {Promise|undefined}

+

deleteDeviceCredential(params, cbopt) → {Promise|undefined}

-

Delete an existing rule.

+

Delete an Auth0 device credential.

@@ -7218,7 +7612,7 @@

deleteRule<
Source:
@@ -7289,7 +7683,7 @@

Parameters:
-

Rule parameters.

+

Credential parameters.

@@ -7332,7 +7726,7 @@
Parameters:
-

Rule ID.

+

Device credential ID.

@@ -7427,12 +7821,14 @@
Returns:
Example
-
auth0.deleteRule({ id: RULE_ID }, function (err) {
+    
var params = { id: CREDENTIAL_ID };
+
+management.deleteDeviceCredential(params, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Rule deleted.
+  // Credential deleted.
 });
@@ -7444,14 +7840,14 @@
Example
-

deleteRulesConfig(params, cbopt) → {Promise|undefined}

+

deleteEmailProvider(cbopt) → {Promise|undefined}

-

Delete rules config.

+

Delete email provider.

@@ -7487,7 +7883,7 @@

dele
Source:
@@ -7531,91 +7927,6 @@

Parameters:
- - - params - - - - - -Object - - - - - - - - - - - - - - - - - - -

Rule Configs parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
key - - -String - - - - -

Rule Configs key.

- -
- - - - - - - cb @@ -7696,12 +8007,12 @@
Returns:
Example
-
management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+    
management.deleteEmailProvider(function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Rules Config deleted.
+  // Email provider deleted.
 });
@@ -7713,14 +8024,14 @@
Example
-

deleteUser(params, cbopt) → {Promise|undefined}

+

deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}

-

Delete a user by its id.

+

Delete a user's Guardian enrollment.

@@ -7756,7 +8067,7 @@

deleteUser<
Source:
@@ -7802,7 +8113,7 @@

Parameters:
- params + data @@ -7827,7 +8138,7 @@
Parameters:
-

The user data object..

+

The Guardian enrollment data object.

@@ -7870,7 +8181,7 @@
Parameters:
-

The user id.

+

The Guardian enrollment id.

@@ -7914,7 +8225,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -7965,12 +8276,12 @@
Returns:
Example
-
management.deleteUser({ id: USER_ID }, function (err) {
+    
management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // User deleted.
+  // Email provider deleted.
 });
@@ -7982,14 +8293,14 @@
Example
-

deleteUserMultifactor(params, cbopt) → {Promise|undefined}

+

deleteResourceServer(params, cbopt) → {Promise|undefined}

-

Delete a multifactor provider for a user.

+

Delete an existing resource server.

@@ -8025,7 +8336,7 @@

Source:
@@ -8096,7 +8407,7 @@

Parameters:
-

Data object.

+

Resource Server parameters.

@@ -8139,33 +8450,7 @@
Parameters:
-

The user id.

- - - - - - - - - provider - - - - - -String - - - - - - - - - - -

Multifactor provider.

+

Resource Server ID.

@@ -8209,7 +8494,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -8260,14 +8545,12 @@
Returns:
Example
-
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifactor(params, function (err, user) {
+    
management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  // Resource Server deleted.
 });
@@ -8279,14 +8562,14 @@
Example
-

deleteUserMultifcator(params, cbopt) → {Promise|undefined}

+

deleteRole(params, cbopt) → {Promise|undefined}

-

Delete a multifactor provider for a user.

+

Delete an existing role.

@@ -8310,10 +8593,6 @@

-
Deprecated:
  • The function name has a typo. -We're shipping this so it doesn't break compatibility. -Use deleteUserMultifactor instead.
- @@ -8326,7 +8605,7 @@

Source:
@@ -8397,7 +8676,7 @@

Parameters:
-

Data object.

+

Role parameters.

@@ -8440,33 +8719,7 @@
Parameters:
-

The user id.

- - - - - - - - - provider - - - - - -String - - - - - - - - - - -

Multifactor provider.

+

Role ID.

@@ -8510,7 +8763,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -8561,14 +8814,12 @@
Returns:
Example
-
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifcator(params, function (err, user) {
+    
management.deleteRole({ id: ROLE_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  // Role deleted.
 });
@@ -8580,14 +8831,14 @@
Example
-

exportUsers(data, cbopt) → {Promise|undefined}

+

deleteRule(params, cbopt) → {Promise|undefined}

-

Export all users to a file using a long running job.

+

Delete an existing rule.

@@ -8623,7 +8874,7 @@

exportUser
Source:
@@ -8669,7 +8920,7 @@

Parameters:
- data + params @@ -8694,7 +8945,7 @@
Parameters:
-

Users export data.

+

Rule parameters.

@@ -8708,8 +8959,6 @@
Parameters:
Type - Attributes - @@ -8722,43 +8971,7 @@
Parameters:
- connection_id - - - - - -String - - - - - - - - - <optional>
- - - - - - - - - - - -

The connection id of the connection from which users will be exported

- - - - - - - - - format + id @@ -8771,93 +8984,11 @@
Parameters:
- - - <optional>
- - - - - - - - - - - -

The format of the file. Valid values are: "json" and "csv".

- - - - - - - - - limit - - - - - -Number - - - - - - - - - <optional>
- - - - - - - - - - - -

Limit the number of records.

- - - - - - - - - fields - - - - - -Array.<Object> - - - - - - - - - <optional>
- - - - - - - -

A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported.

+

Rule ID.

@@ -8952,37 +9083,12 @@
Returns:
Example
-
var data = {
-  connection_id: 'con_0000000000000001',
-  format: 'csv',
-  limit: 5,
-  fields: [
-    {
-      "name": "user_id"
-    },
-    {
-      "name": "name"
-    },
-    {
-      "name": "email"
-    },
-    {
-      "name": "identities[0].connection",
-      "export_as": "provider"
-    },
-    {
-      "name": "user_metadata.some_field"
-    }
-  ]
-}
-
-management.exportUsers(data, function (err, results) {
+    
auth0.deleteRule({ id: RULE_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Retrieved job.
-  console.log(results);
+  // Rule deleted.
 });
@@ -8994,14 +9100,14 @@
Example
-

getActiveUsersCount(cbopt) → {Promise|undefined}

+

deleteRulesConfig(params, cbopt) → {Promise|undefined}

-

Get a the active users count.

+

Delete rules config.

@@ -9037,7 +9143,7 @@

ge
Source:
@@ -9083,13 +9189,13 @@

Parameters:
- cb + params -function +Object @@ -9098,8 +9204,6 @@
Parameters:
- <optional>
- @@ -9110,159 +9214,62 @@
Parameters:
-

Callback function.

+

Rule Configs parameters.

- - - - - - - - - - - - - - - - - - - - -
-
Returns:
+ + + + - -
-
- Type: -
-
+
-Promise -| - -undefined - - - - - - - - + - -
-
Example
- -
management.getActiveUsersCount(function (err, usersCount) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(usersCount);
-});
- -
- - - -
- - - -

getBlacklistedTokens(cbopt) → {Promise|undefined}

- - - - - -
-

Get all blacklisted tokens.

-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - + - +
+ + + - - + + + + + + + + + -
Parameters:
+ +
NameTypeDescription
key + + +String + + +

Rule Configs key.

+ +
- - - - - - - - - - - - - - - - - - + + + - @@ -9345,8 +9352,12 @@
Returns:
Example
-
management.getBlacklistedTokens(function (err, tokens) {
-  console.log(tokens.length);
+    
management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Rules Config deleted.
 });
@@ -9358,14 +9369,14 @@
Example
-

getClient(params, cbopt) → {Promise|undefined}

+

deleteUser(params, cbopt) → {Promise|undefined}

-

Get an Auth0 client.

+

Delete a user by its id.

@@ -9401,7 +9412,7 @@

getClientSource:
@@ -9472,7 +9483,7 @@
Parameters:

- + @@ -9559,7 +9570,7 @@
Parameters:
@@ -9610,12 +9621,12 @@
Returns:
Example
-
management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+    
management.deleteUser({ id: USER_ID }, function (err) {
   if (err) {
     // Handle error.
   }
 
-  console.log(client);
+  // User deleted.
 });
@@ -9627,14 +9638,14 @@
Example
-

getClientGrants(paramsopt, cbopt) → {Promise|undefined}

+

deleteUserMultifactor(params, cbopt) → {Promise|undefined}

-

Get all Auth0 Client Grants.

+

Delete a multifactor provider for a user.

@@ -9670,7 +9681,7 @@

getCli
Source:
@@ -9731,8 +9742,6 @@

Parameters:
- - @@ -9771,34 +9778,24 @@
Parameters:
- + - - @@ -9807,34 +9804,24 @@
Parameters:
- + - - @@ -9878,7 +9865,7 @@
Parameters:
@@ -9929,20 +9916,14 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
 
-management.getClientGrants(params, function (err, grants) {
-  console.log(grants.length);
+management.deleteUserMultifactor(params, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Users accounts unlinked.
 });
@@ -9954,14 +9935,14 @@
Example
-

getClientInfo() → {Object}

+

deleteUserMultifcator(params, cbopt) → {Promise|undefined}

-

Return an object with information about the current client,

+

Delete a multifactor provider for a user.

@@ -9985,113 +9966,9 @@

getClien - - - - - - - - - - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Object - - -
-
- - -
-

Object containing client information.

-
- - -
- - - - - - -
- - - -

getClients(paramsopt, cbopt) → {Promise|undefined}

- - - - - -
-

Get all Auth0 clients.

-
- - - - - -
- - - - - - - - - - - - - - - +
Deprecated:
  • The function name has a typo. +We're shipping this so it doesn't break compatibility. +Use deleteUserMultifactor instead.
@@ -10105,7 +9982,7 @@

getClients<
Source:
@@ -10166,8 +10043,6 @@

Parameters:

- - @@ -10206,34 +10079,24 @@
Parameters:
- + - - @@ -10242,34 +10105,24 @@
Parameters:
- + - - @@ -10313,7 +10166,7 @@
Parameters:
@@ -10364,20 +10217,14 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
 
-management.getClients(params, function (err, clients) {
-  console.log(clients.length);
+management.deleteUserMultifcator(params, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Users accounts unlinked.
 });
@@ -10389,14 +10236,14 @@
Example
-

getConnection(params, cbopt) → {Promise|undefined}

+

exportUsers(data, cbopt) → {Promise|undefined}

-

Get an Auth0 connection.

+

Export all users to a file using a long running job.

@@ -10432,7 +10279,7 @@

getConne
Source:
@@ -10478,7 +10325,7 @@

Parameters:
- + + + @@ -10529,7 +10378,7 @@
Parameters:
- + + - + + - - -
NameTypeAttributesDescription
-

Client parameters.

+

The user data object..

@@ -9498,7 +9509,7 @@
Parameters:
client_idid @@ -9515,7 +9526,7 @@
Parameters:
-

Application client ID.

+

The user id.

-

Callback function.

+

Callback function

- <optional>
- @@ -9743,7 +9752,7 @@
Parameters:
-

Client Grants parameters.

+

Data object.

@@ -9757,8 +9766,6 @@
Parameters:
TypeAttributes
per_pageid -Number +String - - <optional>
- - - - - -
-

Number of results per page.

+

The user id.

pageprovider -Number +String - - <optional>
- - - - - -
-

Page number, zero indexed.

+

Multifactor provider.

-

Callback function.

+

Callback function

- <optional>
- @@ -10178,7 +10053,7 @@
Parameters:
-

Clients parameters.

+

Data object.

@@ -10192,8 +10067,6 @@
Parameters:
TypeAttributes
per_pageid -Number +String - - <optional>
- - - - - -
-

Number of results per page.

+

The user id.

pageprovider -Number +String - - <optional>
- - - - - -
-

Page number, zero indexed.

+

Multifactor provider.

-

Callback function.

+

Callback function

paramsdata @@ -10503,7 +10350,7 @@
Parameters:
-

Connection parameters.

+

Users export data.

@@ -10517,6 +10364,8 @@
Parameters:
TypeAttributes
idconnection_id @@ -10542,19 +10391,21 @@
Parameters:
+ + <optional>
+ - + -
-

Connection ID.

-
+ + +

The connection id of the connection from which users will be exported

@@ -10563,13 +10414,13 @@
Parameters:
- cb + format -function +String @@ -10590,37 +10441,4552 @@
Parameters:
-

Callback function.

+

The format of the file. Valid values are: "json" and "csv".

- - + + + limit + + + + +Number + + + + + + <optional>
+ + + + + + + +

Limit the number of records.

+ + + + + + + fields + + + + +Array.<Object> -
-
Returns:
+ + - + + + + <optional>
+ -
-
- Type: -
+ + + + + + + + + +

A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported.

+ + + + + + + + + + + + + + + + + cb + + + + + +function + + + + + + + + + <optional>
+ + + + + + + + + + + +

Callback function.

+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var data = {
+  connection_id: 'con_0000000000000001',
+  format: 'csv',
+  limit: 5,
+  fields: [
+    {
+      "name": "user_id"
+    },
+    {
+      "name": "name"
+    },
+    {
+      "name": "email"
+    },
+    {
+      "name": "identities[0].connection",
+      "export_as": "provider"
+    },
+    {
+      "name": "user_metadata.some_field"
+    }
+  ]
+}
+
+management.exportUsers(data, function (err, results) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Retrieved job.
+  console.log(results);
+});
+ +
+ +
+ + +
+ + + +

getActiveUsersCount(cbopt) → {Promise|undefined}

+ + + + + +
+

Get a the active users count.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getActiveUsersCount(function (err, usersCount) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(usersCount);
+});
+ +
+ +
+ + +
+ + + +

getBlacklistedTokens(cbopt) → {Promise|undefined}

+ + + + + +
+

Get all blacklisted tokens.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getBlacklistedTokens(function (err, tokens) {
+  console.log(tokens.length);
+});
+ +
+ +
+ + +
+ + + +

getClient(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get an Auth0 client.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Client parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
client_id + + +String + + + + +

Application client ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(client);
+});
+ +
+ +
+ + +
+ + + +

getClientGrants(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 Client Grants.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Client Grants parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getClientGrants(params, function (err, grants) {
+  console.log(grants.length);
+});
+ +
+ +
+ + +
+ + + +

getClientInfo() → {Object}

+ + + + + +
+

Return an object with information about the current client,

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Object + + +
+
+ + +
+

Object containing client information.

+
+ + +
+ + + +
+ + +
+ + + +

getClients(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 clients.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Clients parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getClients(params, function (err, clients) {
+  console.log(clients.length);
+});
+ +
+ +
+ + +
+ + + +

getConnection(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get an Auth0 connection.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Connection parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Connection ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(connection);
+});
+ +
+ +
+ + +
+ + + +

getConnections(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all connections.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Connections params.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getConnections(params, function (err, connections) {
+  console.log(connections.length);
+});
+ +
+ +
+ + +
+ + + +

getCustomDomain(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a Custom Domain.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Custom Domain parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Custom Domain ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(customDomain);
+});
+ +
+ +
+ + +
+ + + +

getCustomDomains() → {Promise|undefined}

+ + + + + +
+

Get all Auth0 CustomDomains.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getCustomDomains(function (err, customDomains) {
+  console.log(customDomains.length);
+});
+ +
+ +
+ + +
+ + + +

getDailyStats(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get the daily stats.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Stats parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
from + + +String + + + + +

The first day in YYYYMMDD format.

+ +
to + + +String + + + + +

The last day in YYYYMMDD format.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+  from: '{YYYYMMDD}',  // First day included in the stats.
+  to: '{YYYYMMDD}'  // Last day included in the stats.
+};
+
+management.getDaily(params, function (err, stats) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(stats);
+});
+ +
+ +
+ + +
+ + + +

getDeviceCredentials(cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 credentials.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getDeviceCredentials(function (err, credentials) {
+  console.log(credentials.length);
+});
+ +
+ +
+ + +
+ + + +

getEmailProvider(cbopt, paramsopt) → {Promise|undefined}

+ + + + + +
+

Get the email provider.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
params + + +Object + + + + + + <optional>
+ + + + + +
+

Clients parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
fields + + +Number + + + + + + <optional>
+ + + + + +
+

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields.

+ +
include_fields + + +Number + + + + + + <optional>
+ + + + + +
+

true if the fields specified are to be excluded from the result, false otherwise (defaults to true)

+ +
+ + +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getEmailProvider(function (err, provider) {
+  console.log(provider.length);
+});
+ +
+ +
+ + +
+ + + +

getGrants(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all Auth0 Grants.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Grants parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

+ +
user_id + + +String + + + + +

The user_id of the grants to retrieve.

+ +
client_id + + +String + + + + +

The client_id of the grants to retrieve.

+ +
audience + + +String + + + + +

The audience of the grants to retrieve.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params = {
+  per_page: 10,
+  page: 0,
+  include_totals: true,
+  user_id: USER_ID,
+  client_id: CLIENT_ID,
+  audience: AUDIENCE
+};
+
+management.getGrants(params, function (err, grants) {
+  console.log(grants.length);
+});
+ +
+ +
+ + +
+ + + +

getGuardianEnrollment(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a single Guardian enrollment.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

The Guardian enrollment data object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The Guardian enrollment id.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
+  console.log(enrollment);
+});
+ +
+ +
+ + +
+ + + +

getGuardianEnrollments(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a list of a user's Guardian enrollments.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

The user data object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The user id.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
+  console.log(enrollments);
+});
+ +
+ +
+ + +
+ + + +

getJob(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a job by its ID.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Job parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Job ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
Promise @@ -10641,12 +15007,17 @@
Returns:
Example
-
management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
+    
var params = {
+  id: '{JOB_ID}'
+};
+
+management.getJob(params, function (err, job) {
   if (err) {
     // Handle error.
   }
 
-  console.log(connection);
+  // Retrieved job.
+  console.log(job);
 });
@@ -10658,14 +15029,14 @@
Example
-

getConnections(paramsopt, cbopt) → {Promise|undefined}

+

getLog(params, cbopt) → {Promise|undefined}

-

Get all connections.

+

Get an Auth0 log.

@@ -10701,7 +15072,7 @@

getConn
Source:
@@ -10762,8 +15133,6 @@

Parameters:
- <optional>
- @@ -10774,7 +15143,7 @@
Parameters:
-

Connections params.

+

Log parameters.

@@ -10788,8 +15157,6 @@
Parameters:
Type - Attributes - @@ -10802,70 +15169,24 @@
Parameters:
- per_page - - - - - -Number - - - - - - - - - <optional>
- - - - - - - - - - - -

Number of results per page.

- - - - - - - - - page + id -Number +String - - - <optional>
- - - - - - - -

Page number, zero indexed.

+

Event ID.

@@ -10960,20 +15281,12 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
management.getLog({ id: EVENT_ID }, function (err, log) {
+  if (err) {
+    // Handle error.
+  }
 
-management.getConnections(params, function (err, connections) {
-  console.log(connections.length);
+  console.log(log);
 });
@@ -10985,14 +15298,14 @@
Example
-

getCustomDomain(params, cbopt) → {Promise|undefined}

+

getLogs(paramsopt, cbopt) → {Promise|undefined}

-

Get a Custom Domain.

+

Get all logs.

@@ -11028,7 +15341,7 @@

getCus
Source:
@@ -11074,13 +15387,176 @@

Parameters:
- params + params + + + + + +Object + + + + + + + + + <optional>
+ + + + + + + + + + + +

Logs params.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -11159,13 +15622,13 @@
Parameters:
- + - -
NameTypeAttributesDescription
q + + +String + + + + + + <optional>
+ + + + + +
+

Search Criteria using Query String Syntax

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number. Zero based

+ +
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

The amount of entries per page

+ +
sort -Object +String @@ -11089,6 +15565,8 @@
Parameters:
+ <optional>
+ @@ -11099,33 +15577,16 @@
Parameters:
-

Custom Domain parameters.

+

The field to use for sorting.

- - - - - - - - - - - - - - - - - - + + - - + + - + + - - -
NameTypeDescription
idfields @@ -11138,19 +15599,21 @@
Parameters:
+ + <optional>
+ - + -
-

Custom Domain ID.

-
+ +
+

A comma separated list of fields to include or exclude

cbinclude_fields -function +Boolean @@ -11186,134 +15649,94 @@
Parameters:
-

Callback function.

+

true if the fields specified are to be included in the result, false otherwise.

- - - - - - - - - - - - - - -
-
Returns:
- - - -
-
- Type: -
-
- -Promise -| - -undefined - - -
-
- - - -
- - -
-
Example
- -
management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
-  if (err) {
-    // Handle error.
-  }
-
-  console.log(customDomain);
-});
- -
- -
- + + + include_totals -
- - - -

getCustomDomains() → {Promise|undefined}

- - - - - -
-

Get all Auth0 CustomDomains.

-
+ + + +Boolean + + + + + + <optional>
+ -
+ - + + + - + - + +

true if a query summary must be included in the result, false otherwise. Default false

+ + + + + - + + + - + + + cb + - + + + +function - - + + - + + + + <optional>
+ - + - -
Source:
-
- + + + - + - + +

Callback function.

+ + + -
- - - - - - - + + @@ -11357,8 +15780,20 @@
Returns:
Example
-
management.getCustomDomains(function (err, customDomains) {
-  console.log(customDomains.length);
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings and the search query. If pagination options are + not present, the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 2
+};
+
+management.getLogs(params, function (err, logs) {
+  console.log(logs.length);
 });
@@ -11370,14 +15805,14 @@
Example
-

getDailyStats(params, cbopt) → {Promise|undefined}

+

getPermissionsInRole(roleIdopt, cbopt) → {Promise|undefined}

-

Get the daily stats.

+

Get permissions for a given role

@@ -11413,80 +15848,27 @@

getDaily
Source:
- - - - - -

- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - + - - - + - + - - - - - - - - - - @@ -11646,19 +16006,18 @@
Returns:
-
Example
+
Examples
-
var params = {
-  from: '{YYYYMMDD}',  // First day included in the stats.
-  to: '{YYYYMMDD}'  // Last day included in the stats.
-};
+    
var params =  { id :'ROLE_ID'};
-management.getDaily(params, function (err, stats) { - if (err) { - // Handle error. - } +

+ This method takes a roleId and + returns all permissions within that role - console.log(stats); +

+ +
management.getPermissionsInRole(params, function (err, permissions) {
+  console.log(permissions);
 });
@@ -11670,14 +16029,14 @@
Example
-

getDeviceCredentials(cbopt) → {Promise|undefined}

+

getResourceServer(params, cbopt) → {Promise|undefined}

-

Get all Auth0 credentials.

+

Get a Resource Server.

@@ -11713,7 +16072,7 @@

g
Source:
@@ -11757,6 +16116,91 @@

Parameters:
+ + + + + + + + + + + + + + + + + + @@ -11837,8 +16281,12 @@
Returns:
Example
-
management.getDeviceCredentials(function (err, credentials) {
-  console.log(credentials.length);
+    
management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(resourceServer);
 });
@@ -11850,14 +16298,14 @@
Example
-

getEmailProvider(cbopt, paramsopt) → {Promise|undefined}

+

getResourceServers(paramsopt, cbopt) → {Promise|undefined}

-

Get the email provider.

+

Get all resource servers.

@@ -11893,7 +16341,7 @@

getEm
Source:
@@ -11939,13 +16387,13 @@

Parameters:
- + - + + +
NameTypeAttributesDescription
params - - -Object - - - - - - -

Stats parameters.

- - +
Parameters:
+ @@ -11498,6 +15880,8 @@
Parameters:
+ + @@ -11510,7 +15894,7 @@
Parameters:
- + - - - - - - - - - - - - - - - + + - - - - -
TypeAttributes
fromroleId @@ -11523,45 +15907,21 @@
Parameters:
-

The first day in YYYYMMDD format.

+
-
to - + <optional>
-String + - -
-

The last day in YYYYMMDD format.

- -
- +

Id of the role

params + + +Object + + + + + + + + + + +

Resource Server parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Resource Server ID.

+ +
+ + +
cb
cbparams -function +Object @@ -11966,22 +16414,41 @@
Parameters:
-

Callback function.

+

Resource Servers parameters.

-
+ + + + + + + + + + + + + + + + + + - + @@ -12066,13 +16522,13 @@
Parameters:
- + - - - - -
NameTypeAttributesDescription
paramsper_page -Object +Number @@ -12002,35 +16469,16 @@
Parameters:
-

Clients parameters.

+

Number of results per page.

- - - - - - - - - - - - - - - - - - - - + + - - + + + + + +
NameTypeAttributesDescription
fieldspage @@ -12057,7 +16505,15 @@
Parameters:
-

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve: name, enabled, settings fields.

+

Page number, zero indexed.

+ +
+
include_fieldscb -Number +function @@ -12093,15 +16549,7 @@
Parameters:
-

true if the fields specified are to be excluded from the result, false otherwise (defaults to true)

- -
- +

Callback function.

@@ -12152,8 +16600,20 @@
Returns:
Example
-
management.getEmailProvider(function (err, provider) {
-  console.log(provider.length);
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getResourceServers(params, function (err, resourceServers) {
+  console.log(resourceServers.length);
 });
@@ -12165,14 +16625,14 @@
Example
-

getGrants(params, cbopt) → {Promise|undefined}

+

getRole(params, cbopt) → {Promise|undefined}

-

Get all Auth0 Grants.

+

Get an Auth0 role.

@@ -12208,7 +16668,7 @@

getGrantsSource:
@@ -12279,7 +16739,7 @@
Parameters:
-

Grants parameters.

+

Role parameters.

@@ -12305,137 +16765,7 @@
Parameters:
- per_page - - - - - -Number - - - - - - - - - - -

Number of results per page.

- - - - - - - - - page - - - - - -Number - - - - - - - - - - -

Page number, zero indexed.

- - - - - - - - - include_totals - - - - - -Boolean - - - - - - - - - - -

true if a query summary must be included in the result, false otherwise. Default false;

- - - - - - - - - user_id - - - - - -String - - - - - - - - - - -

The user_id of the grants to retrieve.

- - - - - - - - - client_id - - - - - -String - - - - - - - - - - -

The client_id of the grants to retrieve.

- - - - - - - - - audience + id @@ -12452,7 +16782,7 @@
Parameters:
-

The audience of the grants to retrieve.

+

Role ID.

@@ -12547,17 +16877,12 @@
Returns:
Example
-
var params = {
-  per_page: 10,
-  page: 0,
-  include_totals: true,
-  user_id: USER_ID,
-  client_id: CLIENT_ID,
-  audience: AUDIENCE
-};
+    
management.getRole({ id: ROLE_ID }, function (err, role) {
+  if (err) {
+    // Handle error.
+  }
 
-management.getGrants(params, function (err, grants) {
-  console.log(grants.length);
+  console.log(role);
 });
@@ -12569,14 +16894,14 @@
Example
-

getGuardianEnrollment(data, cbopt) → {Promise|undefined}

+

getRoles(paramsopt, cbopt) → {Promise|undefined}

-

Get a single Guardian enrollment.

+

Get all roles.

@@ -12612,7 +16937,7 @@

Source:
@@ -12658,7 +16983,7 @@

Parameters:
- data + params @@ -12673,6 +16998,8 @@
Parameters:
+ <optional>
+ @@ -12683,7 +17010,7 @@
Parameters:
-

The Guardian enrollment data object.

+

Roles parameters.

@@ -12697,6 +17024,8 @@
Parameters:
Type + Attributes + @@ -12709,24 +17038,70 @@
Parameters:
- id + per_page -String +Number + + + + + + + + + <optional>
+ + + + + + + + + + + +

Number of results per page.

+ + + + + + + + + page + + + + + +Number + + + <optional>
+ + + + + + + -

The Guardian enrollment id.

+

Page number, zero indexed.

@@ -12821,8 +17196,20 @@
Returns:
Example
-
management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
-  console.log(enrollment);
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.getRoles(params, function (err, roles) {
+  console.log(roles.length);
 });
@@ -12834,14 +17221,14 @@
Example
-

getGuardianEnrollments(data, cbopt) → {Promise|undefined}

+

getRule(params, cbopt) → {Promise|undefined}

-

Get a list of a user's Guardian enrollments.

+

Get an Auth0 rule.

@@ -12877,7 +17264,7 @@

Source:
@@ -12923,7 +17310,7 @@

Parameters:
- data + params @@ -12948,7 +17335,7 @@
Parameters:
-

The user data object.

+

Rule parameters.

@@ -12991,7 +17378,7 @@
Parameters:
-

The user id.

+

Rule ID.

@@ -13086,8 +17473,12 @@
Returns:
Example
-
management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
-  console.log(enrollments);
+    
management.getRule({ id: RULE_ID }, function (err, rule) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(rule);
 });
@@ -13099,14 +17490,14 @@
Example
-

getJob(params, cbopt) → {Promise|undefined}

+

getRules(paramsopt, cbopt) → {Promise|undefined}

-

Get a job by its ID.

+

Get all rules.

@@ -13142,7 +17533,7 @@

getJobSource:
@@ -13203,6 +17594,8 @@
Parameters:
+ <optional>
+ @@ -13213,7 +17606,7 @@
Parameters:
-

Job parameters.

+

Rules parameters.

@@ -13227,6 +17620,8 @@
Parameters:
Type + Attributes + @@ -13239,24 +17634,70 @@
Parameters:
- id + per_page -String +Number + + + <optional>
+ + + + + + + -

Job ID.

+

Number of results per page.

+ + + + + + + + + page + + + + + +Number + + + + + + + + + <optional>
+ + + + + + + + + + + +

Page number, zero indexed.

@@ -13351,17 +17792,20 @@
Returns:
Example
-
var params = {
-  id: '{JOB_ID}'
+        

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
 };
 
-management.getJob(params, function (err, job) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Retrieved job.
-  console.log(job);
+management.getRules(params, function (err, rules) {
+  console.log(rules.length);
 });
@@ -13373,14 +17817,14 @@
Example
-

getLog(params, cbopt) → {Promise|undefined}

+

getRulesConfigs() → {Promise|undefined}

-

Get an Auth0 log.

+

Get rules config.

@@ -13416,7 +17860,7 @@

getLogSource:
@@ -13435,114 +17879,149 @@

getLogParameters:

- - - - - - - - - - + + + + + + + + + +
+
Returns:
+ +
+
+ Type: +
+
+Promise +| + +undefined + + +
+
-
- - - + - - - - - +
management.getRulesConfigs(function (err, rulesConfigs) {
+  if (err) {
+    // Handle error.
+  }
 
-            
-                
+ + +
- + -
- + + + + @@ -13625,12 +18104,12 @@
Returns:
Example
-
management.getLog({ id: EVENT_ID }, function (err, log) {
+    
management.getSettings(function (err, settings) {
   if (err) {
     // Handle error.
   }
 
-  console.log(log);
+  console.log(settings);
 });
@@ -13642,14 +18121,14 @@
Example
-

getLogs(paramsopt, cbopt) → {Promise|undefined}

+

getUser(data, cbopt) → {Promise|undefined}

-

Get all logs.

+

Get a user by its id.

@@ -13685,7 +18164,7 @@

getLogsSource:
@@ -13731,7 +18210,7 @@
Parameters:

- + + + + + + + + + + + + + + + + + + + @@ -15626,14 +20297,18 @@
Returns:
-
Example
+
Examples
-
management.getSettings(function (err, settings) {
-  if (err) {
-    // Handle error.
-  }
+    
var params =  { id :'ROLE_ID'};
- console.log(settings); +

+ This method takes a roleId and + returns all users within that role + +

+ +
management.getUsersInRole(params, function (err, users) {
+  console.log(users);
 });
@@ -15645,14 +20320,15 @@
Example
-

getUser(data, cbopt) → {Promise|undefined}

+

importUsers(data, cbopt) → {Promise|undefined}

-

Get a user by its id.

+

Given a path to a file and a connection id, create a new job that imports the +users contained in the file and associate them with the given connection.

@@ -15688,7 +20364,7 @@

getUserSource:
@@ -15759,7 +20435,7 @@
Parameters:

- + + + + + + + + + + + + + + + + + @@ -15897,8 +20599,15 @@
Returns:
Example
-
management.getUser({ id: USER_ID }, function (err, user) {
-  console.log(user);
+    
var params = {
+  connection_id: '{CONNECTION_ID}',
+  users: '{PATH_TO_USERS_FILE}'
+};
+
+management.get(params, function (err) {
+  if (err) {
+    // Handle error.
+  }
 });
@@ -15910,14 +20619,14 @@
Example
-

getUserLogs(params, cbopt) → {Promise|undefined}

+

linkUsers(userId, params, cbopt) → {Promise|undefined}

-

Get user's log events.

+

Link the user with another account.

@@ -15953,7 +20662,7 @@

getUserLog
Source:
@@ -15999,13 +20708,13 @@

Parameters:
- + @@ -17037,7 +21772,7 @@
Parameters:
- + + + @@ -18214,58 +23106,33 @@
Parameters:
- + - - @@ -18589,32 +23437,32 @@
Parameters:
- + + - + + - - -
NameTypeAttributesDescription
params - - -Object +
+
Example
- -
- + // Get Rules Configs. +}); - + - - -

Log parameters.

- - +

getTenantSettings(cbopt) → {Promise|undefined}

- - - - - - + - - - +
+

Get the tenant settings..

+
- - - - + + + +
+ -
- - - + - + - + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + +
Parameters:
+ + +
NameTypeDescription
id - - -String + + - -
+ + + + + - + - - + + + - - -
NameType -

Event ID.

- -
Attributes
+ - -
Description
paramsdata @@ -13746,8 +18225,6 @@
Parameters:
- <optional>
- @@ -13758,278 +18235,50 @@
Parameters:
-

Logs params.

+

The user data object.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - + - + - - + + + + - + - - @@ -14124,20 +18373,8 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings and the search query. If pagination options are - not present, the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 2
-};
-
-management.getLogs(params, function (err, logs) {
-  console.log(logs.length);
+    
management.getUser({ id: USER_ID }, function (err, user) {
+  console.log(user);
 });
@@ -14149,14 +18386,14 @@
Example
-

getResourceServer(params, cbopt) → {Promise|undefined}

+

getUserLogs(params, cbopt) → {Promise|undefined}

-

Get a Resource Server.

+

Get user's log events.

@@ -14192,7 +18429,7 @@

getR
Source:
@@ -14263,7 +18500,7 @@

Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14401,12 +18742,14 @@
Returns:
Example
-
management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+    
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
+
+management.getUserLogs(params, function (err, logs) {
   if (err) {
     // Handle error.
   }
 
-  console.log(resourceServer);
+  console.log(logs);
 });
@@ -14418,14 +18761,14 @@
Example
-

getResourceServers(paramsopt, cbopt) → {Promise|undefined}

+

getUserPermissions(params, cbopt) → {Promise|undefined}

-

Get all resource servers.

+

Get user's permissions

@@ -14461,7 +18804,7 @@

get
Source:
@@ -14522,8 +18865,6 @@

Parameters:
- - @@ -14562,28 +18901,44 @@
Parameters:
- + - + + + + + + + + + +Number + + + + + @@ -14611,21 +18966,63 @@
Parameters:
-
+ + + + + + + + + + + + + + + + + + + + + + + + + - - @@ -14720,20 +19117,14 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  per_page: 10,
-  page: 0
-};
+    
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
 
-management.getResourceServers(params, function (err, resourceServers) {
-  console.log(resourceServers.length);
+management.getUserPermissions(params, function (err, logs) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(logs);
 });
@@ -14745,14 +19136,14 @@
Example
-

getRule(params, cbopt) → {Promise|undefined}

+

getUserRoles(params, cbopt) → {Promise|undefined}

-

Get an Auth0 rule.

+

Get user's roles

@@ -14788,7 +19179,7 @@

getRuleSource:
@@ -14859,7 +19250,7 @@
Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14997,12 +19492,14 @@
Returns:
Example
-
management.getRule({ id: RULE_ID }, function (err, rule) {
+    
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
+
+management.getUserRoles(params, function (err, logs) {
   if (err) {
     // Handle error.
   }
 
-  console.log(rule);
+  console.log(logs);
 });
@@ -15014,14 +19511,14 @@
Example
-

getRules(paramsopt, cbopt) → {Promise|undefined}

+

getUsers(paramsopt, cbopt) → {Promise|undefined}

-

Get all rules.

+

Get all users.

@@ -15057,7 +19554,7 @@

getRulesSource:
@@ -15130,7 +19627,7 @@
Parameters:

+ + + + + + + + + + + + + + + + + + @@ -15324,12 +19857,13 @@
Example
// Pagination settings.
 var params = {
+  search_engine: 'v3',
   per_page: 10,
   page: 0
 };
 
-management.getRules(params, function (err, rules) {
-  console.log(rules.length);
+auth0.getUsers(params, function (err, users) {
+  console.log(users.length);
 });
@@ -15341,14 +19875,14 @@
Example
-

getRulesConfigs() → {Promise|undefined}

+

getUsersByEmail(emailopt, cbopt) → {Promise|undefined}

-

Get rules config.

+

Get users for a given email address

@@ -15367,40 +19901,140 @@

getRul - + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + +

Parameters:
+ + +
NameTypeAttributesDescription
q - - -String - - - - - - <optional>
- - - - - -
-

Search Criteria using Query String Syntax

- -
page - - -Number - - - - - - <optional>
- - - - - -
-

Page number. Zero based

- -
per_page - - -Number - - - - - - <optional>
- - - - - -
-

The amount of entries per page

- -
sort - - -String - - - - - - <optional>
- - - - - -
-

The field to use for sorting.

- -
fields - - -String - - - - - - <optional>
- - - - - -
-

A comma separated list of fields to include or exclude

- -
include_fields - - -Boolean - - - - - - <optional>
- +
NameType -

true if the fields specified are to be included in the result, false otherwise.

- -
Description
include_totalsid -Boolean +String - - <optional>
- - - - - -
-

true if a query summary must be included in the result, false otherwise. Default false

+

The user id.

-

Resource Server parameters.

+

Get logs data.

@@ -14306,7 +18543,111 @@
Parameters:
-

Resource Server ID.

+

User id.

+ +
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
sort + + +String + + + + +

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

- <optional>
- @@ -14534,7 +18875,7 @@
Parameters:
-

Resource Servers parameters.

+

Get permissions data.

@@ -14548,8 +18889,6 @@
Parameters:
TypeAttributes
per_pageid -Number +String - - <optional>
- + + +
+

User id.

+
per_page + - + + + + +

Page number, zero indexed.

- <optional>
+
sort + + +String + + + + +

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+
include_totals + +Boolean + + + + -

Page number, zero indexed.

+

true if a query summary must be included in the result, false otherwise. Default false;

-

Rule parameters.

+

Get roles data.

@@ -14902,7 +19293,111 @@
Parameters:
-

Rule ID.

+

User id.

+ +
per_page + + +Number + + + + +

Number of results per page.

+ +
page + + +Number + + + + +

Page number, zero indexed.

+ +
sort + + +String + + + + +

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+ +
include_totals + + +Boolean + + + + +

true if a query summary must be included in the result, false otherwise. Default false;

-

Rules parameters.

+

Users params.

@@ -15156,6 +19653,42 @@
Parameters:
search_engine + + +Number + + + + + + <optional>
+ + + + + +
+

The version of the search engine to use.

+ +
per_page
+ + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - + - + + - -
Source:
-
- +
+ + + - + + + + + + + + + +
NameTypeAttributesDescription
email + + +String + - + + + + <optional>
+ - + - + +
+

Email Address of users to locate

+ +
cb + + +function - - + + + + <optional>
+ + + +
+

Callback function.

+ +
@@ -15444,12 +20078,13 @@
Returns:
Example
-
management.getRulesConfigs(function (err, rulesConfigs) {
-  if (err) {
-    // Handle error.
-  }
-
-  // Get Rules Configs.
+        

+ This method takes an email address as the first argument, + and returns all users with that email address +

+ +
auth0.getUsersByEmail(email, function (err, users) {
+  console.log(users);
 });
@@ -15461,14 +20096,14 @@
Example
-

getTenantSettings(cbopt) → {Promise|undefined}

+

getUsersInRole(roleIdopt, cbopt) → {Promise|undefined}

-

Get the tenant settings..

+

Get users in a given role

@@ -15504,7 +20139,7 @@

getT
Source:
@@ -15548,6 +20183,42 @@

Parameters:
roleId + + +String + + + + + + <optional>
+ + + + + +
+

Id of the role

+ +
cb -

The user data object.

+

Users import data.

@@ -15785,7 +20461,7 @@
Parameters:
idconnectionId @@ -15802,7 +20478,33 @@
Parameters:
-

The user id.

+

Connection for the users insertion.

+ +
users + + +String + + + + +

Path to the users data file.

paramsuserId -Object +String @@ -16024,111 +20733,67 @@
Parameters:
-

Get logs data.

+

ID of the primary user.

- - - - - - - - - - - - - - - - - - + + - - + - - - - - - - - - - - - - + + - - - - - - - - - - +
NameTypeDescription
idparams -String +Object -

User id.

+
-
per_page - -Number - - - - -

Number of results per page.

- -
page - +

Secondary user data.

-Number - + - -
+ + + + + - + - + - - + + + + + + - + @@ -16154,13 +20819,13 @@
Parameters:
- + @@ -16266,14 +20931,18 @@
Returns:
Example
-
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
+    
var userId = 'USER_ID';
+var params = {
+  user_id: 'OTHER_USER_ID',
+  connection_id: 'CONNECTION_ID'
+};
 
-management.getUserLogs(params, function (err, logs) {
+management.linkUsers(userId, params, function (err, user) {
   if (err) {
     // Handle error.
   }
 
-  console.log(logs);
+  // Users linked.
 });
@@ -16285,14 +20954,14 @@
Example
-

getUsers(paramsopt, cbopt) → {Promise|undefined}

+

regenerateRecoveryCode(data, cbopt) → {Promise|undefined}

-

Get all users.

+

Generate new Guardian recovery code.

@@ -16328,7 +20997,7 @@

getUsersSource:
@@ -16374,7 +21043,7 @@
Parameters:

- + - - @@ -16429,106 +21094,24 @@
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - @@ -16623,21 +21206,8 @@
Returns:
Example
-

- This method takes an optional object as first argument that may be used to - specify pagination settings. If pagination options are not present, - the first page of a limited number of results will be returned. -

- -
// Pagination settings.
-var params = {
-  search_engine: 'v3',
-  per_page: 10,
-  page: 0
-};
-
-auth0.getUsers(params, function (err, users) {
-  console.log(users.length);
+    
management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
+  console.log(newRecoveryCode);
 });
@@ -16649,14 +21219,14 @@
Example
-

getUsersByEmail(emailopt, cbopt) → {Promise|undefined}

+

removePermissionsFromRole(data, cbopt) → {Promise|undefined}

-

Get users for a given email address

+

Remove permissions from a role

@@ -16669,50 +21239,180 @@

getUse - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + +

Parameters:
+ + +
NameType -

Page number, zero indexed.

- -
Description
sortuser_id @@ -16145,7 +20810,7 @@
Parameters:
-

The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.

+

ID of the user to be linked.

include_totalsconnection_id -Boolean +String @@ -16171,7 +20836,7 @@
Parameters:
-

true if a query summary must be included in the result, false otherwise. Default false;

+

ID of the connection to be used.

paramsdata @@ -16389,8 +21058,6 @@
Parameters:
- <optional>
- @@ -16401,7 +21068,7 @@
Parameters:
-

Users params.

+

The user data object.

@@ -16415,8 +21082,6 @@
Parameters:
TypeAttributes
search_engine - - -Number - - - - - - <optional>
- - - - - -
-

The version of the search engine to use.

- -
per_page - - -Number - - - - - - <optional>
- - - - - -
-

Number of results per page.

- -
pageid -Number +String - - <optional>
- - - - - -
-

Page number, zero indexed.

+

The user id.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - + - + @@ -16852,13 +21582,11 @@
Returns:
Example
-

- This method takes an email address as the first argument, - and returns all users with that email address -

- -
auth0.getUsersByEmail(email, function (err, users) {
-  console.log(users);
+    
var params = { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+
+management.removePermissionsFromRole(params, data, function (err, permissions) {
+  console.log(permissions);
 });
@@ -16870,15 +21598,14 @@
Example
-

importUsers(data, cbopt) → {Promise|undefined}

+

removePermissionsFromUser(params, data, cbopt) → {Promise|undefined}

-

Given a path to a file and a connection id, create a new job that imports the -users contained in the file and associate them with the given connection.

+

Remove permissions from a user

@@ -16914,7 +21641,7 @@

importUser
Source:
@@ -16960,7 +21687,7 @@

Parameters:
- + - + + + + + +
NameTypeAttributesDescription
params.id + + +String + + + + + + + + + + +

ID of the Role.

+ +
data + + +Object - - + + + - + - + + +

permissions data

+ + - + + + + + + - + - -
Source:
-
- + - + - + + + + - - - + + + + + + + -
Parameters:
- + + + + + +
NameTypeDescription
permissions + + +String + + +

Array of permissions

+ + @@ -16724,8 +21424,6 @@
Parameters:
- - @@ -16738,7 +21436,7 @@
Parameters:
- + - + + + + + + + + + +String + + + + + + + + + +
TypeAttributes
emailpermission_name @@ -16751,21 +21449,53 @@
Parameters:
- - <optional>
- + + +
+

Name of a permission

+
resource_server_identifier + - -

Email Address of users to locate

+

Identifier for a resource

+ +
+ + +
+
dataparams @@ -16985,7 +21712,7 @@
Parameters:
-

Users import data.

+

params object

@@ -17011,7 +21738,7 @@
Parameters:
connectionIdid @@ -17028,7 +21755,15 @@
Parameters:
-

Connection for the users insertion.

+

user_id

+ +
+
usersdata @@ -17050,11 +21785,62 @@
Parameters:
+ + + + + + -

Path to the users data file.

+

data object containing list of permission IDs

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -17149,15 +21935,15 @@
Returns:
Example
-
var params = {
-  connection_id: '{CONNECTION_ID}',
-  users: '{PATH_TO_USERS_FILE}'
-};
+    
var parms =  { id : 'USER_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
 
-management.get(params, function (err) {
+management.removePermissionsFromUser(params, data, function (err) {
   if (err) {
     // Handle error.
   }
+
+  // User assigned permissions.
 });
@@ -17169,14 +21955,14 @@
Example
-

linkUsers(userId, params, cbopt) → {Promise|undefined}

+

removeRolesFromUser(params, data, cbopt) → {Promise|undefined}

-

Link the user with another account.

+

Remove roles from a user

@@ -17212,7 +21998,7 @@

linkUsersSource:
@@ -17258,13 +22044,13 @@
Parameters:

- + @@ -17292,13 +22129,13 @@
Parameters:
- + - - - - - - - - - - - - - - - - - + @@ -17481,18 +22292,15 @@
Returns:
Example
-
var userId = 'USER_ID';
-var params = {
-  user_id: 'OTHER_USER_ID',
-  connection_id: 'CONNECTION_ID'
-};
+    
var parms =  { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
 
-management.linkUsers(userId, params, function (err, user) {
+management.removeRolesFromUser(params, data, function (err) {
   if (err) {
     // Handle error.
   }
 
-  // Users linked.
+  // User assigned roles.
 });
@@ -17504,14 +22312,14 @@
Example
-

regenerateRecoveryCode(data, cbopt) → {Promise|undefined}

+

sendEmailVerification(data, cbopt) → {Promise|undefined}

-

Generate new Guardian recovery code.

+

Send a verification email to a user.

@@ -17547,7 +22355,7 @@

Source:
@@ -17618,7 +22426,7 @@

Parameters:
- + @@ -17756,8 +22564,14 @@
Returns:
Example
-
management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
-  console.log(newRecoveryCode);
+    
var params = {
+	user_id: '{USER_ID}'
+};
+
+management.sendEmailVerification(function (err) {
+  if (err) {
+    // Handle error.
+  }
 });
@@ -17769,14 +22583,14 @@
Example
-

sendEmailVerification(data, cbopt) → {Promise|undefined}

+

setRulesConfig(params, data, cbopt) → {Promise|undefined}

-

Send a verification email to a user.

+

Set a new rules config.

@@ -17812,7 +22626,7 @@

Source:
@@ -17856,6 +22670,91 @@

Parameters:
+ + + + + + + + + + + + + + + + + + @@ -17883,7 +22782,7 @@
Parameters:
- + @@ -18021,14 +22920,15 @@
Returns:
Example
-
var params = {
-	user_id: '{USER_ID}'
-};
+    
var params = { key: RULE_CONFIG_KEY };
+var data =   { value: RULES_CONFIG_VALUE };
 
-management.sendEmailVerification(function (err) {
+management.setRulesConfig(params, data, function (err, rulesConfig) {
   if (err) {
     // Handle error.
   }
+
+  // Rules Config set.
 });
@@ -18040,14 +22940,14 @@
Example
-

setRulesConfig(params, data, cbopt) → {Promise|undefined}

+

unlinkUsers(params, cbopt) → {Promise|undefined}

-

Set a new rules config.

+

Unlink the given accounts.

@@ -18083,7 +22983,7 @@

setRule
Source:
@@ -18154,7 +23054,7 @@

Parameters:
- + - - - - -
NameTypeDescription
permissions + + +String + + + + +

Array of permission IDs

userIdparams -String +Object @@ -17283,7 +22069,58 @@
Parameters:
-

ID of the primary user.

+

params object

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

user_id

+ +
+
paramsdata -Object +String @@ -17317,7 +22154,7 @@
Parameters:
-

Secondary user data.

+

data object containing list of role IDs

@@ -17343,33 +22180,7 @@
Parameters:
user_id - - -String - - - - -

ID of the user to be linked.

- -
connection_idroles @@ -17386,7 +22197,7 @@
Parameters:
-

ID of the connection to be used.

+

Array of role IDs

-

The user data object.

+

User data object.

@@ -17644,7 +22452,7 @@
Parameters:
iduser_id @@ -17661,7 +22469,7 @@
Parameters:
-

The user id.

+

ID of the user to be verified.

params + + +Object + + + + + + + + + + +

Rule Config parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +String + + + + +

Rule Config key.

+ +
+ + +
data -

User data object.

+

Rule Config Data parameters.

@@ -17909,7 +22808,7 @@
Parameters:
user_idvalue @@ -17926,7 +22825,7 @@
Parameters:
-

ID of the user to be verified.

+

Rule Config Data value.

-

Rule Config parameters.

+

Linked users data.

@@ -18180,7 +23080,7 @@
Parameters:
keyid @@ -18197,15 +23097,7 @@
Parameters:
-

Rule Config key.

- -
- +

Primary user ID.

dataprovider -Object +String - - - - - - -

Rule Config Data parameters.

+

Identity provider in use.

- - - - - - - - - - - - - - - - - - + + - - + @@ -18377,15 +23244,14 @@
Returns:
Example
-
var params = { key: RULE_CONFIG_KEY };
-var data =   { value: RULES_CONFIG_VALUE };
+    
var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
 
-management.setRulesConfig(params, data, function (err, rulesConfig) {
+management.unlinkUsers(params, function (err, user) {
   if (err) {
     // Handle error.
   }
 
-  // Rules Config set.
+  // Users accounts unlinked.
 });
@@ -18397,14 +23263,14 @@
Example
-

unlinkUsers(params, cbopt) → {Promise|undefined}

+

updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}

-

Unlink the given accounts.

+

Update the app metadata for a user.

@@ -18440,7 +23306,7 @@

unlinkUser
Source:
@@ -18511,7 +23377,7 @@

Parameters:
- - - - - - - - - - - - - - - - - + + + + + +
NameTypeDescription
valueuser_id @@ -18282,7 +23149,7 @@
Parameters:
-

Rule Config Data value.

+

Secondary user ID.

-

Linked users data.

+

The user data object..

@@ -18537,33 +23403,7 @@
Parameters:
id - - -String - - - - -

Primary user ID.

- -
providerid @@ -18580,7 +23420,15 @@
Parameters:
-

Identity provider in use.

+

The user id.

+ +
+
user_idmetadata -String +Object + - + - -

Secondary user ID.

-
+ + +

New app metadata.

@@ -18650,7 +23498,7 @@
Parameters:
-

Callback function.

+

Callback function

@@ -18701,14 +23549,18 @@
Returns:
Example
-
var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+    
var params = { id: USER_ID };
+var metadata = {
+  foo: 'bar'
+};
 
-management.unlinkUsers(params, function (err, user) {
+management.updateAppMetadata(params, metadata, function (err, user) {
   if (err) {
     // Handle error.
   }
 
-  // Users accounts unlinked.
+  // Updated user.
+  console.log(user);
 });
@@ -18720,14 +23572,14 @@
Example
-

updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}

+

updateClient(params, data, cbopt) → {Promise|undefined}

-

Update the app metadata for a user.

+

Update an Auth0 client.

@@ -18763,7 +23615,7 @@

upda
Source:
@@ -18834,7 +23686,7 @@

Parameters:
-

The user data object..

+

Client parameters.

@@ -18860,7 +23712,7 @@
Parameters:
- id + client_id @@ -18877,7 +23729,7 @@
Parameters:
-

The user id.

+

Application client ID.

@@ -18894,7 +23746,7 @@
Parameters:
- metadata + data @@ -18919,7 +23771,7 @@
Parameters:
-

New app metadata.

+

Updated client data.

@@ -18955,7 +23807,7 @@
Parameters:
-

Callback function

+

Callback function.

@@ -19006,18 +23858,15 @@
Returns:
Example
-
var params = { id: USER_ID };
-var metadata = {
-  foo: 'bar'
-};
+    
var data = { name: 'newClientName' };
+var params = { client_id: CLIENT_ID };
 
-management.updateAppMetadata(params, metadata, function (err, user) {
+management.updateClient(params, data, function (err, client) {
   if (err) {
     // Handle error.
   }
 
-  // Updated user.
-  console.log(user);
+  console.log(client.name);  // 'newClientName'
 });
@@ -19029,14 +23878,14 @@
Example
-

updateClient(params, data, cbopt) → {Promise|undefined}

+

updateClientGrant(params, data, cbopt) → {Promise|undefined}

-

Update an Auth0 client.

+

Update an Auth0 client grant.

@@ -19072,7 +23921,7 @@

updateCli
Source:
@@ -19169,7 +24018,7 @@

Parameters:
- client_id + id @@ -19186,7 +24035,7 @@
Parameters:
-

Application client ID.

+

Client grant ID.

@@ -19315,15 +24164,19 @@
Returns:
Example
-
var data = { name: 'newClientName' };
-var params = { client_id: CLIENT_ID };
+    
var data = {
+  client_id: CLIENT_ID,
+  audience: AUDIENCE,
+  scope: []
+};
+var params = { id: CLIENT_GRANT_ID };
 
-management.updateClient(params, data, function (err, client) {
+management.clientGrants.update(params, data, function (err, grant) {
   if (err) {
     // Handle error.
   }
 
-  console.log(client.name);  // 'newClientName'
+  console.log(grant.id);
 });
@@ -19335,14 +24188,14 @@
Example
-

updateClientGrant(params, data, cbopt) → {Promise|undefined}

+

updateConnection(params, data, cbopt) → {Promise|undefined}

-

Update an Auth0 client grant.

+

Update an existing connection.

@@ -19378,7 +24231,7 @@

upda
Source:
@@ -19449,7 +24302,7 @@

Parameters:
-

Client parameters.

+

Connection parameters.

@@ -19492,7 +24345,7 @@
Parameters:
-

Client grant ID.

+

Connection ID.

@@ -19534,7 +24387,7 @@
Parameters:
-

Updated client data.

+

Updated connection data.

@@ -19621,19 +24474,15 @@
Returns:
Example
-
var data = {
-  client_id: CLIENT_ID,
-  audience: AUDIENCE,
-  scope: []
-};
-var params = { id: CLIENT_GRANT_ID };
+    
var data = { name: 'newConnectionName' };
+var params = { id: CONNECTION_ID };
 
-management.clientGrants.update(params, data, function (err, grant) {
+management.updateConnection(params, data, function (err, connection) {
   if (err) {
     // Handle error.
   }
 
-  console.log(grant.id);
+  console.log(connection.name);  // 'newConnectionName'
 });
@@ -19645,14 +24494,14 @@
Example
-

updateConnection(params, data, cbopt) → {Promise|undefined}

+

updateEmailProvider(params, data, cbopt) → {Promise|undefined}

-

Update an existing connection.

+

Update the email provider.

@@ -19688,7 +24537,7 @@

updat
Source:
@@ -19759,58 +24608,7 @@

Parameters:
-

Connection parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - - -

Connection ID.

- -
- +

Email provider parameters.

@@ -19844,7 +24642,7 @@
Parameters:
-

Updated connection data.

+

Updated email provider data.

@@ -19931,15 +24729,13 @@
Returns:
Example
-
var data = { name: 'newConnectionName' };
-var params = { id: CONNECTION_ID };
-
-management.updateConnection(params, data, function (err, connection) {
+    
management.updateEmailProvider(params, data, function (err, provider) {
   if (err) {
     // Handle error.
   }
 
-  console.log(connection.name);  // 'newConnectionName'
+  // Updated email provider.
+  console.log(provider);
 });
@@ -19951,14 +24747,14 @@
Example
-

updateEmailProvider(params, data, cbopt) → {Promise|undefined}

+

updateResourceServer(params, data, cbopt) → {Promise|undefined}

-

Update the email provider.

+

Update an existing resource server.

@@ -19994,7 +24790,7 @@

up
Source:
@@ -20065,7 +24861,58 @@

Parameters:
-

Email provider parameters.

+

Resource Server parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Resource Server ID.

+ +
+ @@ -20099,7 +24946,7 @@
Parameters:
-

Updated email provider data.

+

Updated Resource Server data.

@@ -20186,13 +25033,15 @@
Returns:
Example
-
management.updateEmailProvider(params, data, function (err, provider) {
+    
var data = { name: 'newResourceServerName' };
+var params = { id: RESOURCE_SERVER_ID };
+
+management.updateResourceServer(params, data, function (err, resourceServer) {
   if (err) {
     // Handle error.
   }
 
-  // Updated email provider.
-  console.log(provider);
+  console.log(resourceServer.name);  // 'newResourceServerName'
 });
@@ -20204,14 +25053,14 @@
Example
-

updateResourceServer(params, data, cbopt) → {Promise|undefined}

+

updateRole(params, data, cbopt) → {Promise|undefined}

-

Update an existing resource server.

+

Update an existing role.

@@ -20247,7 +25096,7 @@

u
Source:
@@ -20318,7 +25167,7 @@

Parameters:
-

Resource Server parameters.

+

Role parameters.

@@ -20361,7 +25210,7 @@
Parameters:
-

Resource Server ID.

+

Role ID.

@@ -20403,7 +25252,7 @@
Parameters:
-

Updated Resource Server data.

+

Updated role data.

@@ -20490,15 +25339,14 @@
Returns:
Example
-
var data = { name: 'newResourceServerName' };
-var params = { id: RESOURCE_SERVER_ID };
-
-management.updateResourceServer(params, data, function (err, resourceServer) {
+    
var params = { id: ROLE_ID };
+var data = { name: 'my-role'};
+management.updateRole(params, data, function (err, role) {
   if (err) {
     // Handle error.
   }
 
-  console.log(resourceServer.name);  // 'newResourceServerName'
+  console.log(role.name); // 'my-role'.
 });
@@ -20553,7 +25401,7 @@

updateRule<
Source:
@@ -20858,7 +25706,7 @@

u
Source:
@@ -21074,7 +25922,7 @@

updateUser<
Source:
@@ -21380,7 +26228,7 @@

upd
Source:
@@ -21689,7 +26537,7 @@

ver
Source:
@@ -21927,7 +26775,7 @@

Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ManagementTokenProvider.html b/docs/module-management.ManagementTokenProvider.html index d54c5c3d0..82e343e91 100644 --- a/docs/module-management.ManagementTokenProvider.html +++ b/docs/module-management.ManagementTokenProvider.html @@ -24,7 +24,7 @@
@@ -633,7 +633,7 @@
Returns:

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.ResourceServersManager.html b/docs/module-management.ResourceServersManager.html index 68b038b8a..7b3909213 100644 --- a/docs/module-management.ResourceServersManager.html +++ b/docs/module-management.ResourceServersManager.html @@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RetryRestClient.html b/docs/module-management.RetryRestClient.html index 7b3710806..6064aa6ff 100644 --- a/docs/module-management.RetryRestClient.html +++ b/docs/module-management.RetryRestClient.html @@ -24,7 +24,7 @@
@@ -377,7 +377,7 @@
Parameters:

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RolesManager.html b/docs/module-management.RolesManager.html new file mode 100644 index 000000000..a5a59af78 --- /dev/null +++ b/docs/module-management.RolesManager.html @@ -0,0 +1,4226 @@ + + + + + + RolesManager - Documentation + + + + + + + + + + + + + + + + + +
+ +

RolesManager

+ + + + + + + +
+ +
+ +

+ management. + + RolesManager +

+ +

RolesManager +The role class provides a simple abstraction for performing CRUD operations +on Auth0 RolesManager.

+ + +
+ +
+
+ + +
+ + +

Constructor

+ + +

new RolesManager(options)

+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + +

The client options.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
baseUrl + + +String + + + + + + + + + + +

The URL of the API.

+ +
headers + + +Object + + + + + + <optional>
+ + + + + +
+

Headers to be included in all requests.

+ +
retry + + +Object + + + + + + <optional>
+ + + + + +
+

Retry Policy Config

+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +

Members

+ + + +
+

(inner) auth0RestClient :external:RestClient

+ + + + +
+

Provides an abstraction layer for performing CRUD operations on +Auth0 RolesManagers.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+ + + + + + +
+ + + +
+

(inner) clientOptions :Object

+ + + + +
+

Options object for the Rest Client instance.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+
    +
  • + +Object + + +
  • +
+ + + + + +
+ + + + + +

Methods

+ + + +
+ + + +

addPermissions(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Add permissions in a role

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params.id + + +String + + + + + + + + + + +

ID of the Role.

+ +
data + + +Object + + + + + + + + + + +

permissions data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permissions + + +String + + + + +

Array of permissions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permission_name + + +String + + + + +

Name of a permission

+ +
resource_server_identifier + + +String + + + + +

Identifier for a resource

+ +
+ + +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params =  { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+
+management.roles.addPermissions(params, data, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // permissions added.
+});
+ +
+ +
+ + +
+ + + +

assignRoles(params, data, cbopt) → {Promise|undefined}

+ + + + + +
+

Assign roles to a user

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

params object

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

user_id

+ +
+ + +
data + + +String + + + + + + + + + + +

data object containing list of role IDs

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
roles + + +String + + + + +

Array of role IDs

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params =  { id : 'USER_ID';
+var data = { "roles" : ["roleId1", "roleID2"]};
+
+management.users.assignRoles(params, data, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // roles added.
+});
+ +
+ +
+ + +
+ + + +

assignUsers(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Assign users to a role

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params.id + + +String + + + + + + + + + + +

ID of the Role.

+ +
data + + +Object + + + + + + + + + + +

permissions data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permissions + + +String + + + + +

Array of permissions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permission_name + + +String + + + + +

Name of a permission

+ +
resource_server_identifier + + +String + + + + +

Identifier for a resource

+ +
+ + +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params =  { id :'ROLE_ID'};
+var data = { "users" : ["userId1","userId2"]};
+
+management.roles.assignUsers(params, data, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // permissions added.
+});
+ +
+ +
+ + +
+ + + +

create(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Create a new role.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

Role data object.

+ +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.roles.create(data, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Role created.
+});
+ +
+ +
+ + +
+ + + +

delete(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Delete an existing role.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Role parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Role ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.roles.delete({ id: ROLE_ID }, function (err) {
+  if (err) {
+    // Handle error.
+  }
+
+  // Role deleted.
+});
+ +
+ +
+ + +
+ + + +

get(params, cbopt) → {Promise|undefined}

+ + + + + +
+

Get an Auth0 role.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Role parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Role ID.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.roles.get({ id: ROLE_ID }, function (err, role) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(role);
+});
+ +
+ +
+ + +
+ + + +

getAll(paramsopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get all roles.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + <optional>
+ + + + + +
+

Roles parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
per_page + + +Number + + + + + + <optional>
+ + + + + +
+

Number of results per page.

+ +
page + + +Number + + + + + + <optional>
+ + + + + +
+

Page number, zero indexed.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +

+ This method takes an optional object as first argument that may be used to + specify pagination settings. If pagination options are not present, + the first page of a limited number of results will be returned. +

+ +
// Pagination settings.
+var params = {
+  per_page: 10,
+  page: 0
+};
+
+management.roles.getAll(params, function (err, roles) {
+  console.log(roles.length);
+});
+ +
+ +
+ + +
+ + + +

getPermissionsInRole(emailopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get Permissions in a Role

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
email + + +String + + + + + + <optional>
+ + + + + +
+

Email address of user(s) to find

+ +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Examples
+ +
var params = {id : 'ROLE_ID'}
+ +

+ This method takes a first argument as the roleId and returns the permissions within that role +

+ +
management.roles.getPermissions( {id : 'ROLE_ID'}, function (err, permissions) {
+  console.log(permissions);
+});
+ +
+ +
+ + +
+ + + +

getUsers(emailopt, cbopt) → {Promise|undefined}

+ + + + + +
+

Get Users in a Role

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
email + + +String + + + + + + <optional>
+ + + + + +
+

Email address of user(s) to find

+ +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Examples
+ +
params = {id : 'ROLE_ID'}
+ +

+ This method takes a roleId and returns the users with that role assigned +

+ +
management.roles.getUsers( {id : 'ROLE_ID'}, function (err, users) {
+  console.log(users);
+});
+ +
+ +
+ + +
+ + + +

removePermissions(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Remove permissions from a role

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params.id + + +String + + + + + + + + + + +

ID of the Role.

+ +
data + + +Object + + + + + + + + + + +

permissions data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permissions + + +String + + + + +

Array of permissions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
permission_name + + +String + + + + +

Name of a permission

+ +
resource_server_identifier + + +String + + + + +

Identifier for a resource

+ +
+ + +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params =  { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
+
+management.roles.removePermissions(params, data, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // permissions added.
+});
+ +
+ +
+ + +
+ + + +

removeRoles(params, data, cbopt) → {Promise|undefined}

+ + + + + +
+

Remove roles from a user

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

params object

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

user_id

+ +
+ + +
data + + +String + + + + + + + + + + +

data object containing list of role IDs

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
roles + + +String + + + + +

Array of role IDs

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var params =  { id : 'USER_ID';
+var data = { "roles" : ["roleId1", "roleID2"]};
+
+management.users.removeRoles(params, data, function (err, user) {
+  if (err) {
+    // Handle error.
+  }
+
+  // roles removed.
+});
+ +
+ +
+ + +
+ + + +

update(params, data, cbopt) → {Promise|undefined}

+ + + + + +
+

Update an existing role.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
params + + +Object + + + + + + + + + + +

Role parameters.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

Role ID.

+ +
+ + +
data + + +Object + + + + + + + + + + +

Updated role data.

+ +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
var data = { name: 'New name' };
+var params = { id: ROLE_ID };
+
+// Using auth0 instance.
+management.updateRole(params, data, function (err, role) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(role.name);  // 'New name'
+});
+
+// Using the roles manager directly.
+management.roles.update(params, data, function (err, role) {
+  if (err) {
+    // Handle error.
+  }
+
+  console.log(role.name);  // 'New name'
+});
+ +
+ +
+ + + + + + +
+ +
+ + + + +
+ +
+ +
+ Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme. +
+ + + + + \ No newline at end of file diff --git a/docs/module-management.RulesConfigsManager.html b/docs/module-management.RulesConfigsManager.html index 4ed666499..6c0be5d76 100644 --- a/docs/module-management.RulesConfigsManager.html +++ b/docs/module-management.RulesConfigsManager.html @@ -24,7 +24,7 @@
@@ -1317,7 +1317,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.RulesManager.html b/docs/module-management.RulesManager.html index 7f9a2d970..84d895c28 100644 --- a/docs/module-management.RulesManager.html +++ b/docs/module-management.RulesManager.html @@ -24,7 +24,7 @@
@@ -1910,7 +1910,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.StatsManager.html b/docs/module-management.StatsManager.html index 5bd99e37f..e3d8ffa17 100644 --- a/docs/module-management.StatsManager.html +++ b/docs/module-management.StatsManager.html @@ -24,7 +24,7 @@
@@ -919,7 +919,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.TenantManager.html b/docs/module-management.TenantManager.html index 1c823a01d..c01a5bcc6 100644 --- a/docs/module-management.TenantManager.html +++ b/docs/module-management.TenantManager.html @@ -24,7 +24,7 @@
@@ -835,7 +835,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.TicketsManager.html b/docs/module-management.TicketsManager.html index 314bbde5f..dd25b20f3 100644 --- a/docs/module-management.TicketsManager.html +++ b/docs/module-management.TicketsManager.html @@ -24,7 +24,7 @@
@@ -805,7 +805,7 @@
Example

- Generated by JSDoc 3.5.5 on Mon Mar 18 2019 14:16:17 GMT-0300 (Brasilia Standard Time) using the Minami theme. + Generated by JSDoc 3.5.5 on Mon Apr 15 2019 10:58:27 GMT-0300 (Brasilia Standard Time) using the Minami theme.
diff --git a/docs/module-management.UsersManager.html b/docs/module-management.UsersManager.html index 0a798e1d0..8e5cf0a2e 100644 --- a/docs/module-management.UsersManager.html +++ b/docs/module-management.UsersManager.html @@ -24,7 +24,7 @@
@@ -687,6 +687,154 @@

(inn + + + + +
Type:
+ + + + + + +

+ + + +
+

(inner) userPermissionsClient :external:RestClient

+ + + + +
+

Provides an abstraction layer for CRD on permissions directly on a user

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + +
Type:
+ + + + + + +
+ + + +
+

(inner) userRolesClient :external:RestClient

+ + + + +
+

Provides an abstraction layer for CRD on roles for a user

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + +
@@ -836,7 +984,7 @@

createSource:
@@ -1054,7 +1202,7 @@

deleteSource:
@@ -1325,7 +1473,7 @@

deleteAllSource:
@@ -1509,7 +1657,7 @@

Source:
@@ -1806,7 +1954,7 @@

getSource:
@@ -2071,7 +2219,7 @@

getAllSource:
@@ -2398,7 +2546,7 @@

getByEmail<
Source:
@@ -2619,7 +2767,7 @@

Source:
@@ -2837,6 +2985,536 @@

Example

+
+ + + +

getPermissions(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a list of permissions for a user.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

The user data object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The user id.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.users.getPermissions({ id: USER_ID }, function (err, permissions) {
+  console.log(permissions);
+});
+ +
+ +
+ + +
+ + + +

getUserRoles(data, cbopt) → {Promise|undefined}

+ + + + + +
+

Get a list of roles for a user.

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
data + + +Object + + + + + + + + + + +

The user data object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + +

The user id.

+ +
+ + +
cb + + +function + + + + + + <optional>
+ + + + + +
+

Callback function.

+ +
+ + + + + + + + + + + + + + +
+
Returns:
+ + + +
+
+ Type: +
+
+ +Promise +| + +undefined + + +
+
+ + + +
+ + + +
+
Example
+ +
management.users.getRoles({ id: USER_ID }, function (err, roles) {
+  console.log(roles);
+});
+ +
+ +
+ +
@@ -2884,7 +3562,7 @@