Simple facade for consuming a REST API endpoint.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- @@ -1139,7 +1239,7 @@
- Source:
- @@ -414,7 +414,7 @@
- Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - @@ -1904,8 +821,6 @@
- @@ -2232,6 +1090,8 @@
- Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - @@ -1266,7 +1048,7 @@
- @@ -1535,12 +1317,12 @@
- @@ -1614,925 +1396,6 @@
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- @@ -900,7 +900,7 @@
- @@ -1345,7 +1480,7 @@
- Source: +
- + + + + + + + +
- Source: +
- + + + + + + + +
-
+
+
external:RestClient
+ + +
+ - Source: +
- + + + + + + + +
-
+
+
Object
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: -
- - - - - - - - -
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- -
+
+
external:RestClient
+ + +
+ - Source: +
- + + + + + + +
- Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - @@ -742,7 +1231,7 @@
- Source:
- @@ -1062,7 +1551,7 @@
- Source:
- @@ -1360,7 +1849,7 @@
- Source:
- @@ -723,7 +723,7 @@
- Source:
- @@ -798,7 +798,7 @@
- Source:
- @@ -873,7 +873,7 @@
- @@ -948,7 +948,7 @@
- Source:
- @@ -1023,7 +1023,7 @@
- Source:
- @@ -1098,7 +1098,7 @@
- Source:
- @@ -1173,7 +1173,7 @@
- Source:
- @@ -1248,7 +1248,7 @@
- Source:
- @@ -1275,6 +1275,81 @@
- Source: +
- + + + + + + + +
-
+
+
GrantsManager
+ + +
+ - @@ -1397,7 +1472,7 @@
- @@ -1471,7 +1546,7 @@
- @@ -1546,7 +1621,7 @@
- Source:
- @@ -1573,6 +1648,81 @@
- Source: +
- + + + + + + + +
-
+
+
RolesManager
+ + +
+ - @@ -1695,7 +1845,7 @@
- Source:
- @@ -1769,7 +1919,7 @@
- @@ -1843,7 +1993,7 @@
- @@ -1917,7 +2067,7 @@
- @@ -1992,7 +2142,7 @@
- @@ -2033,14 +2183,14 @@
- Source:
- @@ -2122,7 +2272,41 @@
- @@ -2422,7 +2651,7 @@
- - Type: - -
-
-
-
Promise
-| - -undefined
- - -
- - Source: -
- - - - - - - - -
- Source:
- @@ -2858,7 +3008,7 @@
- Source:
- @@ -3076,7 +3365,7 @@
- @@ -3292,6 +3663,40 @@
-
Promise
+| + +undefined
@@ -3369,15 +3777,12 @@ - Source:
- @@ -3476,6 +3881,40 @@
-
Promise
+| + +undefined
@@ -3553,17 +3995,12 @@ - Source:
- @@ -3689,7 +4126,7 @@
- Source:
- @@ -3907,7 +4344,7 @@
- Source:
- @@ -4125,7 +4562,7 @@
- Deprecated:
- This method will be removed in the next major release.
-
@@ -4274,7 +4709,7 @@ - Source:
- @@ -4318,6 +4753,40 @@
- Source:
- @@ -4502,91 +4971,6 @@
-
Promise
-| - -undefined
@@ -4667,12 +5048,15 @@ - Source:
- @@ -4773,13 +5157,13 @@
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
-
Promise
-| - -undefined
@@ -4936,12 +5412,17 @@ - @@ -5042,7 +5523,7 @@
- Source:
- @@ -5311,6 +5739,40 @@
- @@ -5522,58 +5985,7 @@
- Source:
- @@ -5766,7 +6178,7 @@
- Deprecated:
- This method will be removed in the next major release.
+
@@ -5989,7 +6352,7 @@ - Source:
- @@ -6033,91 +6396,6 @@
- Source:
- @@ -6329,7 +6607,7 @@
- Source:
- @@ -6598,7 +6876,7 @@
- Source:
- @@ -6867,7 +7145,7 @@
- Deprecated:
- The function name has a typo.
-We're shipping this so it doesn't break compatibility.
-Use
deleteUserMultifactor
instead.
-
@@ -7097,7 +7343,7 @@ - The function name has a typo.
-We're shipping this so it doesn't break compatibility.
-Use
- Source:
- @@ -7168,7 +7414,7 @@
- Source:
- @@ -7438,6 +7656,91 @@
- Source:
- @@ -7702,8 +8007,12 @@
- @@ -7804,7 +8113,7 @@
- Source:
- - + + + + + + + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Deprecated:
- The function name has a typo.
+We're shipping this so it doesn't break compatibility.
+Use
deleteUserMultifactor
instead.
+
+
+
+
+
+
+
+
+
+
+
+ - The function name has a typo.
+We're shipping this so it doesn't break compatibility.
+Use
- Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Object
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
-
-
Object
+Promise
+| + +undefined
- - Source:
- @@ -8196,8 +16133,6 @@
- Source:
- @@ -8523,6 +16402,8 @@
- Source:
- @@ -8792,8 +16729,6 @@
- Source:
- @@ -9119,6 +16998,8 @@
- Source:
- @@ -9404,13 +17310,13 @@
- - Type: - -
-
+
Name -Promise
-| - -undefined
- - -
- - Source: -
- - - + - +
- Source:
- @@ -9764,7 +17579,7 @@
- @@ -10002,114 +17879,149 @@
- + Type: + +
-
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- @@ -10294,7 +18210,7 @@
- @@ -10593,7 +18500,7 @@
- @@ -10826,115 +18839,24 @@
- Source:
- @@ -11362,46 +19243,150 @@
- Source:
- @@ -11640,7 +19627,7 @@
- @@ -11940,13 +19964,13 @@
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- @@ -12209,7 +20410,7 @@
- Source:
- @@ -12509,149 +20681,174 @@
- - Type: - -
-
+
Name -Promise
-| -undefined
+Type + +Attributes + -
- - Source: -
- - + - + - +
- @@ -13003,8 +21206,8 @@
- Source:
- @@ -13105,7 +21308,41 @@
- @@ -13495,8 +21702,6 @@
- Source:
- @@ -13844,13 +22044,13 @@
- Source:
- @@ -14091,7 +22426,7 @@
- @@ -14350,8 +22658,59 @@
- @@ -14699,7 +23029,7 @@
- Source:
- @@ -14964,7 +23352,7 @@
- Source:
- @@ -15260,7 +23686,7 @@
- Source:
- @@ -15617,7 +23992,7 @@
- Source:
- @@ -15940,7 +24302,7 @@
- Source:
- @@ -16249,58 +24608,7 @@
- Source:
- @@ -16555,7 +24861,7 @@
- Source:
- @@ -16861,7 +25167,58 @@
- Source:
- @@ -17114,7 +25472,7 @@
- Source:
- @@ -17393,91 +25750,6 @@
- Source:
- @@ -17698,6 +25966,91 @@
- Source:
- @@ -17941,7 +26299,7 @@
- Source:
- @@ -18247,7 +26608,7 @@
- Source: +
- + + + + + + + +
- Source: +
- + + + + + + + +
-
+
+
external:RestClient
+ + +
+ - Source: +
- + + + + + + + +
-
+
+
Object
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ -
+
+
external:RestClient
+ + +
+ - Source: +
- + + + + + + + +
-
+
+
external:RestClient
+ + +
+ - Source: +
- + + + + + + +
- @@ -1054,7 +1202,7 @@
- @@ -1325,7 +1473,7 @@
- @@ -1509,7 +1657,7 @@
- @@ -1806,7 +1954,7 @@
- @@ -2071,7 +2219,7 @@
- @@ -2398,7 +2546,7 @@
- Source:
- @@ -2619,7 +2767,7 @@
- @@ -2837,6 +2985,536 @@
- Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - Source: +
- + + + + + + + +
- + Type: + +
-
+
+
Promise
+| + +undefined
+ + +
+ - @@ -3219,7 +3897,7 @@
- @@ -3594,7 +4272,7 @@
- @@ -3859,7 +4537,7 @@
- @@ -4182,7 +4860,7 @@
- @@ -4488,7 +5166,7 @@
- Source:
- @@ -4797,7 +5475,7 @@
- Source:
- @@ -5075,7 +5753,7 @@
- EmailTemplatesManager +
- GrantsManager + +
- GuardianManager @@ -107,6 +110,9 @@
- RetryRestClient +
- RolesManager + +
- RulesConfigsManager @@ -150,7 +156,7 @@
diff --git a/docs/index.html b/docs/index.html
index 284900d46..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
diff --git a/docs/index.js.html b/docs/index.js.html
index 1c8d473a0..094cc993b 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -24,7 +24,7 @@
@@ -61,7 +61,7 @@ index.js
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html
index 48fdcb021..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
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html
index 02d124357..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
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html
index ee848a5a2..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
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html
index 15c95b0b1..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
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html
index 09e419d59..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
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html
index f5dc2e012..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
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html
index 38f961049..01384f0f8 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
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html
index b926f4b92..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
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html
new file mode 100644
index 000000000..ccceff56b
--- /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;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html
index fd969d25b..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
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html
index 0b1a0388d..9b1f553c9 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
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html
index 6c9f5b9ea..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
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html
index 2b5b18db8..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
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html
index 3cfaa5da4..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
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;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html
index 18de21ac5..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
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html
index 8f51c048f..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
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html
index aff6e68c8..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
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html
index 2a14fe60a..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
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html
index ce0b83bb6..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
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html
index 76adaeaa4..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
diff --git a/docs/management_index.js.html b/docs/management_index.js.html
index 9e4daa584..4d6da6415 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');
@@ -69,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/';
@@ -190,6 +192,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.
@@ -311,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);
};
/**
@@ -599,8 +617,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 +648,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 +670,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 +701,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) {
@@ -703,6 +721,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.
*
@@ -1276,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.
*
@@ -1430,7 +1680,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 +1902,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 +2286,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 +2308,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 +2323,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 +2346,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 +2369,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 +2393,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 +2414,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 +2430,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 +2451,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 +2477,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 +2498,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 +2523,7 @@ management/index.js
* Update Guardian Factor
*
* @method updateGuardianFactor
- * @memberOf module.GuardianManager.prototype
+ * @memberOf module:management.ManagementClient.prototype
*
* management.updateGuardianFactor({ name: 'sms' }, {
* enabled: true
@@ -2235,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;
@@ -2248,7 +2778,7 @@ management/index.js
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html
index fb612176b..86d7d5b8a 100644
--- a/docs/module-auth.AuthenticationClient.html
+++ b/docs/module-auth.AuthenticationClient.html
@@ -24,7 +24,7 @@
@@ -3894,7 +3894,7 @@ Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index b7b29e7b2..edaf06cc6 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
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 8697b3777..e9938b53c 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -101,7 +101,7 @@
Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 1a653544b..53f0c464f 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1796,7 +1796,7 @@ Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index e81cdc6c4..e7917a34b 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1492,7 +1492,7 @@ Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 97a1daf27..9cce2d10d 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
@@ -352,7 +352,7 @@ Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index 1b625dd20..384968aae 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
@@ -1009,7 +1009,7 @@ Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 249e89209..fe29f3866 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
@@ -108,7 +108,7 @@ Classes
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index 0451d5674..7a5b7f786 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
@@ -991,7 +991,7 @@ Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index dee679a9a..c6582dd4c 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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- data
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The client data object.
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
- management.clientGrants.create(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Client grant created.
-});
-
-
-
-
-
-
-
-
-
-
- delete(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
- Delete an Auth0 client grant.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Client parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Client grant ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Client parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Client grant ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Client Grants parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- per_page
-
-
-
-
-
-Number
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Number of results per page.
-
-
-
-
-
-
-
-
- page
-
-
-
-
-
-Number
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Page number, zero indexed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
-
-
- // 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:
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
-
-
- // 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:
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: []
+ // 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
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 02612947b..e6e53026f 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 7ebfbcc77..49b038240 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
@@ -1899,7 +1899,7 @@ Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index 6c4def656..cd019aa11 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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- data
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The custom domain data object.
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
- management.createCustomDomain(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // CustomDomain created.
-});
-
-
-
-
-
-
@@ -1057,7 +839,7 @@ deleteSource:
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:
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:
get
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Custom Domain parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Custom Domain ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Custom Domain parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Custom Domain ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
- management.getCustomDomains(function (err, customDomains) {
- console.log(customDomains.length);
-});
-
-
-
-
-
-
-
-
-
-
- getAll() → {Promise|undefined}
-
-
-
-
-
-
- Get all Auth0 CustomDomains.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
- management.customDomains.getAll(function (err, customDomains) {
- console.log(customDomains.length);
-});
-
-
-
-
-
-
-
-
-
-
- verify(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
- Verify a Custom Domain.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Custom Domain parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- 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
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index 01d6666b7..cf109bcaf 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
@@ -1179,7 +1179,7 @@ Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 52441ed0a..2ddc399ed 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
@@ -759,7 +759,7 @@ deleteSource:
Example
- get(cbopt) → {Promise|undefined}
+ get(cbopt, paramsopt) → {Promise|undefined}
@@ -1022,6 +1022,141 @@ Parameters:
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Clients parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 2495916b4..ade45bd25 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
@@ -1304,7 +1304,7 @@ Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
new file mode 100644
index 000000000..99216617b
--- /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)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+ The client options.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+
+
+
+
+
+(inner) clientOptions :Object
+
+
+
+
+
+ Options object for the Rest Client instance.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+
+
+ delete(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete an Auth0 grant.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Grant parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant ID.
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user_id of the grants to delete.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Grant parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Grant ID.
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user_id of the grants to delete.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Grants parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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);
+});
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index eff768fda..d6bd3438b 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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Callback function.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-
-
-
-
-
-Example
-
- management.createGuardianEnrollmentTicket(function (err, ticket) {
- console.log(ticket);
-});
-
-
-
-
-
-
@@ -1620,7 +1440,7 @@ Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index a17cf8ff0..c2adbe428 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -419,6 +494,420 @@ Methods
+
+
+
+
+ exportUsers(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Export all users to a file using a long running job.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users export data.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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:
importUser
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
Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index a476b9d52..c15ce93bc 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
@@ -1286,7 +1286,7 @@ Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index bc804d928..f65be0741 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
@@ -106,7 +106,7 @@ new M
blac
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
Type:
+
+
+
+
+
+grants :GrantsManager
+
+
+
+
+
+ Simple abstraction for performing CRUD operations on the grants
+endpoint.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1323,7 +1398,7 @@ guardianSource:
jobsSource:
logsSource:
resour
Type:
+
+
+
+
+
+roles :RolesManager
+
+
+
+
+
+ Simple abstraction for performing CRUD operations on the
+roles endpoint.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
@@ -1621,7 +1771,7 @@ rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
usersSource:
Methods
- blacklistToken(token, cbopt) → {Promise|undefined}
+ addPermissionsInRole(data, cbopt) → {Promise|undefined}
- Blacklist a new token.
+ Add permissions in a role
@@ -2076,7 +2226,7 @@ blackli
Parameters:
- token
+ params.id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID of the Role.
+
+
+
+
+
+
+
+
+ data
@@ -2147,7 +2331,7 @@ Parameters:
- Token data.
+ permissions data
@@ -2173,7 +2357,7 @@ Parameters:
- aud
+ permissions
@@ -2190,7 +2374,50 @@ Parameters:
- Audience (your app client ID).
+ Array of permissions
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Name of a permission
@@ -2199,7 +2426,7 @@ Parameters:
- jti
+ resource_server_identifier
@@ -2216,7 +2443,15 @@ Parameters:
- The JWT ID claim.
+ Identifier for a resource
+
+
+
+
+
+
+
+
@@ -2311,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);
});
@@ -2333,14 +2562,14 @@ Example
- configureEmailProvider(data, cbopt) → {Promise|undefined}
+ assignPermissionsToUser(params, data, cbopt) → {Promise|undefined}
- Configure the email provider.
+ Asign permissions to a user
@@ -2376,7 +2605,7 @@ Source:
Parameters:
- data
+ params
@@ -2447,43 +2676,50 @@ Parameters:
- The email provider data object.
+ params object
-
-
-
-
+
-
-
- cb
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
-function
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Callback function.
+ user_id
@@ -2492,129 +2728,42 @@ Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-Example
-
- management.configureEmailProvider(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Email provider configured.
-});
-
-
-
-
+
+
+ data
-
-
-
-
- createClient(data, cbopt) → {Promise|undefined}
-
-
-
-
-
-
- Create an Auth0 client.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
- Parameters:
-
+
+ data object containing list of permissions
+
+
@@ -2626,8 +2775,6 @@ Parameters:
Type
- Attributes
-
@@ -2640,32 +2787,32 @@ Parameters:
- data
+ permissions
-Object
+String
-
-
-
+
+
+ Array of permission IDs
-
-
+
+
-
+
+
+
-
- The client data object.
@@ -2752,12 +2899,15 @@ Returns:
Example
- management.createClient(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.
}
- // Client created.
+ // User assigned permissions.
});
@@ -2769,14 +2919,14 @@ Example
- createConnection(data, cbopt) → {Promise|undefined}
+ assignRolestoUser(params, data, cbopt) → {Promise|undefined}
- Create a new connection.
+ Asign roles to a user
@@ -2812,7 +2962,7 @@ creat
Parameters:
- data
+ params
@@ -2883,43 +3033,50 @@ Parameters:
- Connection data object.
+ params object
-
-
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
- cb
+ id
-function
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Callback function.
+ user_id
@@ -2928,6 +3085,136 @@ Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data object containing list of role IDs
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of role IDs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
@@ -2940,7 +3227,6 @@ Parameters:
-
Returns:
@@ -2970,12 +3256,15 @@ Returns:
Example
- management.createConnection(data, function (err) {
+ var parms = { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
+
+management.assignRolestoUser(params, data, function (err) {
if (err) {
// Handle error.
}
- // Conection created.
+ // User assigned roles.
});
@@ -2987,14 +3276,14 @@ Example
- createDevicePublicKey(data, cbopt) → {Promise|undefined}
+ blacklistToken(token, cbopt) → {Promise|undefined}
- Create an Auth0 credential.
+ Blacklist a new token.
@@ -3030,7 +3319,7 @@
Parameters:
- data
+ token
@@ -3101,7 +3390,84 @@ Parameters:
- The device credential data object.
+ Token data.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ aud
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Audience (your app client ID).
+
+
+
+
+
+
+
+
+ jti
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The JWT ID claim.
+
+
+
+
+
+
+
+
@@ -3188,12 +3554,17 @@ Returns:
Example
- management.createConnection(data, function (err) {
+ var token = {
+ aud: 'aud',
+ jti: 'jti'
+};
+
+management.blacklistToken(token, function (err) {
if (err) {
// Handle error.
}
- // Credential created.
+ // Token blacklisted.
});
@@ -3205,14 +3576,14 @@ Example
- createEmailVerificationTicket(cbopt) → {Promise}
+ configureEmailProvider(data, cbopt) → {Promise|undefined}
- Create an email verification ticket.
+ Configure the email provider.
@@ -3248,7 +3619,7 @@ Source:
Parameters:
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The email provider data object.
+
+
+
+
+
+
cb
@@ -3355,6 +3760,9 @@ Returns:
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.configureEmailProvider(data, function (err) {
if (err) {
// Handle error.
}
+
+ // Email provider configured.
});
@@ -3389,14 +3794,14 @@ Example
- createPasswordChangeTicket(cbopt) → {Promise}
+ createClient(data, cbopt) → {Promise|undefined}
- Create a new password change ticket.
+ Create an Auth0 client.
@@ -3432,7 +3837,7 @@
Parameters:
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The client data object.
+
+
+
+
+
+
cb
@@ -3539,6 +3978,9 @@ Returns:
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.createClient(data, function (err) {
if (err) {
// Handle error.
}
+
+ // Client created.
});
@@ -3575,14 +4012,14 @@ Example
- createResourceServer(data, cbopt) → {Promise|undefined}
+ createClientGrant(data, cbopt) → {Promise|undefined}
- Create a new resource server.
+ Create an Auth0 client grant.
@@ -3618,7 +4055,7 @@ c
Parameters:
- Resource Server data object.
+ The client data object.
@@ -3776,12 +4213,12 @@ Returns:
Example
- management.createResourceServer(data, function (err) {
+ management.clientGrants.create(data, function (err) {
if (err) {
// Handle error.
}
- // Resource Server created.
+ // Client grant created.
});
@@ -3793,14 +4230,14 @@ Example
- createRule(data, cbopt) → {Promise|undefined}
+ createConnection(data, cbopt) → {Promise|undefined}
- Create a new rule.
+ Create a new connection.
@@ -3836,7 +4273,7 @@ createRule<
Parameters:
- Rule data object.
+ Connection data object.
@@ -3994,12 +4431,12 @@ Returns:
Example
- management.createRule(data, function (err) {
+ management.createConnection(data, function (err) {
if (err) {
// Handle error.
}
- // Rule created.
+ // Conection created.
});
@@ -4011,14 +4448,14 @@ Example
- createUser(data, cbopt) → {Promise|undefined}
+ createCustomDomain(data, cbopt) → {Promise|undefined}
- Create a new user.
+ Create an Auth0 Custom Domain.
@@ -4054,7 +4491,7 @@ createUser<
Parameters:
- User data.
+ The custom domain data object.
@@ -4212,12 +4649,12 @@ Returns:
Example
- management.createUser(data, function (err) {
+ management.createCustomDomain(data, function (err) {
if (err) {
// Handle error.
}
- // User created.
+ // CustomDomain created.
});
@@ -4229,14 +4666,14 @@ Example
- deleteAllUsers(cbopt) → {Promise|undefined}
+ createDevicePublicKey(data, cbopt) → {Promise|undefined}
- Delete all users.
+ Create an Auth0 credential.
@@ -4260,8 +4697,6 @@ deleteA
- deleteA
Parameters:
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The device credential data object.
+
+
+
+
+
+
cb
@@ -4347,7 +4816,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -4398,12 +4867,12 @@ Returns:
Example
- management.deleteAllUsers(function (err) {
+ management.createConnection(data, function (err) {
if (err) {
// Handle error.
}
- // Users deleted
+ // Credential created.
});
@@ -4415,14 +4884,14 @@ Example
- deleteClient(params, cbopt) → {Promise|undefined}
+ createEmailVerificationTicket(cbopt) → {Promise}
- Delete an Auth0 client.
+ Create an email verification ticket.
@@ -4458,7 +4927,7 @@ deleteCli
Parameters:
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Client parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- client_id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Application client ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
cb
@@ -4650,9 +5034,6 @@ Returns:
Returns:
Example
- management.deleteClient({ client_id: CLIENT_ID }, 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.
}
-
- // Client deleted.
});
@@ -4684,14 +5068,14 @@ Example
- deleteConnection(params, cbopt) → {Promise|undefined}
+ createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}
- Delete an existing connection.
+ Create a Guardian enrollment ticket.
@@ -4727,7 +5111,7 @@ delet
Parameters:
- params
+ cb
-Object
+function
@@ -4788,6 +5172,8 @@ Parameters:
+ <optional>
+
@@ -4798,62 +5184,155 @@ Parameters:
- Connection parameters.
+ Callback function.
-
+
+
-
-
-
-
- Name
-
+
+
+
- Type
-
-
- Description
-
-
-
-
-
-
- id
-
-
-
-
-String
-
-
-
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.createGuardianEnrollmentTicket(function (err, ticket) {
+ console.log(ticket);
+});
+
+
+
+
+
+
-
- Connection ID.
-
-
-
+
+
+ createPasswordChangeTicket(cbopt) → {Promise}
-
-
-
-
-
+
+
+ Create a new password change ticket.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
@@ -4919,9 +5398,6 @@ Returns:
Returns:
Example
- management.deleteConnection({ id: CONNECTION_ID }, 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.
}
-
- // Conection deleted.
});
@@ -4953,14 +5434,14 @@ Example
- deleteDeviceCredential(params, cbopt) → {Promise|undefined}
+ createResourceServer(data, cbopt) → {Promise|undefined}
- Delete an Auth0 device credential.
+ Create a new resource server.
@@ -4996,7 +5477,7 @@ Source:
Parameters:
- params
+ data
@@ -5067,58 +5548,7 @@ Parameters:
- Credential parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Device credential ID.
-
-
-
-
-
-
-
-
+ Resource Server data object.
@@ -5205,14 +5635,12 @@ Returns:
Example
- var params = { id: CREDENTIAL_ID };
-
-management.deleteDeviceCredential(params, function (err) {
+ management.createResourceServer(data, function (err) {
if (err) {
// Handle error.
}
- // Credential deleted.
+ // Resource Server created.
});
@@ -5224,14 +5652,14 @@ Example
- deleteEmailProvider(cbopt) → {Promise|undefined}
+ createRole(data, cbopt) → {Promise|undefined}
- Delete email provider.
+ Create a new role.
@@ -5267,7 +5695,7 @@ de
Parameters:
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role data object.
+
+
+
+
+
+
cb
@@ -5391,12 +5853,13 @@ Returns:
Example
- management.deleteEmailProvider(function (err) {
+ data = {"name": "test1","description": "123"}
+management.createRole(data, function (err) {
if (err) {
// Handle error.
}
- // Email provider deleted.
+ // Role created.
});
@@ -5408,14 +5871,14 @@ Example
- deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}
+ createRule(data, cbopt) → {Promise|undefined}
- Delete a user's Guardian enrollment.
+ Create a new rule.
@@ -5451,7 +5914,7 @@ Source:
Parameters:
- The Guardian enrollment data object.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- The Guardian enrollment id.
-
-
-
-
-
-
-
-
+ Rule data object.
@@ -5660,12 +6072,12 @@ Returns:
Example
- management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
+ management.createRule(data, function (err) {
if (err) {
// Handle error.
}
- // Email provider deleted.
+ // Rule created.
});
@@ -5677,14 +6089,14 @@ Example
- deleteResourceServer(params, cbopt) → {Promise|undefined}
+ createUser(data, cbopt) → {Promise|undefined}
- Delete an existing resource server.
+ Create a new user.
@@ -5720,7 +6132,7 @@ d
Parameters:
- params
+ data
@@ -5791,58 +6203,7 @@ Parameters:
- Resource Server parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Resource Server ID.
-
-
-
-
-
-
-
-
+ User data.
@@ -5929,12 +6290,12 @@ Returns:
Example
- management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+ management.createUser(data, function (err) {
if (err) {
// Handle error.
}
- // Resource Server deleted.
+ // User created.
});
@@ -5946,14 +6307,14 @@ Example
- deleteRule(params, cbopt) → {Promise|undefined}
+ deleteAllUsers(cbopt) → {Promise|undefined}
- Delete an existing rule.
+ Delete all users.
@@ -5977,6 +6338,8 @@ deleteRule<
+ deleteRule<
Parameters:
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Rule parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Rule ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
cb
@@ -6147,7 +6425,7 @@ Parameters:
- Callback function.
+ Callback function
@@ -6198,12 +6476,12 @@ Returns:
Example
- auth0.deleteRule({ id: RULE_ID }, function (err) {
+ management.deleteAllUsers(function (err) {
if (err) {
// Handle error.
}
- // Rule deleted.
+ // Users deleted
});
@@ -6215,14 +6493,14 @@ Example
- deleteRulesConfig(params, cbopt) → {Promise|undefined}
+ deleteClient(params, cbopt) → {Promise|undefined}
- Delete rules config.
+ Delete an Auth0 client.
@@ -6258,7 +6536,7 @@ dele
Parameters:
- Rule Configs parameters.
+ Client parameters.
@@ -6355,7 +6633,7 @@ Parameters:
- key
+ client_id
@@ -6372,7 +6650,7 @@ Parameters:
- Rule Configs key.
+ Application client ID.
@@ -6467,12 +6745,12 @@ Returns:
Example
- management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+ management.deleteClient({ client_id: CLIENT_ID }, function (err) {
if (err) {
// Handle error.
}
- // Rules Config deleted.
+ // Client deleted.
});
@@ -6484,14 +6762,14 @@ Example
- deleteUser(params, cbopt) → {Promise|undefined}
+ deleteClientGrant(params, cbopt) → {Promise|undefined}
- Delete a user by its id.
+ Delete an Auth0 client grant.
@@ -6527,7 +6805,7 @@ deleteUser<
Parameters:
- The user data object..
+ Client parameters.
@@ -6641,7 +6919,7 @@ Parameters:
- The user id.
+ Client grant ID.
@@ -6685,7 +6963,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -6736,12 +7014,12 @@ Returns:
Example
- management.deleteUser({ id: USER_ID }, function (err) {
+ management.clientGrants.delete({ id: GRANT_ID }, function (err) {
if (err) {
// Handle error.
}
- // User deleted.
+ // Grant deleted.
});
@@ -6753,14 +7031,14 @@ Example
- deleteUserMultifactor(params, cbopt) → {Promise|undefined}
+ deleteConnection(params, cbopt) → {Promise|undefined}
- Delete a multifactor provider for a user.
+ Delete an existing connection.
@@ -6796,7 +7074,7 @@
Parameters:
- Data object.
+ Connection parameters.
@@ -6910,7 +7188,15 @@ Parameters:
- The user id.
+ Connection ID.
+
+
+
+
+
+
+
+
@@ -6919,47 +7205,13 @@ Parameters:
- provider
+ cb
-String
-
-
-
-
-
-
-
-
-
-
- Multifactor provider.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
-function
+function
@@ -6980,7 +7232,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -7031,14 +7283,12 @@ Returns:
Example
- var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifactor(params, function (err, user) {
+ management.deleteConnection({ id: CONNECTION_ID }, function (err) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ // Conection deleted.
});
@@ -7050,14 +7300,14 @@ Example
- deleteUserMultifcator(params, cbopt) → {Promise|undefined}
+ deleteCustomDomain(params, cbopt) → {Promise|undefined}
- Delete a multifactor provider for a user.
+ Delete a Custom Domain.
@@ -7081,10 +7331,6 @@
-
Parameters:
- Data object.
+ Custom Domain parameters.
@@ -7211,33 +7457,7 @@ Parameters:
- The user id.
-
-
-
-
-
-
-
-
- provider
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Multifactor provider.
+ Custom Domain ID.
@@ -7281,7 +7501,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -7332,14 +7552,12 @@ Returns:
Example
- var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifcator(params, function (err, user) {
+ management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ // CustomDomain deleted.
});
@@ -7351,14 +7569,14 @@ Example
- getActiveUsersCount(cbopt) → {Promise|undefined}
+ deleteDeviceCredential(params, cbopt) → {Promise|undefined}
- Get a the active users count.
+ Delete an Auth0 device credential.
@@ -7394,7 +7612,7 @@ ge
Parameters:
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Credential parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Device credential ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
cb
@@ -7518,12 +7821,14 @@ Returns:
Example
- management.getActiveUsersCount(function (err, usersCount) {
+ var params = { id: CREDENTIAL_ID };
+
+management.deleteDeviceCredential(params, function (err) {
if (err) {
// Handle error.
}
- console.log(usersCount);
+ // Credential deleted.
});
@@ -7535,14 +7840,14 @@ Example
- getBlacklistedTokens(cbopt) → {Promise|undefined}
+ deleteEmailProvider(cbopt) → {Promise|undefined}
- Get all blacklisted tokens.
+ Delete email provider.
@@ -7578,7 +7883,7 @@ g
Returns:
Example
- management.getBlacklistedTokens(function (err, tokens) {
- console.log(tokens.length);
+ management.deleteEmailProvider(function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Email provider deleted.
});
@@ -7715,14 +8024,14 @@ Example
- getClient(params, cbopt) → {Promise|undefined}
+ deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}
- Get an Auth0 client.
+ Delete a user's Guardian enrollment.
@@ -7758,7 +8067,7 @@ getClientSource:
Parameters:
- params
+ data
@@ -7829,7 +8138,7 @@ Parameters:
- Client parameters.
+ The Guardian enrollment data object.
@@ -7855,7 +8164,7 @@ Parameters:
- client_id
+ id
@@ -7872,7 +8181,7 @@ Parameters:
- Application client ID.
+ The Guardian enrollment id.
@@ -7967,12 +8276,12 @@ Returns:
Example
- management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+ management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
if (err) {
// Handle error.
}
- console.log(client);
+ // Email provider deleted.
});
@@ -7984,14 +8293,14 @@ Example
- getClientInfo() → {Object}
+ deleteResourceServer(params, cbopt) → {Promise|undefined}
- Return an object with information about the current client,
+ Delete an existing resource server.
@@ -8027,23 +8336,7635 @@ getClien
Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Resource Server parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Resource Server ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Resource Server deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteRole(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete an existing role.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Role ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.deleteRole({ id: ROLE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteRule(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete an existing rule.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Rule parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Rule ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ auth0.deleteRule({ id: RULE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Rule deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteRulesConfig(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete rules config.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Rule Configs parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ key
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Rule Configs key.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Rules Config deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteUser(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete a user by its id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The user data object..
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.deleteUser({ id: USER_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteUserMultifactor(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete a multifactor provider for a user.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Multifactor provider.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
+
+management.deleteUserMultifactor(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
+});
+
+
+
+
+
+
+
+
+
+
+ deleteUserMultifcator(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete a multifactor provider for a user.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Multifactor provider.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
+
+management.deleteUserMultifcator(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
+});
+
+
+
+
+
+
+
+
+
+
+ exportUsers(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Export all users to a file using a long running job.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users export data.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getActiveUsersCount(function (err, usersCount) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(usersCount);
+});
+
+
+
+
+
+
+
+
+
+
+ getBlacklistedTokens(cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all blacklisted tokens.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getBlacklistedTokens(function (err, tokens) {
+ console.log(tokens.length);
+});
+
+
+
+
+
+
+
+
+
+
+ getClient(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get an Auth0 client.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Client parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Application client ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Client Grants parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ // 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,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+ Object containing client information.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getClients(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all Auth0 clients.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Clients parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ // 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Connection parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Connection ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(connection);
+});
+
+
+
+
+
+
+
+
+
+
+ getConnections(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all connections.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Connections params.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ // 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Custom Domain parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Custom Domain ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(customDomain);
+});
+
+
+
+
+
+
+
+
+
+
+ getCustomDomains() → {Promise|undefined}
+
+
+
+
+
+
+ Get all Auth0 CustomDomains.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getCustomDomains(function (err, customDomains) {
+ console.log(customDomains.length);
+});
+
+
+
+
+
+
+
+
+
+
+ getDailyStats(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get the daily stats.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Stats parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ from
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The first day in YYYYMMDD format.
+
+
+
+
+
+
+
+
+ to
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The last day in YYYYMMDD format.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(stats);
+});
+
+
+
+
+
+
+
+
+
+
+ getDeviceCredentials(cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all Auth0 credentials.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getDeviceCredentials(function (err, credentials) {
+ console.log(credentials.length);
+});
+
+
+
+
+
+
+
+
+
+
+ getEmailProvider(cbopt, paramsopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get the email provider.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Clients parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getEmailProvider(function (err, provider) {
+ console.log(provider.length);
+});
+
+
+
+
+
+
+
+
+
+
+ getGrants(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all Auth0 Grants.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Grants parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The Guardian enrollment data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The Guardian enrollment id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The user data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
+ console.log(enrollments);
+});
+
+
+
+
+
+
+
+
+
+
+ getJob(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get a job by its ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Job parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Job ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ var params = {
+ id: '{JOB_ID}'
+};
+
+management.getJob(params, function (err, job) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Retrieved job.
+ console.log(job);
+});
+
+
+
+
+
+
+
+
+
+
+ getLog(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get an Auth0 log.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Log parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Event ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.getLog({ id: EVENT_ID }, function (err, log) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(log);
+});
+
+
+
+
+
+
+
+
+
+
+ getLogs(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get all logs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Logs params.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 2
+};
+
+management.getLogs(params, function (err, logs) {
+ console.log(logs.length);
+});
+
+
+
+
+
+
+
+
+
+
+ getPermissionsInRole(roleIdopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get permissions for a given role
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ roleId
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Id of the role
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
-
-
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
@@ -8069,22 +15990,38 @@ Returns:
- Object containing client information.
-
-
+
+Examples
+
+ var params = { id :'ROLE_ID'};
+
+
+
+ management.getPermissionsInRole(params, function (err, permissions) {
+ console.log(permissions);
+});
+
+
+
@@ -8092,14 +16029,14 @@ Returns:
- getClients(paramsopt, cbopt) → {Promise|undefined}
+ getResourceServer(params, cbopt) → {Promise|undefined}
- Get all Auth0 clients.
+ Get a Resource Server.
@@ -8135,7 +16072,7 @@ getClients<
Parameters:
- <optional>
-
@@ -8208,7 +16143,7 @@ Parameters:
- Clients parameters.
+ Resource Server parameters.
@@ -8222,8 +16157,6 @@ Parameters:
Type
- Attributes
-
@@ -8236,70 +16169,24 @@ Parameters:
- per_page
-
-
-
-
-
-Number
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Number of results per page.
-
-
-
-
-
-
-
-
- page
+ id
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Page number, zero indexed.
+ Resource Server ID.
@@ -8394,20 +16281,12 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
-};
+ management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+ if (err) {
+ // Handle error.
+ }
-management.getClients(params, function (err, clients) {
- console.log(clients.length);
+ console.log(resourceServer);
});
@@ -8419,14 +16298,14 @@ Example
- getConnection(params, cbopt) → {Promise|undefined}
+ getResourceServers(paramsopt, cbopt) → {Promise|undefined}
- Get an Auth0 connection.
+ Get all resource servers.
@@ -8462,7 +16341,7 @@ getConne
Parameters:
+ <optional>
+
@@ -8533,7 +16414,7 @@ Parameters:
- Connection parameters.
+ Resource Servers parameters.
@@ -8547,6 +16428,8 @@ Parameters:
Type
+ Attributes
+
@@ -8559,24 +16442,70 @@ Parameters:
- id
+ per_page
-String
+Number
+
+
+ <optional>
+
+
+
+
+
+
+
- Connection ID.
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
@@ -8671,12 +16600,20 @@ Returns:
Example
- management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
- if (err) {
- // Handle error.
- }
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
- console.log(connection);
+management.getResourceServers(params, function (err, resourceServers) {
+ console.log(resourceServers.length);
});
+
+
@@ -8688,14 +16625,14 @@ Example
- getConnections(paramsopt, cbopt) → {Promise|undefined}
+ getRole(params, cbopt) → {Promise|undefined}
- Get all connections.
+ Get an Auth0 role.
@@ -8731,7 +16668,7 @@ getConn
Parameters:
- <optional>
-
@@ -8804,7 +16739,7 @@ Parameters:
- Connections params.
+ Role parameters.
@@ -8818,8 +16753,6 @@ Parameters:
Type
- Attributes
-
@@ -8832,70 +16765,24 @@ Parameters:
- per_page
-
-
-
-
-
-Number
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Number of results per page.
-
-
-
-
-
-
-
-
- page
+ id
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Page number, zero indexed.
+ Role ID.
@@ -8990,20 +16877,12 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
-};
+ management.getRole({ id: ROLE_ID }, function (err, role) {
+ if (err) {
+ // Handle error.
+ }
-management.getConnections(params, function (err, connections) {
- console.log(connections.length);
+ console.log(role);
});
@@ -9015,14 +16894,14 @@ Example
- getDailyStats(params, cbopt) → {Promise|undefined}
+ getRoles(paramsopt, cbopt) → {Promise|undefined}
- Get the daily stats.
+ Get all roles.
@@ -9058,7 +16937,7 @@ getDaily
Parameters:
+ <optional>
+
@@ -9129,7 +17010,7 @@ Parameters:
- Stats parameters.
+ Roles parameters.
@@ -9143,6 +17024,8 @@ Parameters:
Type
+ Attributes
+
@@ -9155,24 +17038,34 @@ Parameters:
- from
+ per_page
-String
+Number
+
+
+ <optional>
+
+
+
+
+
+
+
- The first day in YYYYMMDD format.
+ Number of results per page.
@@ -9181,24 +17074,34 @@ Parameters:
- to
+ page
-String
+Number
+
+
+ <optional>
+
+
+
+
+
+
+
- The last day in YYYYMMDD format.
+ Page number, zero indexed.
@@ -9293,17 +17196,20 @@ Returns:
Example
- var params = {
- from: '{YYYYMMDD}', // First day included in the stats.
- to: '{YYYYMMDD}' // Last day included in the stats.
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
};
-management.getDaily(params, function (err, stats) {
- if (err) {
- // Handle error.
- }
-
- console.log(stats);
+management.getRoles(params, function (err, roles) {
+ console.log(roles.length);
});
+
+
@@ -9315,14 +17221,14 @@ Example
- getDeviceCredentials(cbopt) → {Promise|undefined}
+ getRule(params, cbopt) → {Promise|undefined}
- Get all Auth0 credentials.
+ Get an Auth0 rule.
@@ -9358,7 +17264,7 @@ g
Parameters:
- cb
+ params
-function
+Object
@@ -9419,8 +17325,6 @@ Parameters:
- <optional>
-
@@ -9431,155 +17335,62 @@ Parameters:
- Callback function.
+ Rule parameters.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
+
+
+
+
-
-
-
-
-
-
-
+ Type
-
-
-Example
-
- management.getDeviceCredentials(function (err, credentials) {
- console.log(credentials.length);
-});
-
-
-
-
-
-
-
-
-
- getEmailProvider(cbopt) → {Promise|undefined}
-
-
-
-
-
-
- Get the email provider.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
+
+
+
-
-
+
+
+ id
+
+
+
+
+String
+
+
+
+
+
+ Rule ID.
+
+
+
- Parameters:
+
+
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
+
+
+
-
@@ -9662,8 +17473,12 @@ Returns:
Example
- management.getEmailProvider(function (err, provider) {
- console.log(provider.length);
+ management.getRule({ id: RULE_ID }, function (err, rule) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(rule);
});
@@ -9675,14 +17490,14 @@ Example
- getGuardianEnrollment(data, cbopt) → {Promise|undefined}
+ getRules(paramsopt, cbopt) → {Promise|undefined}
- Get a single Guardian enrollment.
+ Get all rules.
@@ -9718,7 +17533,7 @@
Parameters:
- data
+ params
@@ -9779,6 +17594,8 @@ Parameters:
+ <optional>
+
@@ -9789,7 +17606,7 @@ Parameters:
- The Guardian enrollment data object.
+ Rules parameters.
@@ -9803,6 +17620,8 @@ Parameters:
Type
+ Attributes
+
@@ -9815,24 +17634,70 @@ Parameters:
- id
+ per_page
-String
+Number
+
+
+ <optional>
+
+
+
+
+
+
+
- The Guardian enrollment id.
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
@@ -9927,8 +17792,20 @@ Returns:
Example
- management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
- console.log(enrollment);
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
+
+management.getRules(params, function (err, rules) {
+ console.log(rules.length);
});
+
+
@@ -9940,14 +17817,14 @@ Example
- getGuardianEnrollments(data, cbopt) → {Promise|undefined}
+ getRulesConfigs() → {Promise|undefined}
- Get a list of a user's Guardian enrollments.
+ Get rules config.
@@ -9983,7 +17860,7 @@ Source:
Parameters:
-
-
-
-
-
- Name
-
- Type
-
- Attributes
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
- Description
-
-
-
+
-
-
- data
-
-
-
-
-Object
+
+Example
-
-
+ management.getRulesConfigs(function (err, rulesConfigs) {
+ if (err) {
+ // Handle error.
+ }
-
-
-
+ // Get Rules Configs.
+});
-
+
-
-
+
+
+
-
+
-
- The user data object.
-
-
+ getTenantSettings(cbopt) → {Promise|undefined}
-
-
-
-
- Name
-
+
- Type
-
-
+
+ Get the tenant settings..
+
- Description
-
-
-
+
+
+
+
+
-
-
- id
-
+
-
-
-
-String
+
+
-
-
+
-
+
-
+
-
- The user id.
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
-
-
-
+
-
-
-
+ Description
+
+
+
@@ -10192,8 +18104,12 @@ Returns:
Example
- management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
- console.log(enrollments);
+ management.getSettings(function (err, settings) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(settings);
});
@@ -10205,14 +18121,14 @@ Example
- getJob(params, cbopt) → {Promise|undefined}
+ getUser(data, cbopt) → {Promise|undefined}
- Get a job by its ID.
+ Get a user by its id.
@@ -10248,7 +18164,7 @@ getJobSource:
Parameters:
- params
+ data
@@ -10319,7 +18235,7 @@ Parameters:
- Job parameters.
+ The user data object.
@@ -10362,7 +18278,7 @@ Parameters:
- Job ID.
+ The user id.
@@ -10457,17 +18373,8 @@ Returns:
Example
- var params = {
- id: '{JOB_ID}'
-};
-
-management.getJob(params, function (err, job) {
- if (err) {
- // Handle error.
- }
-
- // Retrieved job.
- console.log(job);
+ management.getUser({ id: USER_ID }, function (err, user) {
+ console.log(user);
});
@@ -10479,14 +18386,14 @@ Example
- getLog(params, cbopt) → {Promise|undefined}
+ getUserLogs(params, cbopt) → {Promise|undefined}
- Get an Auth0 log.
+ Get user's log events.
@@ -10522,7 +18429,7 @@ getLogSource:
Parameters:
- Log parameters.
+ Get logs data.
@@ -10636,7 +18543,111 @@ Parameters:
- Event 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;
@@ -10731,12 +18742,14 @@ Returns:
Example
- management.getLog({ id: EVENT_ID }, function (err, log) {
+ 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(log);
+ console.log(logs);
});
@@ -10748,14 +18761,14 @@ Example
- getLogs(paramsopt, cbopt) → {Promise|undefined}
+ getUserPermissions(params, cbopt) → {Promise|undefined}
- Get all logs.
+ Get user's permissions
@@ -10791,7 +18804,7 @@ getLogsSource:
Parameters:
Attributes
-
-
- Description
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- Logs params.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- q
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
+
-
- Search Criteria using Query String Syntax
-
-
-
+ Description
+
+
+
- page
+ params
-Number
+Object
@@ -10943,8 +18865,6 @@ Parameters:
- <optional>
-
@@ -10955,43 +18875,50 @@ Parameters:
- Page number. Zero based
+ Get permissions data.
-
-
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
- per_page
+ id
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- The amount of entries per page
+ User id.
@@ -11000,34 +18927,24 @@ Parameters:
- sort
+ per_page
-String
+Number
-
-
- <optional>
-
-
-
-
-
-
-
- The field to use for sorting.
+ Number of results per page.
@@ -11036,34 +18953,24 @@ Parameters:
- fields
+ page
-String
+Number
-
-
- <optional>
-
-
-
-
-
-
-
- A comma separated list of fields to include or exclude
+ Page number, zero indexed.
@@ -11072,34 +18979,24 @@ Parameters:
- include_fields
+ sort
-Boolean
+String
-
-
- <optional>
-
-
-
-
-
-
-
- true if the fields specified are to be included in the result, false otherwise.
+ The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.
@@ -11121,21 +19018,11 @@ Parameters:
-
-
- <optional>
-
-
-
-
-
-
-
- true if a query summary must be included in the result, false otherwise. Default false
+ true if a query summary must be included in the result, false otherwise. Default false;
@@ -11230,20 +19117,14 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 2
-};
+ var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
-management.getLogs(params, function (err, logs) {
- console.log(logs.length);
+management.getUserPermissions(params, function (err, logs) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(logs);
});
@@ -11255,14 +19136,14 @@ Example
- getResourceServer(params, cbopt) → {Promise|undefined}
+ getUserRoles(params, cbopt) → {Promise|undefined}
- Get a Resource Server.
+ Get user's roles
@@ -11298,7 +19179,7 @@ getR
Parameters:
-
-
+
+
+
+
+
+
+
+ Get roles data.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ User id.
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+
+
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
+
+
+
+
+
+
+
+
+ sort
+
+
+
+
+
+String
+
+
+
+
+
- Resource Server parameters.
+ The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
+
+
-
- id
+ include_totals
-String
+Boolean
@@ -11412,7 +19397,7 @@ Parameters:
- Resource Server ID.
+ true if a query summary must be included in the result, false otherwise. Default false;
@@ -11507,12 +19492,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.getUserRoles(params, function (err, logs) {
if (err) {
// Handle error.
}
- console.log(resourceServer);
+ console.log(logs);
});
@@ -11524,14 +19511,14 @@ Example
- getResourceServers(paramsopt, cbopt) → {Promise|undefined}
+ getUsers(paramsopt, cbopt) → {Promise|undefined}
- Get all resource servers.
+ Get all users.
@@ -11567,7 +19554,7 @@ get
Parameters:
- Resource Servers parameters.
+ Users params.
@@ -11666,6 +19653,42 @@ Parameters:
+
+
+ search_engine
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ The version of the search engine to use.
+
+
+
+
+
+
per_page
@@ -11834,12 +19857,13 @@ Example
// Pagination settings.
var params = {
+ search_engine: 'v3',
per_page: 10,
page: 0
};
-management.getResourceServers(params, function (err, resourceServers) {
- console.log(resourceServers.length);
+auth0.getUsers(params, function (err, users) {
+ console.log(users.length);
});
@@ -11851,14 +19875,14 @@ Example
- getRule(params, cbopt) → {Promise|undefined}
+ getUsersByEmail(emailopt, cbopt) → {Promise|undefined}
- Get an Auth0 rule.
+ Get users for a given email address
@@ -11894,7 +19918,7 @@ getRuleSource:
Parameters:
- params
+ email
-Object
+String
@@ -11955,6 +19979,8 @@ Parameters:
+ <optional>
+
@@ -11965,9 +19991,175 @@ Parameters:
- Rule parameters.
+ Email Address of users to locate
-
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ auth0.getUsersByEmail(email, function (err, users) {
+ console.log(users);
+});
+
+
+
+
+
+
+
+
+
+
+ getUsersInRole(roleIdopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get users in a given role
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
@@ -11979,6 +20171,8 @@ Parameters:
Type
+ Attributes
+
@@ -11991,7 +20185,7 @@ Parameters:
- id
+ roleId
@@ -12004,19 +20198,21 @@ Parameters:
+
+
+ <optional>
+
-
+
-
- Rule ID.
-
-
+
+
-
-
-
+
+
+ Id of the role
@@ -12101,14 +20297,18 @@ Returns:
-Example
+Examples
- management.getRule({ id: RULE_ID }, function (err, rule) {
- if (err) {
- // Handle error.
- }
+ var params = { id :'ROLE_ID'};
- console.log(rule);
+
+
+ management.getUsersInRole(params, function (err, users) {
+ console.log(users);
});
@@ -12120,14 +20320,15 @@ Example
- getRules(paramsopt, cbopt) → {Promise|undefined}
+ importUsers(data, cbopt) → {Promise|undefined}
- Get all rules.
+ 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.
@@ -12163,7 +20364,7 @@ getRulesSource:
Parameters:
- params
+ data
@@ -12224,8 +20425,6 @@ Parameters:
- <optional>
-
@@ -12236,7 +20435,7 @@ Parameters:
- Rules parameters.
+ Users import data.
@@ -12250,8 +20449,6 @@ Parameters:
Type
- Attributes
-
@@ -12264,34 +20461,24 @@ Parameters:
- per_page
+ connectionId
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Number of results per page.
+ Connection for the users insertion.
@@ -12300,34 +20487,24 @@ Parameters:
- page
+ users
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Page number, zero indexed.
+ Path to the users data file.
@@ -12422,20 +20599,15 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
+ var params = {
+ connection_id: '{CONNECTION_ID}',
+ users: '{PATH_TO_USERS_FILE}'
};
-management.getRules(params, function (err, rules) {
- console.log(rules.length);
+management.get(params, function (err) {
+ if (err) {
+ // Handle error.
+ }
});
@@ -12447,14 +20619,14 @@ Example
- getRulesConfigs() → {Promise|undefined}
+ linkUsers(userId, params, cbopt) → {Promise|undefined}
- Get rules config.
+ Link the user with another account.
@@ -12490,7 +20662,7 @@ getRul
getRul
+ Parameters:
+
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
+
+
+
-
-
-
+
+ Description
+
+
+
-
+
+
+ userId
+
+
+
+
+String
-
-Example
- management.getRulesConfigs(function (err, rulesConfigs) {
- if (err) {
- // Handle error.
- }
+
+
- // Get Rules Configs.
-});
+
+
+
-
+
-
-
+
+
-
-
+
- getTenantSettings(cbopt) → {Promise|undefined}
+
+ ID of the primary user.
+
+
+
+
+
+ params
+
-
-
- Get the tenant settings..
-
+
+
+
+Object
+
+
+
+
+
+
-
+
+
+
-
+
-
+
+ Secondary user data.
+
+
-
+
+
+
+
+ Name
+
-
+ Type
-
+
-
+
-
+ Description
+
+
+
-
+
+
+ user_id
+
-
+
+
+
+String
-
-
+
+
-
-
+ ID of the user to be linked.
+
+
+
-
-
+
+
+ connection_id
+
+
+
+
+String
+
+
+
+
+
+ ID of the connection to be used.
+
+
+
- Parameters:
+
+
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
+
+
+
-
@@ -12734,12 +20931,18 @@ Returns:
Example
- management.getSettings(function (err, settings) {
+ 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.
}
- console.log(settings);
+ // Users linked.
});
@@ -12751,14 +20954,14 @@ Example
- getUser(data, cbopt) → {Promise|undefined}
+ regenerateRecoveryCode(data, cbopt) → {Promise|undefined}
- Get a user by its id.
+ Generate new Guardian recovery code.
@@ -12794,7 +20997,7 @@ getUserSource:
Returns:
Example
- management.getUser({ id: USER_ID }, function (err, user) {
- console.log(user);
+ management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
+ console.log(newRecoveryCode);
});
@@ -13016,14 +21219,14 @@ Example
- getUserLogs(params, cbopt) → {Promise|undefined}
+ removePermissionsFromRole(data, cbopt) → {Promise|undefined}
- Get user's log events.
+ Remove permissions from a role
@@ -13059,7 +21262,7 @@ getUserLog
Parameters:
- params
+ params.id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID of the Role.
+
+
+
+
+
+
+
+
+ data
@@ -13130,7 +21367,7 @@ Parameters:
- Get logs data.
+ permissions data
@@ -13156,7 +21393,7 @@ Parameters:
- id
+ permissions
@@ -13173,48 +21410,39 @@ Parameters:
- User id.
-
-
-
-
-
-
-
-
- per_page
-
-
-
-
+ Array of permissions
-Number
+
+
+
+
+
+ Name
+
-
-
+ Type
-
+
-
+
-
- Number of results per page.
-
-
-
+ Description
+
+
+
- page
+ permission_name
-Number
+String
@@ -13225,7 +21453,7 @@ Parameters:
- Page number, zero indexed.
+ Name of a permission
@@ -13234,7 +21462,7 @@ Parameters:
- sort
+ resource_server_identifier
@@ -13251,33 +21479,15 @@ Parameters:
- The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.
+ Identifier for a resource
+
+
-
-
- include_totals
-
-
-
-
-
-Boolean
-
-
-
-
-
-
-
-
-
-
- true if a query summary must be included in the result, false otherwise. Default false;
@@ -13372,14 +21582,11 @@ 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.
- }
+ var params = { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
- console.log(logs);
+management.removePermissionsFromRole(params, data, function (err, permissions) {
+ console.log(permissions);
});
@@ -13391,14 +21598,14 @@ Example
- getUsers(paramsopt, cbopt) → {Promise|undefined}
+ removePermissionsFromUser(params, data, cbopt) → {Promise|undefined}
- Get all users.
+ Remove permissions from a user
@@ -13434,7 +21641,7 @@ getUsersSource:
Parameters:
- <optional>
-
@@ -13507,7 +21712,7 @@ Parameters:
- Users params.
+ params object
@@ -13521,8 +21726,6 @@ Parameters:
Type
- Attributes
-
@@ -13535,34 +21738,32 @@ Parameters:
- search_engine
+ id
-Number
+String
-
-
- <optional>
-
-
+
+
+ user_id
-
-
+
+
-
+
+
+
-
- The version of the search engine to use.
@@ -13571,13 +21772,13 @@ Parameters:
- per_page
+ data
-Number
+String
@@ -13586,8 +21787,6 @@ Parameters:
- <optional>
-
@@ -13598,43 +21797,50 @@ Parameters:
- Number of results per page.
+ data object containing list of permission IDs
-
-
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
- page
+ permissions
-Number
+String
-
-
- <optional>
-
-
-
-
-
-
-
- Page number, zero indexed.
+ Array of permission IDs
@@ -13729,21 +21935,15 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- search_engine: 'v3',
- per_page: 10,
- page: 0
-};
+ var parms = { id : 'USER_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
-auth0.getUsers(params, function (err, users) {
- console.log(users.length);
+management.removePermissionsFromUser(params, data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User assigned permissions.
});
@@ -13755,14 +21955,14 @@ Example
- getUsersByEmail(emailopt, cbopt) → {Promise|undefined}
+ removeRolesFromUser(params, data, cbopt) → {Promise|undefined}
- Get users for a given email address
+ Remove roles from a user
@@ -13798,7 +21998,7 @@ getUse
Parameters:
- email
+ params
-String
+Object
@@ -13859,7 +22059,90 @@ Parameters:
- <optional>
+
+
+
+
+
+
+
+
+
+
+ params object
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+String
+
+
+
+
+
+
+
@@ -13871,7 +22154,58 @@ Parameters:
- Email Address of users to locate
+ data object containing list of role IDs
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of role IDs
+
+
+
+
+
+
+
+
@@ -13958,13 +22292,15 @@ Returns:
Example
-
-
- auth0.getUsersByEmail(email, function (err, users) {
- console.log(users);
+ var parms = { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
+
+management.removeRolesFromUser(params, data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User assigned roles.
});
@@ -13976,15 +22312,14 @@ Example
- importUsers(data, cbopt) → {Promise|undefined}
+ sendEmailVerification(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.
+ Send a verification email to a user.
@@ -14020,7 +22355,7 @@ importUser
Parameters:
- Users import data.
+ User data object.
@@ -14117,33 +22452,7 @@ Parameters:
- connectionId
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Connection for the users insertion.
-
-
-
-
-
-
-
-
- users
+ user_id
@@ -14160,7 +22469,7 @@ Parameters:
- Path to the users data file.
+ ID of the user to be verified.
@@ -14256,11 +22565,10 @@ Returns:
Example
var params = {
- connection_id: '{CONNECTION_ID}',
- users: '{PATH_TO_USERS_FILE}'
+ user_id: '{USER_ID}'
};
-management.get(params, function (err) {
+management.sendEmailVerification(function (err) {
if (err) {
// Handle error.
}
@@ -14275,14 +22583,14 @@ Example
- linkUsers(userId, params, cbopt) → {Promise|undefined}
+ setRulesConfig(params, data, cbopt) → {Promise|undefined}
- Link the user with another account.
+ Set a new rules config.
@@ -14318,7 +22626,7 @@ linkUsersSource:
Parameters:
Type
- Attributes
-
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Rule Config parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
@@ -14364,7 +22723,7 @@ Parameters:
- userId
+ key
@@ -14377,19 +22736,19 @@ Parameters:
-
-
-
+
+
+ Rule Config key.
-
-
+
+
-
+
+
+
-
- ID of the primary user.
@@ -14398,7 +22757,7 @@ Parameters:
- params
+ data
@@ -14423,7 +22782,7 @@ Parameters:
- Secondary user data.
+ Rule Config Data parameters.
@@ -14449,33 +22808,7 @@ Parameters:
- user_id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- ID of the user to be linked.
-
-
-
-
-
-
-
-
- connection_id
+ value
@@ -14492,7 +22825,7 @@ Parameters:
- ID of the connection to be used.
+ Rule Config Data value.
@@ -14587,18 +22920,15 @@ Returns:
Example
- var userId = 'USER_ID';
-var params = {
- user_id: 'OTHER_USER_ID',
- connection_id: 'CONNECTION_ID'
-};
+ var params = { key: RULE_CONFIG_KEY };
+var data = { value: RULES_CONFIG_VALUE };
-management.linkUsers(userId, params, function (err, user) {
+management.setRulesConfig(params, data, function (err, rulesConfig) {
if (err) {
// Handle error.
}
- // Users linked.
+ // Rules Config set.
});
@@ -14610,14 +22940,14 @@ Example
- regenerateRecoveryCode(data, cbopt) → {Promise|undefined}
+ unlinkUsers(params, cbopt) → {Promise|undefined}
- Generate new Guardian recovery code.
+ Unlink the given accounts.
@@ -14653,7 +22983,7 @@ Source:
Parameters:
- data
+ params
@@ -14724,7 +23054,7 @@ Parameters:
- The user data object.
+ Linked users data.
@@ -14767,7 +23097,59 @@ Parameters:
- The user id.
+ Primary user ID.
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Identity provider in use.
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Secondary user ID.
@@ -14862,8 +23244,14 @@ Returns:
Example
- management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
- console.log(newRecoveryCode);
+ var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+
+management.unlinkUsers(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
});
@@ -14875,14 +23263,14 @@ Example
- sendEmailVerification(data, cbopt) → {Promise|undefined}
+ updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}
- Send a verification email to a user.
+ Update the app metadata for a user.
@@ -14918,7 +23306,7 @@
Parameters:
- data
+ params
@@ -14989,7 +23377,7 @@ Parameters:
- User data object.
+ The user data object..
@@ -15015,7 +23403,7 @@ Parameters:
- user_id
+ id
@@ -15032,7 +23420,7 @@ Parameters:
- ID of the user to be verified.
+ The user id.
@@ -15047,6 +23435,40 @@ Parameters:
+
+
+ metadata
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New app metadata.
+
+
+
+
+
+
cb
@@ -15076,7 +23498,7 @@ Parameters:
- Callback function.
+ Callback function
@@ -15127,14 +23549,18 @@ Returns:
Example
- var params = {
- user_id: '{USER_ID}'
+ var params = { id: USER_ID };
+var metadata = {
+ foo: 'bar'
};
-management.sendEmailVerification(function (err) {
+management.updateAppMetadata(params, metadata, function (err, user) {
if (err) {
// Handle error.
}
+
+ // Updated user.
+ console.log(user);
});
@@ -15146,14 +23572,14 @@ Example
- setRulesConfig(params, data, cbopt) → {Promise|undefined}
+ updateClient(params, data, cbopt) → {Promise|undefined}
- Set a new rules config.
+ Update an Auth0 client.
@@ -15189,7 +23615,7 @@ setRule
Parameters:
- Rule Config parameters.
+ Client parameters.
@@ -15286,7 +23712,7 @@ Parameters:
- key
+ client_id
@@ -15303,7 +23729,7 @@ Parameters:
- Rule Config key.
+ Application client ID.
@@ -15342,61 +23768,10 @@ Parameters:
-
-
-
- Rule Config Data parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Rule Config Data value.
-
-
-
-
-
-
-
+
+
+ Updated client data.
@@ -15483,15 +23858,15 @@ Returns:
Example
- var params = { key: RULE_CONFIG_KEY };
-var data = { value: RULES_CONFIG_VALUE };
+ var data = { name: 'newClientName' };
+var params = { client_id: CLIENT_ID };
-management.setRulesConfig(params, data, function (err, rulesConfig) {
+management.updateClient(params, data, function (err, client) {
if (err) {
// Handle error.
}
- // Rules Config set.
+ console.log(client.name); // 'newClientName'
});
@@ -15503,14 +23878,14 @@ Example
- unlinkUsers(params, cbopt) → {Promise|undefined}
+ updateClientGrant(params, data, cbopt) → {Promise|undefined}
- Unlink the given accounts.
+ Update an Auth0 client grant.
@@ -15546,7 +23921,7 @@ unlinkUser
Parameters:
- Linked users data.
+ Client parameters.
@@ -15660,33 +24035,15 @@ Parameters:
- Primary user ID.
+ Client grant ID.
+
+
-
-
- provider
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Identity provider in use.
@@ -15695,32 +24052,32 @@ Parameters:
- user_id
+ data
-String
+Object
+
+
-
+
-
- Secondary user ID.
-
-
+
+
-
-
-
+
+
+ Updated client data.
@@ -15807,14 +24164,19 @@ Returns:
Example
- var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+ var data = {
+ client_id: CLIENT_ID,
+ audience: AUDIENCE,
+ scope: []
+};
+var params = { id: CLIENT_GRANT_ID };
-management.unlinkUsers(params, function (err, user) {
+management.clientGrants.update(params, data, function (err, grant) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ console.log(grant.id);
});
@@ -15826,14 +24188,14 @@ Example
- updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}
+ updateConnection(params, data, cbopt) → {Promise|undefined}
- Update the app metadata for a user.
+ Update an existing connection.
@@ -15869,7 +24231,7 @@ upda
Parameters:
- The user data object..
+ Connection parameters.
@@ -15983,7 +24345,7 @@ Parameters:
- The user id.
+ Connection ID.
@@ -16000,7 +24362,7 @@ Parameters:
- metadata
+ data
@@ -16025,7 +24387,7 @@ Parameters:
- New app metadata.
+ Updated connection data.
@@ -16061,7 +24423,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -16112,18 +24474,15 @@ Returns:
Example
- var params = { id: USER_ID };
-var metadata = {
- foo: 'bar'
-};
+ var data = { name: 'newConnectionName' };
+var params = { id: CONNECTION_ID };
-management.updateAppMetadata(params, metadata, function (err, user) {
+management.updateConnection(params, data, function (err, connection) {
if (err) {
// Handle error.
}
- // Updated user.
- console.log(user);
+ console.log(connection.name); // 'newConnectionName'
});
@@ -16135,14 +24494,14 @@ Example
- updateClient(params, data, cbopt) → {Promise|undefined}
+ updateEmailProvider(params, data, cbopt) → {Promise|undefined}
- Update an Auth0 client.
+ Update the email provider.
@@ -16178,7 +24537,7 @@ updateCli
Parameters:
- Client parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- client_id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Application client ID.
-
-
-
-
-
-
-
-
+ Email provider parameters.
@@ -16334,7 +24642,7 @@ Parameters:
- Updated client data.
+ Updated email provider data.
@@ -16421,15 +24729,13 @@ Returns:
Example
- var data = { name: 'newClientName' };
-var params = { client_id: CLIENT_ID };
-
-management.updateClient(params, data, function (err, client) {
+ management.updateEmailProvider(params, data, function (err, provider) {
if (err) {
// Handle error.
}
- console.log(client.name); // 'newClientName'
+ // Updated email provider.
+ console.log(provider);
});
@@ -16441,14 +24747,14 @@ Example
- updateConnection(params, data, cbopt) → {Promise|undefined}
+ updateResourceServer(params, data, cbopt) → {Promise|undefined}
- Update an existing connection.
+ Update an existing resource server.
@@ -16484,7 +24790,7 @@ updat
Parameters:
- Connection parameters.
+ Resource Server parameters.
@@ -16598,7 +24904,7 @@ Parameters:
- Connection ID.
+ Resource Server ID.
@@ -16640,7 +24946,7 @@ Parameters:
- Updated connection data.
+ Updated Resource Server data.
@@ -16727,15 +25033,15 @@ Returns:
Example
- var data = { name: 'newConnectionName' };
-var params = { id: CONNECTION_ID };
+ var data = { name: 'newResourceServerName' };
+var params = { id: RESOURCE_SERVER_ID };
-management.updateConnection(params, data, function (err, connection) {
+management.updateResourceServer(params, data, function (err, resourceServer) {
if (err) {
// Handle error.
}
- console.log(connection.name); // 'newConnectionName'
+ console.log(resourceServer.name); // 'newResourceServerName'
});
@@ -16747,14 +25053,14 @@ Example
- updateEmailProvider(params, data, cbopt) → {Promise|undefined}
+ updateRole(params, data, cbopt) → {Promise|undefined}
- Update the email provider.
+ Update an existing role.
@@ -16790,7 +25096,7 @@ up
Parameters:
- Email provider parameters.
+ Role parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Role ID.
+
+
+
+
+
+
+
+
@@ -16895,7 +25252,7 @@ Parameters:
- Updated email provider data.
+ Updated role data.
@@ -16982,13 +25339,14 @@ Returns:
Example
- management.updateEmailProvider(params, data, function (err, provider) {
+ var params = { id: ROLE_ID };
+var data = { name: 'my-role'};
+management.updateRole(params, data, function (err, role) {
if (err) {
// Handle error.
}
- // Updated email provider.
- console.log(provider);
+ console.log(role.name); // 'my-role'.
});
@@ -17000,14 +25358,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 +25401,7 @@ u
Parameters:
- Resource Server parameters.
+ Rule parameters.
@@ -17157,7 +25515,7 @@ Parameters:
- Resource Server ID.
+ Rule ID.
@@ -17199,7 +25557,7 @@ Parameters:
- Updated Resource Server data.
+ Updated rule data.
@@ -17286,15 +25644,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 +25663,14 @@ Example
- updateRule(params, data, cbopt) → {Promise|undefined}
+ updateTenantSettings(data, cbopt) → {Promise|undefined}
- Update an existing rule.
+ Update the tenant settings.
@@ -17349,7 +25706,7 @@ updateRule<
Parameters:
-
-
- params
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Rule parameters.
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
- Rule ID.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
data
@@ -17505,7 +25777,7 @@ Parameters:
- Updated rule data.
+ The new tenant settings.
@@ -17592,14 +25864,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 +25879,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 +25922,7 @@ u
Parameters:
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The user parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
data
@@ -17725,7 +26078,7 @@ Parameters:
- The new tenant settings.
+ New user data.
@@ -17761,7 +26114,7 @@ Parameters:
- Callback function.
+ Callback function
@@ -17812,10 +26165,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 +26185,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 +26228,7 @@ updateUser<
Parameters:
- The user parameters.
+ The user data object..
@@ -18001,7 +26359,7 @@ Parameters:
- data
+ metadata
@@ -18026,7 +26384,7 @@ Parameters:
- New user data.
+ New user metadata.
@@ -18114,8 +26472,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 +26494,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 +26537,7 @@ upd
Parameters:
- The user data object..
+ Custom Domain parameters.
@@ -18290,7 +26651,7 @@ Parameters:
- The user id.
+ Custom Domain ID.
@@ -18305,40 +26666,6 @@ Parameters:
-
-
- metadata
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- New user metadata.
-
-
-
-
-
-
cb
@@ -18368,7 +26695,7 @@ Parameters:
- Callback function
+ Callback function.
@@ -18419,18 +26746,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 +26775,7 @@ Example
diff --git a/docs/module-management.ManagementTokenProvider.html b/docs/module-management.ManagementTokenProvider.html
index 98a360c74..82e343e91 100644
--- a/docs/module-management.ManagementTokenProvider.html
+++ b/docs/module-management.ManagementTokenProvider.html
@@ -24,7 +24,7 @@
@@ -633,7 +633,7 @@ Returns:
diff --git a/docs/module-management.ResourceServersManager.html b/docs/module-management.ResourceServersManager.html
index 0c021904e..7b3909213 100644
--- a/docs/module-management.ResourceServersManager.html
+++ b/docs/module-management.ResourceServersManager.html
@@ -24,7 +24,7 @@
@@ -1904,7 +1904,7 @@ Example
diff --git a/docs/module-management.RetryRestClient.html b/docs/module-management.RetryRestClient.html
index 482cb0539..6064aa6ff 100644
--- a/docs/module-management.RetryRestClient.html
+++ b/docs/module-management.RetryRestClient.html
@@ -24,7 +24,7 @@
@@ -377,7 +377,7 @@ Parameters:
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)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+ The client options.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+
+
+
+
+
+(inner) clientOptions :Object
+
+
+
+
+
+ Options object for the Rest Client instance.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+
+
+ addPermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Add permissions in a role
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID of the Role.
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ permissions data
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of permissions
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Name of a permission
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Identifier for a resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ params object
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data object containing list of role IDs
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of role IDs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID of the Role.
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ permissions data
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of permissions
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Name of a permission
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Identifier for a resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role data object.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.roles.create(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role created.
+});
+
+
+
+
+
+
+
+
+
+
+ delete(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Delete an existing role.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Role ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.roles.delete({ id: ROLE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role deleted.
+});
+
+
+
+
+
+
+
+
+
+
+ get(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get an Auth0 role.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Role ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Roles parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Number of results per page.
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+Number
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Page number, zero indexed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+
+
+ // 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ email
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Email address of user(s) to find
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Examples
+
+ var params = {id : 'ROLE_ID'}
+
+
+
+ management.roles.getPermissions( {id : 'ROLE_ID'}, function (err, permissions) {
+ console.log(permissions);
+});
+
+
+
+
+
+
+
+
+
+
+ getUsers(emailopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get Users in a Role
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ email
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Email address of user(s) to find
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Examples
+
+ params = {id : 'ROLE_ID'}
+
+
+
+ management.roles.getUsers( {id : 'ROLE_ID'}, function (err, users) {
+ console.log(users);
+});
+
+
+
+
+
+
+
+
+
+
+ removePermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Remove permissions from a role
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID of the Role.
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ permissions data
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of permissions
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Name of a permission
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Identifier for a resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ params object
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data object containing list of role IDs
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Array of role IDs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Role parameters.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ Role ID.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Updated role data.
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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'
+});
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/module-management.RulesConfigsManager.html b/docs/module-management.RulesConfigsManager.html
index 4a371256c..6c0be5d76 100644
--- a/docs/module-management.RulesConfigsManager.html
+++ b/docs/module-management.RulesConfigsManager.html
@@ -24,7 +24,7 @@
@@ -1317,7 +1317,7 @@ Example
diff --git a/docs/module-management.RulesManager.html b/docs/module-management.RulesManager.html
index c81f2d396..84d895c28 100644
--- a/docs/module-management.RulesManager.html
+++ b/docs/module-management.RulesManager.html
@@ -24,7 +24,7 @@
@@ -1910,7 +1910,7 @@ Example
diff --git a/docs/module-management.StatsManager.html b/docs/module-management.StatsManager.html
index d73bbea41..e3d8ffa17 100644
--- a/docs/module-management.StatsManager.html
+++ b/docs/module-management.StatsManager.html
@@ -24,7 +24,7 @@
@@ -919,7 +919,7 @@ Example
diff --git a/docs/module-management.TenantManager.html b/docs/module-management.TenantManager.html
index 527516334..c01a5bcc6 100644
--- a/docs/module-management.TenantManager.html
+++ b/docs/module-management.TenantManager.html
@@ -24,7 +24,7 @@
@@ -835,7 +835,7 @@ Example
diff --git a/docs/module-management.TicketsManager.html b/docs/module-management.TicketsManager.html
index 6cc15b131..dd25b20f3 100644
--- a/docs/module-management.TicketsManager.html
+++ b/docs/module-management.TicketsManager.html
@@ -24,7 +24,7 @@
@@ -805,7 +805,7 @@ Example
diff --git a/docs/module-management.UsersManager.html b/docs/module-management.UsersManager.html
index 4a29c2bcb..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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+
+
+
+
+
+(inner) userRolesClient :external:RestClient
+
+
+
+
+
+ Provides an abstraction layer for CRD on roles for a user
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -836,7 +984,7 @@ createSource:
deleteSource:
deleteAllSource:
Source:
getSource:
getAllSource:
getByEmail<
Source:
Example
+
+
+
+
+ getPermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get a list of permissions for a user.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The user data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The user data object.
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+ The user id.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+function
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ Callback function.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+
+
+
+
+
+Example
+
+ management.users.getRoles({ id: USER_ID }, function (err, roles) {
+ console.log(roles);
+});
+
+
+
+
+
+
@@ -2884,7 +3562,7 @@ linkSource:
logsSource:
Source:
unlinkSource:
updateSource:
upda
upd
Example
diff --git a/docs/module-management.html b/docs/module-management.html
index 24524f386..59dfc7588 100644
--- a/docs/module-management.html
+++ b/docs/module-management.html
@@ -24,7 +24,7 @@
@@ -86,6 +86,9 @@ Classes
Classes
Classes
diff --git a/docs/module-utils.html b/docs/module-utils.html
index c703086b0..c9cd94e0a 100644
--- a/docs/module-utils.html
+++ b/docs/module-utils.html
@@ -24,7 +24,7 @@
@@ -339,7 +339,7 @@ (static)
diff --git a/docs/utils.js.html b/docs/utils.js.html
index e1092abfd..dcd265d5d 100644
--- a/docs/utils.js.html
+++ b/docs/utils.js.html
@@ -24,7 +24,7 @@
@@ -124,7 +124,7 @@ utils.js
diff --git a/package.json b/package.json
index b91a85153..4dae031c7 100644
--- a/package.json
+++ b/package.json
@@ -1,15 +1,16 @@
{
"name": "auth0",
- "version": "2.14.0",
+ "version": "2.17.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/*.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 $(find ./test -name *.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",
@@ -21,7 +22,10 @@
"type": "git",
"url": "https://github.com/auth0/node-auth0"
},
- "keywords": ["auth0", "api"],
+ "keywords": [
+ "auth0",
+ "api"
+ ],
"author": "Auth0",
"license": "MIT",
"bugs": {
@@ -31,16 +35,17 @@
"dependencies": {
"bluebird": "^2.10.2",
"jsonwebtoken": "^8.3.0",
- "jwks-rsa": "^1.3.0",
- "lru-memoizer": "^1.11.1",
+ "jwks-rsa": "^1.4.0",
+ "lru-memoizer": "^1.12.0",
"object.assign": "^4.0.4",
- "request": "^2.83.0",
+ "request": "^2.88.0",
"rest-facade": "^1.10.1",
"retry": "^0.10.1"
},
"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",
diff --git a/src/auth/DatabaseAuthenticator.js b/src/auth/DatabaseAuthenticator.js
index 4f5dabc79..7f23f581d 100644
--- a/src/auth/DatabaseAuthenticator.js
+++ b/src/auth/DatabaseAuthenticator.js
@@ -30,7 +30,8 @@ var DatabaseAuthenticator = function(options, oauth) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = oauth;
diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js
index b9833f948..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
@@ -58,6 +61,9 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) {
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) {
@@ -77,11 +83,15 @@ 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) {
+ 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);
}
);
});
diff --git a/src/auth/OAuthAuthenticator.js b/src/auth/OAuthAuthenticator.js
index d8df93582..7aaa41465 100644
--- a/src/auth/OAuthAuthenticator.js
+++ b/src/auth/OAuthAuthenticator.js
@@ -33,7 +33,8 @@ var OAuthAuthenticator = function(options) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = new RestClient(options.baseUrl + '/oauth/:type', clientOptions);
diff --git a/src/auth/PasswordlessAuthenticator.js b/src/auth/PasswordlessAuthenticator.js
index 99c124275..b0855714b 100644
--- a/src/auth/PasswordlessAuthenticator.js
+++ b/src/auth/PasswordlessAuthenticator.js
@@ -29,7 +29,8 @@ var PasswordlessAuthenticator = function(options, oauth) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = oauth;
diff --git a/src/auth/index.js b/src/auth/index.js
index acb70f253..c86921d57 100644
--- a/src/auth/index.js
+++ b/src/auth/index.js
@@ -1,8 +1,6 @@
/** @module auth **/
var util = require('util');
-
-var pkg = require('../../package.json');
var utils = require('../utils');
var jsonToBase64 = utils.jsonToBase64;
var ArgumentError = require('rest-facade').ArgumentError;
@@ -67,8 +65,11 @@ var AuthenticationClient = function(options) {
};
if (options.telemetry !== false) {
- var telemetry = jsonToBase64(options.clientInfo || this.getClientInfo());
- managerOptions.headers['Auth0-Client'] = telemetry;
+ var clientInfo = options.clientInfo || utils.generateClientInfo();
+ if ('string' === typeof clientInfo.name && clientInfo.name) {
+ var telemetry = jsonToBase64(clientInfo);
+ managerOptions.headers['Auth0-Client'] = telemetry;
+ }
}
/**
@@ -107,38 +108,6 @@ var AuthenticationClient = function(options) {
this.tokens = new TokensManager(managerOptions);
};
-/**
- * Return an object with information about the current client,
- *
- * @method getClientInfo
- * @memberOf module:auth.AuthenticationClient.prototype
- *
- * @return {Object} Object containing client information.
- */
-AuthenticationClient.prototype.getClientInfo = function() {
- var clientInfo = {
- name: 'node-auth0',
- version: pkg.version,
- dependencies: [],
- environment: [
- {
- name: 'node.js',
- version: process.version.replace('v', '')
- }
- ]
- };
-
- // Add the dependencies to the client info object.
- Object.keys(pkg.dependencies).forEach(function(name) {
- clientInfo.dependencies.push({
- name: name,
- version: pkg.dependencies[name]
- });
- });
-
- return clientInfo;
-};
-
/**
* Start passwordless flow sending an email.
*
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/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/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/ManagementTokenProvider.js b/src/management/ManagementTokenProvider.js
index 59996fb2b..ade7b3be1 100644
--- a/src/management/ManagementTokenProvider.js
+++ b/src/management/ManagementTokenProvider.js
@@ -67,7 +67,8 @@ var ManagementTokenProvider = function(options) {
domain: this.options.domain,
clientId: this.options.clientId,
clientSecret: this.options.clientSecret,
- telemetry: this.options.telemetry
+ telemetry: this.options.telemetry,
+ clientInfo: this.options.clientInfo
};
this.authenticationClient = new AuthenticationClient(authenticationClientOptions);
};
diff --git a/src/management/RolesManager.js b/src/management/RolesManager.js
new file mode 100644
index 000000000..826a15cef
--- /dev/null
+++ b/src/management/RolesManager.js
@@ -0,0 +1,402 @@
+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
+ * 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);
+ * });
+ *
+ * @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
+ * 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);
+ * });
+ *
+ * @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
+ * 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);
+ * });
+ *
+ * @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;
diff --git a/src/management/StatsManager.js b/src/management/StatsManager.js
index 9dafe9f94..2254a83be 100644
--- a/src/management/StatsManager.js
+++ b/src/management/StatsManager.js
@@ -49,7 +49,7 @@ var StatsManager = function(options) {
clientOptions,
options.tokenProvider
);
- this.stats = new RetryRestClient(auth0RestClient, options.retry);
+ this.resource = new RetryRestClient(auth0RestClient, options.retry);
};
/**
@@ -84,10 +84,10 @@ StatsManager.prototype.getDaily = function(params, cb) {
params.type = 'daily';
if (cb && cb instanceof Function) {
- return this.stats.get(params, cb);
+ return this.resource.get(params, cb);
}
- return this.stats.get(params);
+ return this.resource.get(params);
};
/**
@@ -113,11 +113,11 @@ StatsManager.prototype.getActiveUsersCount = function(cb) {
var options = { type: 'active-users' };
if (cb && cb instanceof Function) {
- return this.stats.get(options, cb);
+ return this.resource.get(options, cb);
}
// Return a promise.
- return this.stats.get(options);
+ return this.resource.get(options);
};
module.exports = StatsManager;
diff --git a/src/management/TenantManager.js b/src/management/TenantManager.js
index a4ee9dbae..bbd86c7b8 100644
--- a/src/management/TenantManager.js
+++ b/src/management/TenantManager.js
@@ -49,7 +49,7 @@ var TenantManager = function(options) {
clientOptions,
options.tokenProvider
);
- this.tenant = new RetryRestClient(auth0RestClient, options.retry);
+ this.resource = new RetryRestClient(auth0RestClient, options.retry);
};
/**
@@ -72,11 +72,11 @@ var TenantManager = function(options) {
*/
TenantManager.prototype.updateSettings = function(data, cb) {
if (cb && cb instanceof Function) {
- return this.tenant.patch({}, data, cb);
+ return this.resource.patch({}, data, cb);
}
// Return a promise.
- return this.tenant.patch({}, data);
+ return this.resource.patch({}, data);
};
/**
@@ -100,11 +100,11 @@ TenantManager.prototype.updateSettings = function(data, cb) {
*/
TenantManager.prototype.getSettings = function(cb) {
if (cb && cb instanceof Function) {
- return this.tenant.get({}, cb);
+ return this.resource.get({}, cb);
}
// Return a promise.
- return this.tenant.get({});
+ return this.resource.get({});
};
module.exports = TenantManager;
diff --git a/src/management/TicketsManager.js b/src/management/TicketsManager.js
index d6e06c919..78a1383be 100644
--- a/src/management/TicketsManager.js
+++ b/src/management/TicketsManager.js
@@ -43,7 +43,7 @@ var TicketsManager = function(options) {
clientOptions,
options.tokenProvider
);
- this.ticket = new RetryRestClient(auth0RestClient, options.retry);
+ this.resource = new RetryRestClient(auth0RestClient, options.retry);
};
/**
@@ -73,11 +73,11 @@ TicketsManager.prototype.changePassword = function(data, cb) {
var params = { type: 'password-change' };
if (cb && cb instanceof Function) {
- return this.ticket.create(params, data, cb);
+ return this.resource.create(params, data, cb);
}
// Return a promise.
- return this.ticket.create(params, data);
+ return this.resource.create(params, data);
};
/**
@@ -105,11 +105,11 @@ TicketsManager.prototype.verifyEmail = function(data, cb) {
var params = { type: 'email-verification' };
if (cb && cb instanceof Function) {
- return this.ticket.create(params, data, cb);
+ return this.resource.create(params, data, cb);
}
// Return a promise.
- return this.ticket.create(params, data);
+ return this.resource.create(params, data);
};
module.exports = TicketsManager;
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 3f4246910..b687a7e0b 100644
--- a/src/management/index.js
+++ b/src/management/index.js
@@ -1,16 +1,16 @@
/** @module management */
var util = require('util');
-
-var pkg = require('../../package.json');
var utils = require('../utils');
var jsonToBase64 = utils.jsonToBase64;
+var generateClientInfo = utils.generateClientInfo;
var ArgumentError = require('rest-facade').ArgumentError;
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 UserBlocksManager = require('./UserBlocksManager');
var ConnectionsManager = require('./ConnectionsManager');
@@ -29,6 +29,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/';
@@ -128,8 +129,11 @@ var ManagementClient = function(options) {
}
if (options.telemetry !== false) {
- var telemetry = jsonToBase64(options.clientInfo || this.getClientInfo());
- managerOptions.headers['Auth0-Client'] = telemetry;
+ var clientInfo = options.clientInfo || generateClientInfo();
+ if ('string' === typeof clientInfo.name && clientInfo.name.length > 0) {
+ var telemetry = jsonToBase64(clientInfo);
+ managerOptions.headers['Auth0-Client'] = telemetry;
+ }
}
managerOptions.retry = options.retry;
@@ -150,6 +154,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.
@@ -279,37 +291,14 @@ var ManagementClient = function(options) {
* @type {RulesConfigsManager}
*/
this.rulesConfigs = new RulesConfigsManager(managerOptions);
-};
-/**
- * Return an object with information about the current client,
- *
- * @method getClientInfo
- * @memberOf module:management.ManagementClient.prototype
- *
- * @return {Object} Object containing client information.
- */
-ManagementClient.prototype.getClientInfo = function() {
- var clientInfo = {
- name: 'node-auth0',
- version: pkg.version,
- dependencies: [],
- environment: [
- {
- name: 'node.js',
- version: process.version.replace('v', '')
- }
- ]
- };
- // Add the dependencies to the client info object.
- Object.keys(pkg.dependencies).forEach(function(name) {
- clientInfo.dependencies.push({
- name: name,
- version: pkg.dependencies[name]
- });
- });
-
- return clientInfo;
+ /**
+ * Simple abstraction for performing CRUD operations on the
+ * roles endpoint.
+ *
+ * @type {RolesManager}
+ */
+ this.roles = new RolesManager(managerOptions);
};
/**
@@ -671,6 +660,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.
*
@@ -1244,6 +1295,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.
*
@@ -1490,7 +1711,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');
@@ -1709,6 +1933,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.
*
@@ -1720,7 +1995,7 @@ utils.wrapPropertyMethod(ManagementClient, 'importUsers', 'jobs.importUsers');
* user_id: '{USER_ID}'
* };
*
- * management.sendEmailVerification(function (err) {
+ * management.sendEmailVerification(params, function (err) {
* if (err) {
* // Handle error.
* }
@@ -2295,4 +2570,230 @@ utils.wrapPropertyMethod(
*/
utils.wrapPropertyMethod(ManagementClient, 'updateGuardianFactor', 'guardian.factors.update');
+/**
+ * Get all roles.
+ *
+ * @method getRoles
+ * @memberOf module:management.ManagementClient.prototype
+ *
+ * @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.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
+ * This method takes a roleId and
+ * returns all permissions within that role
+ *
+ *
+ *
+ * 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
+ * This method takes a roleId and
+ * returns all users within that role
+ *
+ *
+ *
+ * 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/src/utils.js b/src/utils.js
index 8ba259f61..59ecb09b2 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -1,5 +1,6 @@
var Promise = require('bluebird');
var request = require('request');
+var pkg = require('../package.json');
/**
* @module utils
@@ -22,6 +23,24 @@ utils.jsonToBase64 = function(json) {
.replace(/=+$/, '');
};
+/**
+ * Return an object with information about the current client.
+ *
+ * @method generateClientInfo
+ * @memberOf module:utils
+ *
+ * @return {Object} Object containing client information.
+ */
+utils.generateClientInfo = function() {
+ return {
+ name: 'node-auth0',
+ version: pkg.version,
+ env: {
+ node: process.version.replace('v', '')
+ }
+ };
+};
+
/**
* Simple wrapper that, given a class, a property name and a method name,
* creates a new method in the class that is a wrapper for the given
diff --git a/test/auth/authentication-client.tests.js b/test/auth/authentication-client.tests.js
index edb873936..7cb62e23f 100644
--- a/test/auth/authentication-client.tests.js
+++ b/test/auth/authentication-client.tests.js
@@ -1,4 +1,6 @@
var expect = require('chai').expect;
+var sinon = require('sinon');
+var proxyquire = require('proxyquire');
var ArgumentError = require('rest-facade').ArgumentError;
@@ -67,8 +69,81 @@ describe('AuthenticationClient', function() {
}
});
+ describe('client info', function() {
+ it('should configure instances with default telemetry header', function() {
+ var utilsStub = {
+ generateClientInfo: sinon.spy(function() {
+ return { name: 'test-sdk', version: 'ver-123' };
+ })
+ };
+ var AuthenticationClientProxy = proxyquire('../../src/auth/', {
+ '../utils': utilsStub
+ });
+
+ var client = new AuthenticationClientProxy({ token: 'token', domain: 'auth0.com' });
+
+ var requestHeaders = {
+ 'Auth0-Client': 'eyJuYW1lIjoidGVzdC1zZGsiLCJ2ZXJzaW9uIjoidmVyLTEyMyJ9',
+ 'Content-Type': 'application/json'
+ };
+ expect(client.oauth.oauth.options.headers).to.contain(requestHeaders);
+ expect(client.database.dbConnections.options.headers).to.contain(requestHeaders);
+ expect(client.passwordless.passwordless.options.headers).to.contain(requestHeaders);
+ expect(client.users.headers).to.contain(requestHeaders);
+ expect(client.tokens.headers).to.contain(requestHeaders);
+ });
+
+ it('should configure instances with custom telemetry header', function() {
+ var customTelemetry = { name: 'custom', version: 'beta-01', env: { node: 'v10' } };
+ var client = new AuthenticationClient({
+ token: 'token',
+ domain: 'auth0.com',
+ clientInfo: customTelemetry
+ });
+
+ var requestHeaders = {
+ 'Auth0-Client':
+ 'eyJuYW1lIjoiY3VzdG9tIiwidmVyc2lvbiI6ImJldGEtMDEiLCJlbnYiOnsibm9kZSI6InYxMCJ9fQ',
+ 'Content-Type': 'application/json'
+ };
+ expect(client.oauth.oauth.options.headers).to.contain(requestHeaders);
+ expect(client.database.dbConnections.options.headers).to.contain(requestHeaders);
+ expect(client.passwordless.passwordless.options.headers).to.contain(requestHeaders);
+ expect(client.users.headers).to.contain(requestHeaders);
+ expect(client.tokens.headers).to.contain(requestHeaders);
+ });
+
+ it('should configure instances without telemetry when "name" property is empty', function() {
+ var customTelemetry = { name: '', version: 'beta-01', env: { node: 'v10' } };
+ var client = new AuthenticationClient({
+ token: 'token',
+ domain: 'auth0.com',
+ clientInfo: customTelemetry
+ });
+
+ expect(client.oauth.oauth.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.database.dbConnections.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.passwordless.passwordless.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.users.headers).to.not.have.property('Auth0-Client');
+ expect(client.tokens.headers).to.not.have.property('Auth0-Client');
+ });
+
+ it('should configure instances without telemetry header when disabled', function() {
+ var client = new AuthenticationClient({
+ token: 'token',
+ domain: 'auth0.com',
+ telemetry: false
+ });
+
+ expect(client.oauth.oauth.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.database.dbConnections.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.passwordless.passwordless.options.headers).to.not.have.property('Auth0-Client');
+ expect(client.users.headers).to.not.have.property('Auth0-Client');
+ expect(client.tokens.headers).to.not.have.property('Auth0-Client');
+ });
+ });
+
describe('instance methods', function() {
- var method;
var methods = [];
var client = new AuthenticationClient({ token: 'token', domain: 'auth0.com' });
diff --git a/test/auth/oauth-with-idtoken-validation.tests.js b/test/auth/oauth-with-idtoken-validation.tests.js
index 8e53a2490..2f8dc4fb4 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,27 @@ 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.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);
+ });
+ });
+ 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 = {
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/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'
diff --git a/test/management/management-client.tests.js b/test/management/management-client.tests.js
index 97c749fc2..64928b492 100644
--- a/test/management/management-client.tests.js
+++ b/test/management/management-client.tests.js
@@ -1,5 +1,7 @@
var expect = require('chai').expect;
+var sinon = require('sinon');
var assign = Object.assign || require('object.assign');
+var proxyquire = require('proxyquire');
var ManagementClient = require('../../src/management');
@@ -9,6 +11,7 @@ var UserBlocksManager = require('../../src/management/UserBlocksManager');
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');
@@ -16,7 +19,6 @@ var JobsManager = require('../../src/management/JobsManager');
var RulesManager = require('../../src/management/RulesManager');
var StatsManager = require('../../src/management/StatsManager');
var RulesConfigsManager = require('../../src/management/RulesConfigsManager');
-
var TenantManager = require('../../src/management/TenantManager');
describe('ManagementClient', function() {
@@ -116,6 +118,10 @@ describe('ManagementClient', function() {
property: 'clientGrants',
cls: ClientGrantsManager
},
+ GrantsManager: {
+ property: 'grants',
+ cls: GrantsManager
+ },
ConnectionsManager: {
property: 'connections',
cls: ConnectionsManager
@@ -144,12 +150,559 @@ describe('ManagementClient', function() {
property: 'tenant',
cls: TenantManager
},
- 'RulesConfigsManager': {
+ RulesConfigsManager: {
property: 'rulesConfigs',
cls: RulesConfigsManager
- },
+ }
};
+ describe('client info', function() {
+ it('should configure instances with default telemetry header', function() {
+ var utilsStub = {
+ generateClientInfo: sinon.spy(function() {
+ return { name: 'test-sdk', version: 'ver-123' };
+ })
+ };
+ var ManagementClientProxy = proxyquire('../../src/management/', {
+ '../utils': utilsStub
+ });
+ var client = new ManagementClientProxy(withTokenConfig);
+
+ var requestHeaders = {
+ 'Auth0-Client': 'eyJuYW1lIjoidGVzdC1zZGsiLCJ2ZXJzaW9uIjoidmVyLTEyMyJ9',
+ 'Content-Type': 'application/json'
+ };
+
+ expect(client.clients.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.clientGrants.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.grants.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.users.users.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.users.multifactor.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.identities.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.userLogs.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.enrollments.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.usersByEmail.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(
+ client.users.recoveryCodeRegenerations.restClient.restClient.options.headers
+ ).to.contain(requestHeaders);
+ expect(client.users.roles.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.users.permissions.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.guardian.enrollments.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.tickets.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factors.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factorsTemplates.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factorsProviders.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.customDomains.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(
+ client.customDomains.vefifyResource.restClient.restClient.options.headers
+ ).to.contain(requestHeaders);
+
+ expect(client.connections.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.deviceCredentials.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.rules.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.blacklistedTokens.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.emailProvider.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.stats.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.tenant.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.jobs.jobs.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.jobs.usersExports.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.tickets.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.logs.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.resourceServers.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.emailTemplates.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.rulesConfigs.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.roles.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.roles.permissions.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.roles.users.restClient.restClient.options.headers).to.contain(requestHeaders);
+ });
+
+ it('should configure instances with custom telemetry header', function() {
+ var customTelemetry = { name: 'custom', version: 'beta-01', env: { node: 'v10' } };
+ var client = new ManagementClient({
+ token: 'token',
+ domain: 'auth0.com',
+ clientInfo: customTelemetry
+ });
+
+ var requestHeaders = {
+ 'Auth0-Client':
+ 'eyJuYW1lIjoiY3VzdG9tIiwidmVyc2lvbiI6ImJldGEtMDEiLCJlbnYiOnsibm9kZSI6InYxMCJ9fQ',
+ 'Content-Type': 'application/json'
+ };
+
+ expect(client.clients.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.clientGrants.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.grants.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.users.users.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.users.multifactor.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.identities.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.userLogs.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.enrollments.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.users.usersByEmail.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(
+ client.users.recoveryCodeRegenerations.restClient.restClient.options.headers
+ ).to.contain(requestHeaders);
+ expect(client.users.roles.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.users.permissions.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.guardian.enrollments.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.tickets.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factors.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factorsTemplates.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.guardian.factorsProviders.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.customDomains.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(
+ client.customDomains.vefifyResource.restClient.restClient.options.headers
+ ).to.contain(requestHeaders);
+
+ expect(client.connections.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.deviceCredentials.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.rules.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.blacklistedTokens.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.emailProvider.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.stats.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.tenant.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.jobs.jobs.restClient.restClient.options.headers).to.contain(requestHeaders);
+ expect(client.jobs.usersExports.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.tickets.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.logs.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.resourceServers.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.emailTemplates.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.rulesConfigs.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+
+ expect(client.roles.resource.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.roles.permissions.restClient.restClient.options.headers).to.contain(
+ requestHeaders
+ );
+ expect(client.roles.users.restClient.restClient.options.headers).to.contain(requestHeaders);
+ });
+
+ it('should configure instances without telemetry when "name" property is empty', function() {
+ var customTelemetry = { name: '', version: 'beta-01', env: { node: 'v10' } };
+ var client = new ManagementClient({
+ token: 'token',
+ domain: 'auth0.com',
+ clientInfo: customTelemetry
+ });
+
+ expect(client.clients.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.clientGrants.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.grants.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.users.users.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.multifactor.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.identities.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.userLogs.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.enrollments.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(
+ client.users.usersByEmail.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.users.recoveryCodeRegenerations.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(client.users.roles.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.permissions.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.guardian.enrollments.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(client.guardian.tickets.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.guardian.factors.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(
+ client.guardian.factorsTemplates.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.guardian.factorsProviders.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.customDomains.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.customDomains.vefifyResource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.connections.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.deviceCredentials.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.rules.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.blacklistedTokens.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.emailProvider.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.stats.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.tenant.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.jobs.jobs.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.jobs.usersExports.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.tickets.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.logs.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.resourceServers.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.emailTemplates.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.rulesConfigs.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.roles.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.roles.permissions.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.roles.users.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ });
+
+ it('should configure instances without telemetry header when disabled', function() {
+ var client = new ManagementClient({
+ token: 'token',
+ domain: 'auth0.com',
+ telemetry: false
+ });
+
+ expect(client.clients.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.clientGrants.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.grants.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.users.users.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.multifactor.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.identities.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.userLogs.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.enrollments.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(
+ client.users.usersByEmail.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.users.recoveryCodeRegenerations.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(client.users.roles.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.users.permissions.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.guardian.enrollments.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(client.guardian.tickets.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.guardian.factors.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(
+ client.guardian.factorsTemplates.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.guardian.factorsProviders.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.customDomains.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+ expect(
+ client.customDomains.vefifyResource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.connections.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.deviceCredentials.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.rules.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.blacklistedTokens.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.emailProvider.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.stats.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.tenant.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.jobs.jobs.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.jobs.usersExports.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.tickets.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(client.logs.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+
+ expect(
+ client.resourceServers.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.emailTemplates.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(
+ client.rulesConfigs.resource.restClient.restClient.options.headers
+ ).to.not.have.property('Auth0-Client');
+
+ expect(client.roles.resource.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.roles.permissions.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ expect(client.roles.users.restClient.restClient.options.headers).to.not.have.property(
+ 'Auth0-Client'
+ );
+ });
+ });
+
before(function() {
var config = assign({}, withTokenConfig);
this.client = new ManagementClient(config);
@@ -182,6 +735,8 @@ describe('ManagementClient', function() {
'createClientGrant',
'updateClientGrant',
'deleteClientGrant',
+ 'getGrants',
+ 'deleteGrant',
'createDevicePublicKey',
'getDeviceCredentials',
'deleteDeviceCredential',
diff --git a/test/management/roles.tests.js b/test/management/roles.tests.js
new file mode 100644
index 000000000..fa336e1ae
--- /dev/null
+++ b/test/management/roles.tests.js
@@ -0,0 +1,797 @@
+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',
+ 'assignUsers'
+ ];
+
+ 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 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();
+ });
+ });
+
+ 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();
+ });
+ });
+ });
+
+ 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();
+ });
+ });
+ });
+});
diff --git a/test/management/users.tests.js b/test/management/users.tests.js
index 7d55bb7b1..72b8156c5 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,494 @@ 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 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();
+ });
+ });
+
+ 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 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();
+ });
+ });
+
+ 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 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();
+ });
+ });
+
+ 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 validate empty user_id', function() {
+ var _this = this;
+ expect(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.removePermissions({ 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();
+ });
+ });
+
+ 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();
+ });
+ });
+ });
});
diff --git a/test/utils.tests.js b/test/utils.tests.js
new file mode 100644
index 000000000..919b8ae01
--- /dev/null
+++ b/test/utils.tests.js
@@ -0,0 +1,16 @@
+var expect = require('chai').expect;
+var utils = require('../src/utils.js');
+
+describe('Utils', function() {
+ describe('client info', function() {
+ it('should generate default telemetry value', function() {
+ var pkgVersion = require('../package.json').version;
+ var nodeVersion = process.version.replace('v', '');
+ expect(utils.generateClientInfo()).to.deep.equal({
+ name: 'node-auth0',
+ version: pkgVersion,
+ env: { node: nodeVersion }
+ });
+ });
+ });
+});
diff --git a/yarn.lock b/yarn.lock
index 8531b7c3c..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,110 +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.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"
- 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"
@@ -124,190 +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=
+
+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.0:
+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, aws4@^1.6.0:
- 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"
-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"
+ 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"
@@ -315,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"
@@ -347,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"
@@ -362,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"
@@ -394,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"
@@ -402,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"
@@ -412,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"
@@ -433,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"
@@ -449,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"
@@ -545,42 +727,67 @@ 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==
+
+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.0:
+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"
+ 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"
+ integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=
dependencies:
lru-cache "^4.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"
+ 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"
-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"
+ integrity sha1-ufx1u0oO1h3PHNXa6W6zDJw+UGw=
dependencies:
browserify-aes "0.4.0"
pbkdf2-compat "2.0.1"
@@ -590,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"
@@ -598,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=
-deep-eql@0.1.3:
+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:
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:
+ 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:
- foreach "^2.0.5"
- object-keys "^1.0.8"
+ 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"
@@ -679,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"
@@ -766,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"
@@ -815,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, extend@~3.0.1:
- 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-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.2:
+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, 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"
- 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"
+ version "1.2.7"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.7.tgz#4851b664a3783e52003b3c66eb0eee1074933aa4"
+ integrity sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw==
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"
@@ -996,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"
@@ -1036,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"
@@ -1049,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"
@@ -1056,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"
@@ -1067,130 +1445,145 @@ 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.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"
+ 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"
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"
+ integrity sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=
-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"
+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"
@@ -1199,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"
@@ -1207,198 +1601,339 @@ 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.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:
- ci-info "^1.0.0"
+ 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.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==
+
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"
@@ -1418,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"
@@ -1457,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"
@@ -1503,27 +2040,31 @@ 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.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"
@@ -1532,49 +2073,67 @@ jwks-rsa@^1.3.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"
@@ -1584,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"
@@ -1591,112 +2151,132 @@ 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.5.1:
- version "4.5.1"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.5.1.tgz#80e8a074ca5f3893a6b1c10b2a636492d710c316"
+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"
-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"
+ 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"
@@ -1705,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"
@@ -1716,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"
@@ -1739,89 +2324,129 @@ micromatch@^2.1.5:
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.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"
-
-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"
-
-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"
- 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"
@@ -1829,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"
@@ -1844,38 +2470,88 @@ 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==
+
+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.3.0:
- version "2.6.2"
- resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
+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"
+ 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"
+ integrity sha1-0mxAAEs0SaZVuRt0rjxW/ALIRSU=
dependencies:
chai ">=1.9.2 <4.0.0"
debug "^2.2.0"
@@ -1888,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"
@@ -1913,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"
@@ -1943,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"
@@ -1968,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, 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"
+ 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"
@@ -2016,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"
@@ -2027,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"
@@ -2046,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"
@@ -2079,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"
@@ -2089,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"
@@ -2108,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.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=
-qs@^6.5.1, qs@~6.5.1:
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
+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.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"
@@ -2296,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"
@@ -2372,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.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"
@@ -2404,79 +3214,34 @@ request@^2.73.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"
-
-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"
+ 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"
@@ -2484,101 +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.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:
+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"
-samsam@1.1.2, samsam@~1.1:
+"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:
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.0.1:
- version "5.0.3"
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.0.3.tgz#77466de589cd5d3c95f138aa78bc569a3cb5d27a"
+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==
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"
@@ -2588,43 +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"
-sntp@1.x.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
+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:
- hoek "2.x.x"
+ define-property "^1.0.0"
+ isobject "^3.0.0"
+ snapdragon-util "^3.0.1"
-sntp@2.x.x:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-2.0.2.tgz#5064110f0af85f7cfdb7d6b67a40028ce52b4b2b"
+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:
- hoek "4.x.x"
+ kind-of "^3.2.0"
-socks-proxy-agent@2:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz#86ebb07193258637870e13b7bd99f26c663df3d3"
+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:
- agent-base "2"
- extend "3"
- socks "~1.1.5"
+ hoek "2.x.x"
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"
@@ -2632,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"
@@ -2708,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, stringstream@~0.0.5:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
+stringstream@~0.0.4:
+ 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"
@@ -2812,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"
@@ -2858,26 +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=
-tough-cookie@~2.3.0:
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a"
+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:
- punycode "^1.4.1"
+ kind-of "^3.0.2"
-tough-cookie@~2.3.3:
- version "2.3.3"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561"
+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.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"
@@ -2885,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"
@@ -2922,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"
@@ -2965,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, uuid@^3.1.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"
@@ -3011,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"
@@ -3018,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"
@@ -3035,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"
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..094cc993b 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -24,7 +24,7 @@
Create an Auth0 client grant. The client data object. Callback function. Delete an Auth0 client grant. Client parameters. Client grant ID. Callback function. Delete an Auth0 client grant. Client parameters. Client grant ID. Callback function. Get all Auth0 Client Grants. Client Grants parameters. Number of results per page. Page number, zero indexed. Callback function. Get all Auth0 Client Grants. Delete an Auth0 client grant. Client Grants parameters. Client parameters. Number of results per page. Page number, zero indexed. Client grant ID. Update an Auth0 client grant. Get all Auth0 Client Grants. Client parameters. Client Grants parameters. Client grant ID. Number of results per page. Updated client data. Page number, zero indexed. Create an Auth0 Custom Domain. The custom domain data object. Callback function. Delete a Custom Domain. Get a Custom Domain. Get a Custom Domain. Get all Auth0 CustomDomains. Custom Domain parameters. Custom Domain ID. Callback function. Get a Custom Domain. Custom Domain parameters. Custom Domain ID. Callback function. Get all Auth0 CustomDomains. Get all Auth0 CustomDomains. Verify a Custom Domain. Custom Domain parameters. Custom Domain ID. Callback function. Clients 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. true if the fields specified are to be excluded from the result, false otherwise (defaults to true) GrantsManager
+Auth0 Grants Manager. See Grants The client options. The URL of the API. Headers to be included in all requests. Retry Policy Config Provides an abstraction layer for consuming the
+Auth0 Grants endpoint. Options object for the Rest Client instance. Delete an Auth0 grant. Grant parameters. Grant ID. The user_id of the grants to delete. Callback function. Delete an Auth0 grant. Grant parameters. Grant ID. The user_id of the grants to delete. Callback function. Get all Auth0 Grants. Grants parameters. Number of results per page. Page number, zero indexed. true if a query summary must be included in the result, false otherwise. Default false; The user_id of the grants to retrieve. The client_id of the grants to retrieve. The audience of the grants to retrieve. Callback function. Create a Guardian enrollment ticket. Callback function. Provides an abstraction layer for consuming the
+Create job to export users endpoint Export all users to a file using a long running job. Users export data. The connection id of the connection from which users will be exported The format of the file. Valid values are: "json" and "csv". Limit the number of records. A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. Callback function. Simple abstraction for performing CRUD operations on the grants
+endpoint. Simple abstraction for performing CRUD operations on the
+roles endpoint. Blacklist a new token. Add permissions in a role ID of the Role. Token data. permissions data Audience (your app client ID). Array of permissions Name of a permission The JWT ID claim. Identifier for a resource Configure the email provider. Asign permissions to a user The email provider data object. params object Callback function. user_id Create an Auth0 client. data object containing list of permissions Array of permission IDs The client data object. Create a new connection. Asign roles to a user Connection data object. params object Callback function. user_id data object containing list of role IDs Array of role IDs Callback function. Create an Auth0 credential. Blacklist a new token. The device credential data object. Token data. Audience (your app client ID). The JWT ID claim. Create an email verification ticket. Configure the email provider. The email provider data object. Create a new password change ticket. Create an Auth0 client. The client data object. Create a new resource server. Create an Auth0 client grant. Resource Server data object. The client data object. Create a new rule. Create a new connection. Rule data object. Connection data object. Create a new user. Create an Auth0 Custom Domain. User data. The custom domain data object. Delete all users. Create an Auth0 credential. The device credential data object. Callback function Callback function. Delete an Auth0 client. Create an email verification ticket. Client parameters. Application client ID. Delete an existing connection. Create a Guardian enrollment ticket. Connection parameters. Callback function. Connection ID. Create a new password change ticket. Delete an Auth0 device credential. Create a new resource server. Credential parameters. Device credential ID. Resource Server data object. Delete email provider. Create a new role. Role data object. Delete a user's Guardian enrollment. Create a new rule. The Guardian enrollment data object. The Guardian enrollment id. Rule data object. Delete an existing resource server. Create a new user. Resource Server parameters. Resource Server ID. User data. Delete an existing rule. Delete all users. Rule parameters. Rule ID. Callback function. Callback function Delete rules config. Delete an Auth0 client. Rule Configs parameters. Client parameters. Rule Configs key. Application client ID. Delete a user by its id. Delete an Auth0 client grant. The user data object.. Client parameters. The user id. Client grant ID. Callback function Callback function. Delete a multifactor provider for a user. Delete an existing connection. Data object. Connection parameters. The user id. Connection ID. Multifactor provider. Callback function Callback function. Delete a multifactor provider for a user. Delete a Custom Domain. Data object. Custom Domain parameters. The user id. Multifactor provider. Custom Domain ID. Callback function Callback function. Get a the active users count. Delete an Auth0 device credential. Credential parameters. Device credential ID. Get all blacklisted tokens. Delete email provider. Get an Auth0 client. Delete a user's Guardian enrollment. Client parameters. The Guardian enrollment data object. Application client ID. The Guardian enrollment id. Return an object with information about the current client, Delete an existing resource server. Resource Server parameters. Resource Server ID. Callback function. Delete an existing role. Role parameters. Role ID. Callback function. Delete an existing rule. Rule parameters. Rule ID. Callback function. Delete rules config. Rule Configs parameters. Rule Configs key. Callback function. Delete a user by its id. The user data object.. The user id. Callback function Delete a multifactor provider for a user. Data object. The user id. Multifactor provider. Callback function Delete a multifactor provider for a user. Data object. The user id. Multifactor provider. Callback function Export all users to a file using a long running job. Users export data. The connection id of the connection from which users will be exported The format of the file. Valid values are: "json" and "csv". Limit the number of records. A list of fields to be included in the CSV. If omitted, a set of predefined fields will be exported. Callback function. Get a the active users count. Callback function. Get all blacklisted tokens. Callback function. Get an Auth0 client. Client parameters. Application client ID. Callback function. Get all Auth0 Client Grants. Client Grants parameters. Number of results per page. Page number, zero indexed. Callback function. Return an object with information about the current client, Object containing client information. Get all Auth0 clients. Clients parameters. Number of results per page. Page number, zero indexed. Callback function. Get an Auth0 connection. Connection parameters. Connection ID. Callback function. Get all connections. Connections params. Number of results per page. Page number, zero indexed. Callback function. Get a Custom Domain. Custom Domain parameters. Custom Domain ID. Callback function. Get all Auth0 CustomDomains. Get the daily stats. Stats parameters. The first day in YYYYMMDD format. The last day in YYYYMMDD format. Callback function. Get all Auth0 credentials. Callback function. Get the email provider. Callback function. Clients 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. true if the fields specified are to be excluded from the result, false otherwise (defaults to true) Get all Auth0 Grants. Grants parameters. Number of results per page. Page number, zero indexed. true if a query summary must be included in the result, false otherwise. Default false; The user_id of the grants to retrieve. The client_id of the grants to retrieve. The audience of the grants to retrieve. Callback function. Get a single Guardian enrollment. The Guardian enrollment data object. The Guardian enrollment id. Callback function. Get a list of a user's Guardian enrollments. The user data object. The user id. Callback function. Get a job by its ID. Job parameters. Job ID. Callback function. Get an Auth0 log. Log parameters. Event ID. Callback function. Get all logs. Logs params. Search Criteria using Query String Syntax Page number. Zero based The amount of entries per page The field to use for sorting. A comma separated list of fields to include or exclude true if the fields specified are to be included in the result, false otherwise. true if a query summary must be included in the result, false otherwise. Default false Callback function. Get permissions for a given role Id of the role Callback function. Object containing client information. Get all Auth0 clients. Get a Resource Server. Clients parameters. Resource Server parameters. Number of results per page. Page number, zero indexed. Resource Server ID. Get an Auth0 connection. Get all resource servers. Connection parameters. Resource Servers parameters. Connection ID. Number of results per page. Page number, zero indexed. Get all connections. Get an Auth0 role. Connections params. Role parameters. Number of results per page. Page number, zero indexed. Role ID. Get the daily stats. Get all roles. Stats parameters. Roles parameters. The first day in YYYYMMDD format. Number of results per page. The last day in YYYYMMDD format. Page number, zero indexed. Get all Auth0 credentials. Get an Auth0 rule. Callback function. Rule parameters. Get the email provider. Rule ID. Get a single Guardian enrollment. Get all rules. The Guardian enrollment data object. Rules parameters. The Guardian enrollment id. Number of results per page. Page number, zero indexed. Get a list of a user's Guardian enrollments. Get rules config. The user data object. Get the tenant settings.. The user id. Get a job by its ID. Get a user by its id. Job parameters. The user data object. Job ID. The user id. Get an Auth0 log. Get user's log events. Log parameters. Get logs data. Event ID. User id. Number of results per page. Page number, zero indexed. The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. true if a query summary must be included in the result, false otherwise. Default false; Get all logs. Get user's permissions Logs params. Search Criteria using Query String Syntax Page number. Zero based Get permissions data. The amount of entries per page User id. The field to use for sorting. Number of results per page. A comma separated list of fields to include or exclude Page number, zero indexed. true if the fields specified are to be included in the result, false otherwise. The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. true if a query summary must be included in the result, false otherwise. Default false true if a query summary must be included in the result, false otherwise. Default false; Get a Resource Server. Get user's roles Get roles data. User id. Number of results per page. Page number, zero indexed. Resource Server parameters. The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. Resource Server ID. true if a query summary must be included in the result, false otherwise. Default false; Get all resource servers. Get all users. Resource Servers parameters. Users params. The version of the search engine to use. Get an Auth0 rule. Get users for a given email address Rule parameters. Email Address of users to locate Callback function. Get users in a given role Rule ID. Id of the role Get all rules. 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. Rules parameters. Users import data. Number of results per page. Connection for the users insertion. Page number, zero indexed. Path to the users data file. Get rules config. Link the user with another account. ID of the primary user. Get the tenant settings.. Secondary user data. ID of the user to be linked. ID of the connection to be used. Get a user by its id. Generate new Guardian recovery code. Get user's log events. Remove permissions from a role ID of the Role. Get logs data. permissions data User id. Array of permissions Number of results per page. Page number, zero indexed. Name of a permission The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1. Identifier for a resource true if a query summary must be included in the result, false otherwise. Default false; Get all users. Remove permissions from a user Users params. params object user_id The version of the search engine to use. Number of results per page. data object containing list of permission IDs Page number, zero indexed. Array of permission IDs Get users for a given email address Remove roles from a user params object user_id Email Address of users to locate data object containing list of role IDs Array of role IDs 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. Send a verification email to a user. Users import data. User data object. Connection for the users insertion. Path to the users data file. ID of the user to be verified. Link the user with another account. Set a new rules config. Rule Config parameters. Rule Config key. ID of the primary user. Secondary user data. Rule Config Data parameters. ID of the user to be linked. ID of the connection to be used. Rule Config Data value. Generate new Guardian recovery code. Unlink the given accounts. The user data object. Linked users data. The user id. Primary user ID. Identity provider in use. Secondary user ID. Send a verification email to a user. Update the app metadata for a user. User data object. The user data object.. ID of the user to be verified. The user id. New app metadata. Callback function. Callback function Set a new rules config. Update an Auth0 client. Rule Config parameters. Client parameters. Rule Config key. Application client ID. Rule Config Data parameters. Rule Config Data value. Updated client data. Unlink the given accounts. Update an Auth0 client grant. Linked users data. Client parameters. Primary user ID. Client grant ID. Identity provider in use. Secondary user ID. Updated client data. Update the app metadata for a user. Update an existing connection. The user data object.. Connection parameters. The user id. Connection ID. New app metadata. Updated connection data. Callback function Callback function. Update an Auth0 client. Update the email provider. Client parameters. Application client ID. Email provider parameters. Updated client data. Updated email provider data. Update an existing connection. Update an existing resource server. Connection parameters. Resource Server parameters. Connection ID. Resource Server ID. Updated connection data. Updated Resource Server data. Update the email provider. Update an existing role. Email provider parameters. Role parameters. Role ID. Updated email provider data. Updated role data. Update an existing resource server. Update an existing rule. Resource Server parameters. Rule parameters. Resource Server ID. Rule ID. Updated Resource Server data. Updated rule data. Update an existing rule. Update the tenant settings. Rule parameters. Rule ID. Updated rule data. The new tenant settings. Update the tenant settings. Update a user by its id. The user parameters. The user id. The new tenant settings. New user data. Callback function. Callback function Update a user by its id. Update the user metadata for a user. The user parameters. The user data object.. New user data. New user metadata. Update the user metadata for a user. Verify a Custom Domain. The user data object.. Custom Domain parameters. The user id. Custom Domain ID. New user metadata. Callback function Callback function. RolesManager
+The role class provides a simple abstraction for performing CRUD operations
+on Auth0 RolesManager. The client options. The URL of the API. Headers to be included in all requests. Retry Policy Config Provides an abstraction layer for performing CRUD operations on
+Auth0 RolesManagers. Options object for the Rest Client instance. Add permissions in a role ID of the Role. permissions data Array of permissions Name of a permission Identifier for a resource Callback function. Assign roles to a user params object user_id data object containing list of role IDs Array of role IDs Callback function. Assign users to a role ID of the Role. permissions data Array of permissions Name of a permission Identifier for a resource Callback function. Create a new role. Role data object. Callback function. Delete an existing role. Role parameters. Role ID. Callback function. Get an Auth0 role. Role parameters. Role ID. Callback function. Get all roles. Roles parameters. Number of results per page. Page number, zero indexed. Callback function. Get Permissions in a Role Email address of user(s) to find Callback function. Get Users in a Role Email address of user(s) to find Callback function. Remove permissions from a role ID of the Role. permissions data Array of permissions Name of a permission Identifier for a resource Callback function. Remove roles from a user params object user_id data object containing list of role IDs Array of role IDs Callback function. Update an existing role. Role parameters. Role ID. Updated role data. Callback function. Provides an abstraction layer for CRD on permissions directly on a user Provides an abstraction layer for CRD on roles for a user Get a list of permissions for a user. The user data object. The user id. Callback function. Get a list of roles for a user. The user data object. The user id. Callback function.index.js
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html
index 48fdcb021..ca8b9a674 100644
--- a/docs/management_BlacklistedTokensManager.js.html
+++ b/docs/management_BlacklistedTokensManager.js.html
@@ -24,7 +24,7 @@
management/BlacklistedTokensManager.js
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html
index 02d124357..35705ce1a 100644
--- a/docs/management_ClientGrantsManager.js.html
+++ b/docs/management_ClientGrantsManager.js.html
@@ -24,7 +24,7 @@
management/ClientGrantsManager.js
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html
index ee848a5a2..c976734cd 100644
--- a/docs/management_ClientsManager.js.html
+++ b/docs/management_ClientsManager.js.html
@@ -24,7 +24,7 @@
management/ClientsManager.js
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html
index 15c95b0b1..2652dc8d3 100644
--- a/docs/management_ConnectionsManager.js.html
+++ b/docs/management_ConnectionsManager.js.html
@@ -24,7 +24,7 @@
management/ConnectionsManager.js
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html
index 09e419d59..c9ed7853b 100644
--- a/docs/management_CustomDomainsManager.js.html
+++ b/docs/management_CustomDomainsManager.js.html
@@ -24,7 +24,7 @@
management/CustomDomainsManager.js
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html
index f5dc2e012..88683e316 100644
--- a/docs/management_DeviceCredentialsManager.js.html
+++ b/docs/management_DeviceCredentialsManager.js.html
@@ -24,7 +24,7 @@
management/DeviceCredentialsManager.js
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html
index 38f961049..01384f0f8 100644
--- a/docs/management_EmailProviderManager.js.html
+++ b/docs/management_EmailProviderManager.js.html
@@ -24,7 +24,7 @@
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
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html
index b926f4b92..6438643cb 100644
--- a/docs/management_EmailTemplatesManager.js.html
+++ b/docs/management_EmailTemplatesManager.js.html
@@ -24,7 +24,7 @@
management/EmailTemplatesManager.js
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html
new file mode 100644
index 000000000..ccceff56b
--- /dev/null
+++ b/docs/management_GrantsManager.js.html
@@ -0,0 +1,179 @@
+
+
+
+
+
+ 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;
+
+
+
+
+
+
+
+
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html
index fd969d25b..a83fef1f9 100644
--- a/docs/management_GuardianManager.js.html
+++ b/docs/management_GuardianManager.js.html
@@ -24,7 +24,7 @@
management/GuardianManager.js
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html
index 0b1a0388d..9b1f553c9 100644
--- a/docs/management_JobsManager.js.html
+++ b/docs/management_JobsManager.js.html
@@ -24,7 +24,7 @@
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
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html
index 6c9f5b9ea..a1c5c3285 100644
--- a/docs/management_LogsManager.js.html
+++ b/docs/management_LogsManager.js.html
@@ -24,7 +24,7 @@
management/LogsManager.js
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html
index 2b5b18db8..d54e67e7f 100644
--- a/docs/management_ManagementTokenProvider.js.html
+++ b/docs/management_ManagementTokenProvider.js.html
@@ -24,7 +24,7 @@
management/ManagementTokenProvider.js
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html
index 3cfaa5da4..6e22790ed 100644
--- a/docs/management_ResourceServersManager.js.html
+++ b/docs/management_ResourceServersManager.js.html
@@ -24,7 +24,7 @@
management/ResourceServersManager.js
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
+
+
+
+
+
+
+
+
+ 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;
+
+
+
+
+
+
+
+
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html
index 18de21ac5..4164615e5 100644
--- a/docs/management_RulesConfigsManager.js.html
+++ b/docs/management_RulesConfigsManager.js.html
@@ -24,7 +24,7 @@
management/RulesConfigsManager.js
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html
index 8f51c048f..7cde7ef0c 100644
--- a/docs/management_RulesManager.js.html
+++ b/docs/management_RulesManager.js.html
@@ -24,7 +24,7 @@
management/RulesManager.js
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html
index aff6e68c8..93c852667 100644
--- a/docs/management_StatsManager.js.html
+++ b/docs/management_StatsManager.js.html
@@ -24,7 +24,7 @@
management/StatsManager.js
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html
index 2a14fe60a..db15c4e7b 100644
--- a/docs/management_TenantManager.js.html
+++ b/docs/management_TenantManager.js.html
@@ -24,7 +24,7 @@
management/TenantManager.js
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html
index ce0b83bb6..418b10d7e 100644
--- a/docs/management_TicketsManager.js.html
+++ b/docs/management_TicketsManager.js.html
@@ -24,7 +24,7 @@
management/TicketsManager.js
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html
index 76adaeaa4..9f330abbb 100644
--- a/docs/management_UsersManager.js.html
+++ b/docs/management_UsersManager.js.html
@@ -24,7 +24,7 @@
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
diff --git a/docs/management_index.js.html b/docs/management_index.js.html
index 9e4daa584..4d6da6415 100644
--- a/docs/management_index.js.html
+++ b/docs/management_index.js.html
@@ -24,7 +24,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');
@@ -69,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/';
@@ -190,6 +192,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.
@@ -311,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);
};
/**
@@ -599,8 +617,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 +648,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 +670,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 +701,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) {
@@ -703,6 +721,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.
*
@@ -1276,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.
*
@@ -1430,7 +1680,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 +1902,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 +2286,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 +2308,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 +2323,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 +2346,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 +2369,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 +2393,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 +2414,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 +2430,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 +2451,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 +2477,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 +2498,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 +2523,7 @@ management/index.js
* Update Guardian Factor
*
* @method updateGuardianFactor
- * @memberOf module.GuardianManager.prototype
+ * @memberOf module:management.ManagementClient.prototype
*
* management.updateGuardianFactor({ name: 'sms' }, {
* enabled: true
@@ -2235,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;
@@ -2248,7 +2778,7 @@ management/index.js
diff --git a/docs/module-auth.AuthenticationClient.html b/docs/module-auth.AuthenticationClient.html
index fb612176b..86d7d5b8a 100644
--- a/docs/module-auth.AuthenticationClient.html
+++ b/docs/module-auth.AuthenticationClient.html
@@ -24,7 +24,7 @@
Examples
diff --git a/docs/module-auth.DatabaseAuthenticator.html b/docs/module-auth.DatabaseAuthenticator.html
index b7b29e7b2..edaf06cc6 100644
--- a/docs/module-auth.DatabaseAuthenticator.html
+++ b/docs/module-auth.DatabaseAuthenticator.html
@@ -24,7 +24,7 @@
Parameters:
-
+
-
-
-
+
+ Stinrg
+String
@@ -1738,7 +1738,7 @@ Example
diff --git a/docs/module-auth.OAUthWithIDTokenValidation.html b/docs/module-auth.OAUthWithIDTokenValidation.html
index 8697b3777..e9938b53c 100644
--- a/docs/module-auth.OAUthWithIDTokenValidation.html
+++ b/docs/module-auth.OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
Parameters:
diff --git a/docs/module-auth.OAuthAuthenticator.html b/docs/module-auth.OAuthAuthenticator.html
index 1a653544b..53f0c464f 100644
--- a/docs/module-auth.OAuthAuthenticator.html
+++ b/docs/module-auth.OAuthAuthenticator.html
@@ -24,7 +24,7 @@
Returns:
diff --git a/docs/module-auth.PasswordlessAuthenticator.html b/docs/module-auth.PasswordlessAuthenticator.html
index e81cdc6c4..e7917a34b 100644
--- a/docs/module-auth.PasswordlessAuthenticator.html
+++ b/docs/module-auth.PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
Examples
diff --git a/docs/module-auth.TokensManager.html b/docs/module-auth.TokensManager.html
index 97a1daf27..9cce2d10d 100644
--- a/docs/module-auth.TokensManager.html
+++ b/docs/module-auth.TokensManager.html
@@ -24,7 +24,7 @@
Parameters:
diff --git a/docs/module-auth.UsersManager.html b/docs/module-auth.UsersManager.html
index 1b625dd20..384968aae 100644
--- a/docs/module-auth.UsersManager.html
+++ b/docs/module-auth.UsersManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-auth.html b/docs/module-auth.html
index 249e89209..fe29f3866 100644
--- a/docs/module-auth.html
+++ b/docs/module-auth.html
@@ -24,7 +24,7 @@
Classes
diff --git a/docs/module-management.BlacklistedTokensManager.html b/docs/module-management.BlacklistedTokensManager.html
index 0451d5674..7a5b7f786 100644
--- a/docs/module-management.BlacklistedTokensManager.html
+++ b/docs/module-management.BlacklistedTokensManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.ClientGrantsManager.html b/docs/module-management.ClientGrantsManager.html
index dee679a9a..c6582dd4c 100644
--- a/docs/module-management.ClientGrantsManager.html
+++ b/docs/module-management.ClientGrantsManager.html
@@ -24,7 +24,7 @@
Example
- create(data, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- data
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.clientGrants.create(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Client grant created.
-});
delete(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.clientGrants.delete({ id: GRANT_ID }, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Grant deleted.
-});
delete(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.clientGrants.delete({ id: GRANT_ID }, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Grant deleted.
-});
getAll(paramsopt, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- per_page
-
-
-
-
-
- Number
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- page
-
-
-
-
-
- Number
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-
-
-// 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}
getAllSource:
Parameters:
- <optional>
-
@@ -1916,7 +831,7 @@ Parameters:
- Parameters:
Type
- Attributes
-
@@ -1944,70 +857,24 @@ Parameters:
-
-
-
-
-
-
-
- per_page
-
-
-
-
-
- Number
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2102,21 +969,12 @@
+ page
id
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Returns:
Example
-
-
- // 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.
});
Example
- update(params, data, cbopt) → {Promise|undefined}
+ getAll(paramsopt, cbopt) → {Promise|undefined}
updateSource:
Parameters:
+ <optional>
+
@@ -2242,7 +1102,7 @@ Parameters:
- Parameters:
Type
+ Attributes
+
@@ -2268,32 +1130,34 @@ Parameters:
-
+
+ id
per_page
-
+ String
+Number
+
+ <optional>
+
-
+
-
-
-
+
@@ -2302,13 +1166,13 @@ Parameters:
-
+
+
+
+
+
@@ -2414,19 +1288,21 @@
+ data
page
- Object
+Number
@@ -2317,6 +1181,8 @@ Parameters:
+ <optional>
+
@@ -2327,7 +1193,15 @@ Parameters:
-
+ Returns:
Example
- var data = {
- client_id: CLIENT_ID,
- audience: AUDIENCE,
- scope: []
+
+
+ // 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);
});
Example
diff --git a/docs/module-management.ClientsManager.html b/docs/module-management.ClientsManager.html
index 02612947b..e6e53026f 100644
--- a/docs/module-management.ClientsManager.html
+++ b/docs/module-management.ClientsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.ConnectionsManager.html b/docs/module-management.ConnectionsManager.html
index 7ebfbcc77..49b038240 100644
--- a/docs/module-management.ConnectionsManager.html
+++ b/docs/module-management.ConnectionsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.CustomDomainsManager.html b/docs/module-management.CustomDomainsManager.html
index 6c4def656..cd019aa11 100644
--- a/docs/module-management.CustomDomainsManager.html
+++ b/docs/module-management.CustomDomainsManager.html
@@ -24,7 +24,7 @@
Example
create(data, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- data
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.createCustomDomain(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // CustomDomain created.
-});
deleteSource:
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}
deleteSource:
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);
});
Example
- get(params, cbopt) → {Promise|undefined}
+ getAll() → {Promise|undefined}
getSource:
get
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
- if (err) {
- // Handle error.
- }
-
- console.log(customDomain);
-});
get(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.customDomains.get({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
- if (err) {
- // Handle error.
- }
-
- console.log(customDomain);
-});
getAll() → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.getCustomDomains(function (err, customDomains) {
- console.log(customDomains.length);
-});
getAll() → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.customDomains.getAll(function (err, customDomains) {
- console.log(customDomains.length);
-});
verify(params, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
@@ -2574,12 +1437,8 @@
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- 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);
});
Example
diff --git a/docs/module-management.DeviceCredentialsManager.html b/docs/module-management.DeviceCredentialsManager.html
index 01d6666b7..cf109bcaf 100644
--- a/docs/module-management.DeviceCredentialsManager.html
+++ b/docs/module-management.DeviceCredentialsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.EmailProviderManager.html b/docs/module-management.EmailProviderManager.html
index 52441ed0a..2ddc399ed 100644
--- a/docs/module-management.EmailProviderManager.html
+++ b/docs/module-management.EmailProviderManager.html
@@ -24,7 +24,7 @@
deleteSource:
Example
- get(cbopt) → {Promise|undefined}
+ get(cbopt, paramsopt) → {Promise|undefined}
@@ -1022,6 +1022,141 @@ Parameters:
+
+
+
+
+
+
@@ -1123,7 +1258,7 @@
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ fields
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_fields
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ updateSource:
Example
diff --git a/docs/module-management.EmailTemplatesManager.html b/docs/module-management.EmailTemplatesManager.html
index 2495916b4..ade45bd25 100644
--- a/docs/module-management.EmailTemplatesManager.html
+++ b/docs/module-management.EmailTemplatesManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.GrantsManager.html b/docs/module-management.GrantsManager.html
new file mode 100644
index 000000000..99216617b
--- /dev/null
+++ b/docs/module-management.GrantsManager.html
@@ -0,0 +1,1524 @@
+
+
+
+
+
+ GrantsManager
+
+
+
+
+
+
+
+
+ management.
+
+ GrantsManager
+
+
+ Constructor
+
+
+ new GrantsManager(options)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ baseUrl
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ headers
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ retry
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+(inner) auth0RestClient :external:RestClient
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+(inner) clientOptions :Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+Methods
+
+
+
+delete(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_totals
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ audience
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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);
+});
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/module-management.GuardianManager.html b/docs/module-management.GuardianManager.html
index eff768fda..d6bd3438b 100644
--- a/docs/module-management.GuardianManager.html
+++ b/docs/module-management.GuardianManager.html
@@ -24,7 +24,7 @@
Example
createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- cb
-
-
-
-
-
- function
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
- Returns:
-
-
-
-
-
-
-
-
-Example
-
-
-
-management.createGuardianEnrollmentTicket(function (err, ticket) {
- console.log(ticket);
-});
Example
diff --git a/docs/module-management.JobsManager.html b/docs/module-management.JobsManager.html
index a17cf8ff0..c2adbe428 100644
--- a/docs/module-management.JobsManager.html
+++ b/docs/module-management.JobsManager.html
@@ -24,7 +24,7 @@
(inner)
+
+
+
+
Type:
+
+
+
+
+
+
+
+(inner, constant) usersExportsRestClient :external:RestClient
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -419,6 +494,420 @@ Methods
+exportUsers(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ connection_id
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ format
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ limit
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ fields
+
+
+
+
+
+ Array.<Object>
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ 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.jobs.exportUsers(data, function (err, results) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Retrieved job.
+ console.log(results);
+});
getSource:
importUser
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
Example
diff --git a/docs/module-management.LogsManager.html b/docs/module-management.LogsManager.html
index a476b9d52..c15ce93bc 100644
--- a/docs/module-management.LogsManager.html
+++ b/docs/module-management.LogsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.ManagementClient.html b/docs/module-management.ManagementClient.html
index bc804d928..f65be0741 100644
--- a/docs/module-management.ManagementClient.html
+++ b/docs/module-management.ManagementClient.html
@@ -24,7 +24,7 @@
new M
blac
clientGra
clientsSource:
connection
customDo
devi
emailPro
emailTe
Type:
+grants :GrantsManager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
guardianSource:
jobsSource:
logsSource:
resour
Type:
+roles :RolesManager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
rulesSource:
rulesConf
statsSource:
tenantSource:
ticketsSource:
usersSource:
Methods
- blacklistToken(token, cbopt) → {Promise|undefined}
+ addPermissionsInRole(data, cbopt) → {Promise|undefined}
blackli
Parameters:
-
+
+
+
+
+ token
+
+
+ params.id
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
@@ -2147,7 +2331,7 @@ Parameters:
- Parameters:
-
@@ -2311,17 +2546,11 @@
+ aud
permissions
@@ -2190,7 +2374,50 @@ Parameters:
-
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
@@ -2199,7 +2426,7 @@
+
+
+ permission_name
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
Parameters:
-
+
+
+
+
+ jti
resource_server_identifier
@@ -2216,7 +2443,15 @@ Parameters:
-
+ 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);
});
Example
- configureEmailProvider(data, cbopt) → {Promise|undefined}
+ assignPermissionsToUser(params, data, cbopt) → {Promise|undefined}
Source:
Parameters:
-
-
-
+
-
+ data
params
@@ -2447,43 +2676,50 @@ Parameters:
-
-
-
-
-
+cb
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
@@ -2492,129 +2728,42 @@ id
-
- function
+String
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
Returns:
-
-
-
-
-
-
+
+
+ Example
-
-
-
-management.configureEmailProvider(data, function (err) {
- if (err) {
- // Handle error.
- }
-
- // Email provider configured.
-});
+
+
@@ -2752,12 +2899,15 @@
-data
createClient(data, cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
- Parameters:
-
+
+
@@ -2626,8 +2775,6 @@
- Parameters:
Type
- Attributes
-
@@ -2640,32 +2787,32 @@ Parameters:
-
-
+
+
+
+ data
permissions
-
- Object
+String
-
-
+
+
+
-
+
+
-
Returns:
Example
- management.createClient(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.
}
- // Client created.
+ // User assigned permissions.
});
Example
- createConnection(data, cbopt) → {Promise|undefined}
+ assignRolestoUser(params, data, cbopt) → {Promise|undefined}
creat
Parameters:
-
+
+
+
+ data
params
@@ -2883,43 +3033,50 @@ Parameters:
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Name
+
+
+ Type
+
+
+
+
+
+ Description
+
-
@@ -2928,6 +3085,136 @@
+ cb
id
-
- function
+String
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2940,7 +3227,6 @@
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
-
Returns:
@@ -2970,12 +3256,15 @@ Returns:
Example
- management.createConnection(data, function (err) {
+
var parms = { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
+
+management.assignRolestoUser(params, data, function (err) {
if (err) {
// Handle error.
}
- // Conection created.
+ // User assigned roles.
});
Example
- createDevicePublicKey(data, cbopt) → {Promise|undefined}
+ blacklistToken(token, cbopt) → {Promise|undefined}
Parameters:
-
@@ -3188,12 +3554,17 @@
+ data
token
@@ -3101,7 +3390,84 @@ Parameters:
-
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ aud
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jti
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+ Returns:
Example
- management.createConnection(data, function (err) {
+
var token = {
+ aud: 'aud',
+ jti: 'jti'
+};
+
+management.blacklistToken(token, function (err) {
if (err) {
// Handle error.
}
- // Credential created.
+ // Token blacklisted.
});
Example
- createEmailVerificationTicket(cbopt) → {Promise}
+ configureEmailProvider(data, cbopt) → {Promise|undefined}
Source:
Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3355,6 +3760,9 @@ cb
Returns:
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.configureEmailProvider(data, function (err) {
if (err) {
// Handle error.
}
+
+ // Email provider configured.
});
Example
- createPasswordChangeTicket(cbopt) → {Promise}
+ createClient(data, cbopt) → {Promise|undefined}
Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3776,12 +4213,12 @@
@@ -3539,6 +3978,9 @@ cb
Returns:
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.createClient(data, function (err) {
if (err) {
// Handle error.
}
+
+ // Client created.
});
Example
- createResourceServer(data, cbopt) → {Promise|undefined}
+ createClientGrant(data, cbopt) → {Promise|undefined}
c
Parameters:
-
Returns:
Example
- management.createResourceServer(data, function (err) {
+
management.clientGrants.create(data, function (err) {
if (err) {
// Handle error.
}
- // Resource Server created.
+ // Client grant created.
});
Example
- createRule(data, cbopt) → {Promise|undefined}
+ createConnection(data, cbopt) → {Promise|undefined}
createRule<
Parameters:
-
@@ -3994,12 +4431,12 @@ Returns:
Example
- management.createRule(data, function (err) {
+
management.createConnection(data, function (err) {
if (err) {
// Handle error.
}
- // Rule created.
+ // Conection created.
});
Example
- createUser(data, cbopt) → {Promise|undefined}
+ createCustomDomain(data, cbopt) → {Promise|undefined}
createUser<
Parameters:
-
@@ -4212,12 +4649,12 @@ Returns:
Example
- management.createUser(data, function (err) {
+
management.createCustomDomain(data, function (err) {
if (err) {
// Handle error.
}
- // User created.
+ // CustomDomain created.
});
Example
- deleteAllUsers(cbopt) → {Promise|undefined}
+ createDevicePublicKey(data, cbopt) → {Promise|undefined}
deleteA
-
deleteA
Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4398,12 +4867,12 @@
@@ -4347,7 +4816,7 @@ cb
Parameters:
-
Returns:
Example
- management.deleteAllUsers(function (err) {
+
management.createConnection(data, function (err) {
if (err) {
// Handle error.
}
- // Users deleted
+ // Credential created.
});
Example
- deleteClient(params, cbopt) → {Promise|undefined}
+ createEmailVerificationTicket(cbopt) → {Promise}
deleteCli
Parameters:
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- client_id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
-
-
@@ -4650,9 +5034,6 @@ cb
Returns:
Returns:
Example
- management.deleteClient({ client_id: CLIENT_ID }, 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.
}
-
- // Client deleted.
});
Example
- deleteConnection(params, cbopt) → {Promise|undefined}
+ createGuardianEnrollmentTicket(cbopt) → {Promise|undefined}
delet
Parameters:
-
-
+ params
cb
- Object
+function
@@ -4788,6 +5172,8 @@ Parameters:
+ <optional>
+
@@ -4798,62 +5184,155 @@ Parameters:
-
+
-
-
-
-
- Name
-
+
+
+Type
-
-
- Description
-
-
-
+
+
+
-
- id
-
-
-
-
+
+
+
+String
-
- Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.createGuardianEnrollmentTicket(function (err, ticket) {
+ console.log(ticket);
+});
-
- createPasswordChangeTicket(cbopt) → {Promise}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
@@ -6919,47 +7205,13 @@
+
+
+
+
+
Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
@@ -4919,9 +5398,6 @@ Returns:
Returns:
Example
- management.deleteConnection({ id: CONNECTION_ID }, 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.
}
-
- // Conection deleted.
});
Example
- deleteDeviceCredential(params, cbopt) → {Promise|undefined}
+ createResourceServer(data, cbopt) → {Promise|undefined}
Source:
Parameters:
-
@@ -5205,14 +5635,12 @@
+ params
data
@@ -5067,58 +5548,7 @@ Parameters:
-
-
-
-
+
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
- Returns:
Example
- var params = { id: CREDENTIAL_ID };
-
-management.deleteDeviceCredential(params, function (err) {
+
management.createResourceServer(data, function (err) {
if (err) {
// Handle error.
}
- // Credential deleted.
+ // Resource Server created.
});
Example
- deleteEmailProvider(cbopt) → {Promise|undefined}
+ createRole(data, cbopt) → {Promise|undefined}
de
Parameters:
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -5660,12 +6072,12 @@
@@ -5391,12 +5853,13 @@ cb
Returns:
Example
- management.deleteEmailProvider(function (err) {
+
data = {"name": "test1","description": "123"}
+management.createRole(data, function (err) {
if (err) {
// Handle error.
}
- // Email provider deleted.
+ // Role created.
});
Example
- deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}
+ createRule(data, cbopt) → {Promise|undefined}
Source:
Parameters:
-
-
-
-
+
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
- Returns:
Example
- management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
+
management.createRule(data, function (err) {
if (err) {
// Handle error.
}
- // Email provider deleted.
+ // Rule created.
});
Example
- deleteResourceServer(params, cbopt) → {Promise|undefined}
+ createUser(data, cbopt) → {Promise|undefined}
d
Parameters:
-
@@ -5929,12 +6290,12 @@
+ params
data
@@ -5791,58 +6203,7 @@ Parameters:
-
-
-
-
+
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
- Returns:
Example
- management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+
management.createUser(data, function (err) {
if (err) {
// Handle error.
}
- // Resource Server deleted.
+ // User created.
});
Example
- deleteRule(params, cbopt) → {Promise|undefined}
+ deleteAllUsers(cbopt) → {Promise|undefined}
deleteRule<
+
deleteRule<
Parameters:
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
@@ -6198,12 +6476,12 @@
@@ -6147,7 +6425,7 @@ cb
Parameters:
-
Returns:
Example
- auth0.deleteRule({ id: RULE_ID }, function (err) {
+
management.deleteAllUsers(function (err) {
if (err) {
// Handle error.
}
- // Rule deleted.
+ // Users deleted
});
Example
- deleteRulesConfig(params, cbopt) → {Promise|undefined}
+ deleteClient(params, cbopt) → {Promise|undefined}
dele
+Parameters:
- Parameters:
-
@@ -6467,12 +6745,12 @@
+ key
client_id
@@ -6372,7 +6650,7 @@ Parameters:
-
Returns:
Example
- management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+
management.deleteClient({ client_id: CLIENT_ID }, function (err) {
if (err) {
// Handle error.
}
- // Rules Config deleted.
+ // Client deleted.
});
Example
- deleteUser(params, cbopt) → {Promise|undefined}
+ deleteClientGrant(params, cbopt) → {Promise|undefined}
deleteUser<
Parameters:
- Parameters:
-
@@ -6685,7 +6963,7 @@ Parameters:
-
@@ -6736,12 +7014,12 @@ Returns:
Example
- management.deleteUser({ id: USER_ID }, function (err) {
+
management.clientGrants.delete({ id: GRANT_ID }, function (err) {
if (err) {
// Handle error.
}
- // User deleted.
+ // Grant deleted.
});
Example
- deleteUserMultifactor(params, cbopt) → {Promise|undefined}
+ deleteConnection(params, cbopt) → {Promise|undefined}
Parameters:
- Parameters:
-
+
+
+
+ Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
+ provider
cb
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
@@ -7031,14 +7283,12 @@
-
-
- cb
-
-
- function
+function
@@ -6980,7 +7232,7 @@ Parameters:
-
Returns:
Example
- var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifactor(params, function (err, user) {
+
management.deleteConnection({ id: CONNECTION_ID }, function (err) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ // Conection deleted.
});
Example
- deleteUserMultifcator(params, cbopt) → {Promise|undefined}
+ deleteCustomDomain(params, cbopt) → {Promise|undefined}
-
Parameters:
- Parameters:
-
-
-
-
-
-
-
-
@@ -7281,7 +7501,7 @@
-
-
- provider
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
Parameters:
-
@@ -7332,14 +7552,12 @@ Returns:
Example
- var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
-
-management.deleteUserMultifcator(params, function (err, user) {
+
management.deleteCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ // CustomDomain deleted.
});
Example
- getActiveUsersCount(cbopt) → {Promise|undefined}
+ deleteDeviceCredential(params, cbopt) → {Promise|undefined}
ge
Parameters:
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -7518,12 +7821,14 @@ cb
Returns:
Example
- management.getActiveUsersCount(function (err, usersCount) {
+
var params = { id: CREDENTIAL_ID };
+
+management.deleteDeviceCredential(params, function (err) {
if (err) {
// Handle error.
}
- console.log(usersCount);
+ // Credential deleted.
});
Example
- getBlacklistedTokens(cbopt) → {Promise|undefined}
+ deleteEmailProvider(cbopt) → {Promise|undefined}
g
Returns:
Example
- management.getBlacklistedTokens(function (err, tokens) {
- console.log(tokens.length);
+
management.deleteEmailProvider(function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Email provider deleted.
});
Example
- getClient(params, cbopt) → {Promise|undefined}
+ deleteGuardianEnrollment(data, cbopt) → {Promise|undefined}
getClient
Parameters:
-
+ params
data
@@ -7829,7 +8138,7 @@ Parameters:
- Parameters:
-
@@ -7967,12 +8276,12 @@
+ client_id
id
@@ -7872,7 +8181,7 @@ Parameters:
-
Returns:
Example
- management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+
management.deleteGuardianEnrollment({ id: ENROLLMENT_ID }, function (err) {
if (err) {
// Handle error.
}
- console.log(client);
+ // Email provider deleted.
});
Example
- getClientInfo() → {Object}
+ deleteResourceServer(params, cbopt) → {Promise|undefined}
getClien
Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.deleteResourceServer({ id: RESOURCE_SERVER_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Resource Server deleted.
+});
deleteRole(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.deleteRole({ id: ROLE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role deleted.
+});
deleteRule(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+auth0.deleteRule({ id: RULE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Rule deleted.
+});
deleteRulesConfig(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ key
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.deleteRulesConfig({ key: RULE_CONFIG_KEY }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Rules Config deleted.
+});
deleteUser(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.deleteUser({ id: USER_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User deleted.
+});
deleteUserMultifactor(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
+
+management.deleteUserMultifactor(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
+});
deleteUserMultifcator(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER };
+
+management.deleteUserMultifcator(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
+});
exportUsers(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ connection_id
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ format
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ limit
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ fields
+
+
+
+
+
+ Array.<Object>
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ 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) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Retrieved job.
+ console.log(results);
+});
getActiveUsersCount(cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getActiveUsersCount(function (err, usersCount) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(usersCount);
+});
getBlacklistedTokens(cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getBlacklistedTokens(function (err, tokens) {
+ console.log(tokens.length);
+});
getClient(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getClient({ client_id: CLIENT_ID }, function (err, client) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(client);
+});
getClientGrants(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+// Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
+
+management.getClientGrants(params, function (err, grants) {
+ console.log(grants.length);
+});
getClientInfo() → {Object}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+getClients(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+// Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
+
+management.getClients(params, function (err, clients) {
+ console.log(clients.length);
+});
getConnection(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(connection);
+});
getConnections(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+// Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
+
+management.getConnections(params, function (err, connections) {
+ console.log(connections.length);
+});
getCustomDomain(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getCustomDomain({ id: CUSTOM_DOMAIN_ID }, function (err, customDomain) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(customDomain);
+});
getCustomDomains() → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getCustomDomains(function (err, customDomains) {
+ console.log(customDomains.length);
+});
getDailyStats(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ from
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ to
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ 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) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(stats);
+});
getDeviceCredentials(cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getDeviceCredentials(function (err, credentials) {
+ console.log(credentials.length);
+});
getEmailProvider(cbopt, paramsopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ fields
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_fields
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getEmailProvider(function (err, provider) {
+ console.log(provider.length);
+});
getGrants(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_totals
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ user_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ client_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ audience
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
+ console.log(enrollment);
+});
getGuardianEnrollments(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
+ console.log(enrollments);
+});
getJob(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+var params = {
+ id: '{JOB_ID}'
+};
+
+management.getJob(params, function (err, job) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Retrieved job.
+ console.log(job);
+});
getLog(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.getLog({ id: EVENT_ID }, function (err, log) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(log);
+});
getLogs(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ q
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sort
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ fields
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_fields
+
+
+
+
+
+ Boolean
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include_totals
+
+
+
+
+
+ Boolean
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+// Pagination settings.
+var params = {
+ per_page: 10,
+ page: 2
+};
+
+management.getLogs(params, function (err, logs) {
+ console.log(logs.length);
+});
getPermissionsInRole(roleIdopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
@@ -8069,22 +15990,38 @@
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ roleId
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+ function
-
-
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+ Returns:
Examples
+
+
+
+
+
+ var params = { id :'ROLE_ID'};
+
+management.getPermissionsInRole(params, function (err, permissions) {
+ console.log(permissions);
+});
Returns:
- getClients(paramsopt, cbopt) → {Promise|undefined}
+ getResourceServer(params, cbopt) → {Promise|undefined}
getClients<
Parameters:
- <optional>
-
@@ -8208,7 +16143,7 @@ Parameters:
- Parameters:
Type
- Attributes
-
@@ -8236,70 +16169,24 @@ Parameters:
-
-
-
-
-
-
-
- per_page
-
-
-
-
-
- Number
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -8394,20 +16281,12 @@
+ page
id
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
-};
+
management.getResourceServer({ id: RESOURCE_SERVER_ID }, function (err, resourceServer) {
+ if (err) {
+ // Handle error.
+ }
-management.getClients(params, function (err, clients) {
- console.log(clients.length);
+ console.log(resourceServer);
});
Example
- getConnection(params, cbopt) → {Promise|undefined}
+ getResourceServers(paramsopt, cbopt) → {Promise|undefined}
getConne
Parameters:
+ <optional>
+
@@ -8533,7 +16414,7 @@ Parameters:
- Parameters:
Type
+ Attributes
+
@@ -8559,24 +16442,70 @@ Parameters:
-
+
+
+
+
+ id
per_page
-
+ String
+Number
+
+ <optional>
+
+
+
+
+
+
+
-
+
+
+
@@ -8671,12 +16600,20 @@
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
Example
- management.getConnection({ id: CONNECTION_ID }, function (err, connection) {
- if (err) {
- // Handle error.
- }
+
+
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
- console.log(connection);
+management.getResourceServers(params, function (err, resourceServers) {
+ console.log(resourceServers.length);
});
Example
- getConnections(paramsopt, cbopt) → {Promise|undefined}
+ getRole(params, cbopt) → {Promise|undefined}
getConn
Parameters:
- <optional>
-
@@ -8804,7 +16739,7 @@ Parameters:
- Parameters:
Type
- Attributes
-
@@ -8832,70 +16765,24 @@ Parameters:
-
-
-
-
-
-
-
- per_page
-
-
-
-
-
- Number
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -8990,20 +16877,12 @@
+ page
id
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
-};
+
management.getRole({ id: ROLE_ID }, function (err, role) {
+ if (err) {
+ // Handle error.
+ }
-management.getConnections(params, function (err, connections) {
- console.log(connections.length);
+ console.log(role);
});
Example
- getDailyStats(params, cbopt) → {Promise|undefined}
+ getRoles(paramsopt, cbopt) → {Promise|undefined}
getDaily
Parameters:
+ <optional>
+
@@ -9129,7 +17010,7 @@ Parameters:
- Parameters:
Type
+ Attributes
+
@@ -9155,24 +17038,34 @@ Parameters:
-
@@ -9181,24 +17074,34 @@
+ from
per_page
-
+ String
+Number
+
+ <optional>
+
+
+
+
+
+
+
-
Parameters:
-
@@ -9293,17 +17196,20 @@
+ to
page
-
+ String
+Number
+
+ <optional>
+
+
+
+
+
+
+
-
Returns:
Example
- var params = {
- from: '{YYYYMMDD}', // First day included in the stats.
- to: '{YYYYMMDD}' // Last day included in the stats.
+
+
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
};
-management.getDaily(params, function (err, stats) {
- if (err) {
- // Handle error.
- }
-
- console.log(stats);
+management.getRoles(params, function (err, roles) {
+ console.log(roles.length);
});
Example
- getDeviceCredentials(cbopt) → {Promise|undefined}
+ getRule(params, cbopt) → {Promise|undefined}
g
Parameters:
-
-
-
-
+ cb
params
- function
+Object
@@ -9419,8 +17325,6 @@ Parameters:
- <optional>
-
@@ -9431,155 +17335,62 @@ Parameters:
-
- Returns:
+
+
+
+
-
-
-
+
+
-
-
+
-
-
-
-
-
+ Type
-
-Example
-
-
-
-management.getDeviceCredentials(function (err, credentials) {
- console.log(credentials.length);
-});
getEmailProvider(cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Description
+
+
+
-
+
+ id
+
+
+
+
+
+ String
+
+
+
+ Parameters:
+
+
-
-
-
-
-
+
+
+
-
Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
@@ -9662,8 +17473,12 @@ Returns:
Example
- management.getEmailProvider(function (err, provider) {
- console.log(provider.length);
+
management.getRule({ id: RULE_ID }, function (err, rule) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(rule);
});
Example
- getGuardianEnrollment(data, cbopt) → {Promise|undefined}
+ getRules(paramsopt, cbopt) → {Promise|undefined}
Parameters:
-
+ data
params
@@ -9779,6 +17594,8 @@ Parameters:
+ <optional>
+
@@ -9789,7 +17606,7 @@ Parameters:
- Parameters:
Type
+ Attributes
+
@@ -9815,24 +17634,70 @@ Parameters:
-
+
+
+
+
+ id
per_page
-
+ String
+Number
+
+ <optional>
+
+
+
+
+
+
+
-
+
+
+
@@ -9927,8 +17792,20 @@
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
Example
- management.getGuardianEnrollment({ id: ENROLLMENT_ID }, function (err, enrollment) {
- console.log(enrollment);
+
+
+ // Pagination settings.
+var params = {
+ per_page: 10,
+ page: 0
+};
+
+management.getRules(params, function (err, rules) {
+ console.log(rules.length);
});
Example
- getGuardianEnrollments(data, cbopt) → {Promise|undefined}
+ getRulesConfigs() → {Promise|undefined}
Source:
Parameters:
-
-
-
-
-
-
-
-
+
- Name
-
- Type
-
- Attributes
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
- Description
-
-
-
-
- data
-
-
-
+ Object
+Example
-
- management.getRulesConfigs(function (err, rulesConfigs) {
+ if (err) {
+ // Handle error.
+ }
-
-
-
+ // Get Rules Configs.
+});
-
+
-
-
+
+
+
- getTenantSettings(cbopt) → {Promise|undefined}
-
-
-
-
-
-
-
+
+
+
+Name
-
+
- Type
-
-
+Description
-
+
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
- id
-
-
-
+
-
+
-
+
- String
+
+
-
-
-
- Parameters:
+
+
+
+
+
+
-
-
-
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
-
-
-Description
+
+
+
@@ -10192,8 +18104,12 @@
+
+
+
+ Returns:
Example
- management.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
- console.log(enrollments);
+
management.getSettings(function (err, settings) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(settings);
});
Example
- getJob(params, cbopt) → {Promise|undefined}
+ getUser(data, cbopt) → {Promise|undefined}
getJobSource:
Parameters:
-
@@ -10457,17 +18373,8 @@
+ params
data
@@ -10319,7 +18235,7 @@ Parameters:
- Parameters:
-
Returns:
Example
- var params = {
- id: '{JOB_ID}'
-};
-
-management.getJob(params, function (err, job) {
- if (err) {
- // Handle error.
- }
-
- // Retrieved job.
- console.log(job);
+
management.getUser({ id: USER_ID }, function (err, user) {
+ console.log(user);
});
Example
- getLog(params, cbopt) → {Promise|undefined}
+ getUserLogs(params, cbopt) → {Promise|undefined}
getLogSource:
Parameters:
- Parameters:
-
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sort
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
@@ -10731,12 +18742,14 @@
+
+
+ include_totals
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
Returns:
Example
- management.getLog({ id: EVENT_ID }, function (err, log) {
+
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(log);
+ console.log(logs);
});
Example
- getLogs(paramsopt, cbopt) → {Promise|undefined}
+ getUserPermissions(params, cbopt) → {Promise|undefined}
getLogsSource:
Parameters:
Attributes
-
-
- Description
-
-
-
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
-
-
+
-
-
- q
-
-
-
-
-
- String
-
-
-
-
-
- <optional>
-
-
-
+
-
-
-
-
-
-
-
-
- Description
+
+
+
-
+
+
+
+ page
params
- Number
+Object
@@ -10943,8 +18865,6 @@ Parameters:
- <optional>
-
@@ -10955,43 +18875,50 @@ Parameters:
-
-
+
+
+
+
+
+
Name
+
+
+ Type
+
+
+
+
+
+ Description
+
-
@@ -11000,34 +18927,24 @@
+ per_page
id
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
-
@@ -11036,34 +18953,24 @@
+ sort
per_page
-
- String
+Number
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
-
@@ -11072,34 +18979,24 @@
+ fields
page
-
- String
+Number
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
-
@@ -11121,21 +19018,11 @@
+ include_fields
sort
-
- Boolean
+String
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
-
-
- <optional>
-
-
-
-
-
-
-
-
@@ -11230,20 +19117,14 @@ Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 2
-};
+
var params = { id: USER_ID, page: 0, per_page: 50, sort: 'date:-1', include_totals: true };
-management.getLogs(params, function (err, logs) {
- console.log(logs.length);
+management.getUserPermissions(params, function (err, logs) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(logs);
});
Example
- getResourceServer(params, cbopt) → {Promise|undefined}
+ getUserRoles(params, cbopt) → {Promise|undefined}
getR
Parameters:
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
@@ -12101,14 +20297,18 @@
+
+
+ sort
+
+
+
+
String
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
Name
-
-
- Type
-
-
-
-
-
- Description
-
-
@@ -11507,12 +19492,14 @@
+ id
include_totals
- String
+Boolean
@@ -11412,7 +19397,7 @@ Parameters:
-
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.getUserRoles(params, function (err, logs) {
if (err) {
// Handle error.
}
- console.log(resourceServer);
+ console.log(logs);
});
Example
- getResourceServers(paramsopt, cbopt) → {Promise|undefined}
+ getUsers(paramsopt, cbopt) → {Promise|undefined}
get
Parameters:
-
+ Parameters:
+
+
+
+
+
+
+
+ search_engine
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -11834,12 +19857,13 @@ per_page
Example
@@ -11851,14 +19875,14 @@ // Pagination settings.
var params = {
+ search_engine: 'v3',
per_page: 10,
page: 0
};
-management.getResourceServers(params, function (err, resourceServers) {
- console.log(resourceServers.length);
+auth0.getUsers(params, function (err, users) {
+ console.log(users.length);
});
Example
- getRule(params, cbopt) → {Promise|undefined}
+ getUsersByEmail(emailopt, cbopt) → {Promise|undefined}
getRuleSource:
Parameters:
-
+
+
+
+
+ params
email
- Object
+String
@@ -11955,6 +19979,8 @@ Parameters:
+ <optional>
+
@@ -11965,9 +19991,175 @@ Parameters:
-
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+auth0.getUsersByEmail(email, function (err, users) {
+ console.log(users);
+});
getUsersInRole(roleIdopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
@@ -11979,6 +20171,8 @@
+
+ Parameters:
Type
+ Attributes
+
@@ -11991,7 +20185,7 @@ Parameters:
-
+
+
-
-
-
+ id
roleId
@@ -12004,19 +20198,21 @@
+ Parameters:
+
+ <optional>
+
-
+
-
-
-
+
Returns:
Example
+Examples
- management.getRule({ id: RULE_ID }, function (err, rule) {
- if (err) {
- // Handle error.
- }
+
- console.log(rule);
+
+
+ var params = { id :'ROLE_ID'};
management.getUsersInRole(params, function (err, users) {
+ console.log(users);
});
Example
- getRules(paramsopt, cbopt) → {Promise|undefined}
+ importUsers(data, cbopt) → {Promise|undefined}
getRulesSource:
Parameters:
-
+ params
data
@@ -12224,8 +20425,6 @@ Parameters:
- <optional>
-
@@ -12236,7 +20435,7 @@ Parameters:
- Parameters:
Type
- Attributes
-
@@ -12264,34 +20461,24 @@ Parameters:
-
@@ -12300,34 +20487,24 @@
+ per_page
connectionId
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Parameters:
-
@@ -12422,20 +20599,15 @@
+ page
users
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Returns:
Example
-
-
- // Pagination settings.
-var params = {
- per_page: 10,
- page: 0
+
var params = {
+ connection_id: '{CONNECTION_ID}',
+ users: '{PATH_TO_USERS_FILE}'
};
-management.getRules(params, function (err, rules) {
- console.log(rules.length);
+management.get(params, function (err) {
+ if (err) {
+ // Handle error.
+ }
});
Example
- getRulesConfigs() → {Promise|undefined}
+ linkUsers(userId, params, cbopt) → {Promise|undefined}
getRul
getRul
+
Parameters:
+
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
+
+
+
+
+
-
-
+
+
-
+
-
+
+ Description
+
+
+
+
+
+ userId
+
+
+
- // Get Rules Configs.
-});
+
+ String
-Example
- management.getRulesConfigs(function (err, rulesConfigs) {
- if (err) {
- // Handle error.
- }
+
+
+
-
+
-
-
+
+
-getTenantSettings(cbopt) → {Promise|undefined}
+
+
+
+
+
@@ -13571,13 +21772,13 @@
+
-
-params
+
+
+
+
+ Object
+
+
+
+
-
+
-
+
-
+
+
+
+
+
+
-
+
+
+
+
-
+ Name
+
-
+ Type
-
+
-
+
-
+ Description
+
+
+
-
-
+
+
-
+ user_id
+
+
+
-
- String
-
-
+
+
+
+
+
+
-
+
+ connection_id
+
+
+
+
+
+ String
+
+
+
+ Parameters:
+
+
-
-
-
-
-
-
+
+
+
-
Name
-
-
- Type
-
-
- Attributes
-
-
-
-
- Description
-
@@ -12734,12 +20931,18 @@
+Returns:
Example
- management.getSettings(function (err, settings) {
+
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.
}
- console.log(settings);
+ // Users linked.
});
Example
- getUser(data, cbopt) → {Promise|undefined}
+ regenerateRecoveryCode(data, cbopt) → {Promise|undefined}
getUserSource:
Returns:
Example
- management.getUser({ id: USER_ID }, function (err, user) {
- console.log(user);
+
management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
+ console.log(newRecoveryCode);
});
Example
- getUserLogs(params, cbopt) → {Promise|undefined}
+ removePermissionsFromRole(data, cbopt) → {Promise|undefined}
getUserLog
Parameters:
-
+
+
+
+
+ params
+
+
+ params.id
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
@@ -13130,7 +21367,7 @@ Parameters:
- Parameters:
-
-
-
-
-
+ id
permissions
@@ -13173,48 +21410,39 @@ Parameters:
-
-
-
-
-
-
- per_page
-
+ Number
+
+
+
+
-
+
+
+ Name
+
-
-
+ Type
-
+
-
+
-
-
- Description
+
+
+
-
@@ -13234,7 +21462,7 @@
+ page
permission_name
- Number
+String
@@ -13225,7 +21453,7 @@ Parameters:
-
Parameters:
-
+
+
+ sort
resource_server_identifier
@@ -13251,33 +21479,15 @@ Parameters:
-
-
-
@@ -13372,14 +21582,11 @@
-
-
- include_totals
-
-
-
-
-
-
-
-
- Boolean
-
-
-
-
-
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.
- }
+
var params = { id :'ROLE_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
- console.log(logs);
+management.removePermissionsFromRole(params, data, function (err, permissions) {
+ console.log(permissions);
});
Example
- getUsers(paramsopt, cbopt) → {Promise|undefined}
+ removePermissionsFromUser(params, data, cbopt) → {Promise|undefined}
getUsersSource:
Parameters:
- <optional>
-
@@ -13507,7 +21712,7 @@ Parameters:
- Parameters:
Type
- Attributes
-
@@ -13535,34 +21738,32 @@ Parameters:
-
-
+
+
+ search_engine
id
-
- Number
+String
-
- <optional>
-
-
+
+
+
-
+
+
-
Parameters:
-
+
+
+
+ per_page
data
- Number
+String
@@ -13586,8 +21787,6 @@ Parameters:
- <optional>
-
@@ -13598,43 +21797,50 @@ Parameters:
-
-
+
+
-
+
+
+
+
Name
+
+
+ Type
+
+
+
+
+
+ Description
+
-
@@ -13729,21 +21935,15 @@
+ page
permissions
-
- Number
+String
-
- <optional>
-
-
-
-
-
-
-
-
Returns:
Example
-
-
- // Pagination settings.
-var params = {
- search_engine: 'v3',
- per_page: 10,
- page: 0
-};
+
var parms = { id : 'USER_ID'};
+var data = { "permissions" : [{"permission_name" :"do:something" ,"resource_server_identifier" :"test123" }]};
-auth0.getUsers(params, function (err, users) {
- console.log(users.length);
+management.removePermissionsFromUser(params, data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User assigned permissions.
});
Example
- getUsersByEmail(emailopt, cbopt) → {Promise|undefined}
+ removeRolesFromUser(params, data, cbopt) → {Promise|undefined}
getUse
Parameters:
-
+
+
+
+
+ email
params
- String
+Object
@@ -13859,7 +22059,90 @@ Parameters:
- <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
@@ -13958,13 +22292,15 @@
+
+
+ data
+
+
+
+
+
+ String
+
+
+
+
@@ -13871,7 +22154,58 @@ Parameters:
-
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+ Returns:
Example
-
-
- auth0.getUsersByEmail(email, function (err, users) {
- console.log(users);
+
var parms = { id : 'USER_ID'};
+var data = { "roles" :["role1"]};
+
+management.removeRolesFromUser(params, data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // User assigned roles.
});
Example
- importUsers(data, cbopt) → {Promise|undefined}
+ sendEmailVerification(data, cbopt) → {Promise|undefined}
importUser
Parameters:
- Parameters:
-
-
-
-
-
-
-
- connectionId
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
@@ -14256,11 +22565,10 @@
+ users
user_id
@@ -14160,7 +22469,7 @@ Parameters:
-
Returns:
Example
var params = {
- connection_id: '{CONNECTION_ID}',
- users: '{PATH_TO_USERS_FILE}'
+ user_id: '{USER_ID}'
};
-management.get(params, function (err) {
+management.sendEmailVerification(function (err) {
if (err) {
// Handle error.
}
@@ -14275,14 +22583,14 @@
Example
- linkUsers(userId, params, cbopt) → {Promise|undefined}
+ setRulesConfig(params, data, cbopt) → {Promise|undefined}
linkUsers
Parameters:
Type
- Attributes
-
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
@@ -14398,7 +22757,7 @@
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Name
+
+
+ Type
+
+
@@ -14364,7 +22723,7 @@ Parameters:
-
-
+
+
+
+ userId
key
@@ -14377,19 +22736,19 @@
- Parameters:
-
-
+
+
+
-
+
+
-
Parameters:
-
+ params
data
@@ -14423,7 +22782,7 @@ Parameters:
- Parameters:
-
-
-
-
-
-
-
- user_id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
@@ -14587,18 +22920,15 @@
+ connection_id
value
@@ -14492,7 +22825,7 @@ Parameters:
-
Returns:
Example
- var userId = 'USER_ID';
-var params = {
- user_id: 'OTHER_USER_ID',
- connection_id: 'CONNECTION_ID'
-};
+
var params = { key: RULE_CONFIG_KEY };
+var data = { value: RULES_CONFIG_VALUE };
-management.linkUsers(userId, params, function (err, user) {
+management.setRulesConfig(params, data, function (err, rulesConfig) {
if (err) {
// Handle error.
}
- // Users linked.
+ // Rules Config set.
});
Example
- regenerateRecoveryCode(data, cbopt) → {Promise|undefined}
+ unlinkUsers(params, cbopt) → {Promise|undefined}
Source:
+Parameters:
-
+
+
+
+
+ data
params
@@ -14724,7 +23054,7 @@ Parameters:
- Parameters:
-
+
+
+
+
+
+
+
+
+
+ provider
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
@@ -14862,8 +23244,14 @@
+
+
+ user_id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
Returns:
Example
- management.regenerateRecoveryCode({ id: USER_ID }, function (err, newRecoveryCode) {
- console.log(newRecoveryCode);
+
var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+
+management.unlinkUsers(params, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Users accounts unlinked.
});
Example
- sendEmailVerification(data, cbopt) → {Promise|undefined}
+ updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}
Parameters:
-
+ data
params
@@ -14989,7 +23377,7 @@ Parameters:
- Parameters:
-
@@ -15047,6 +23435,40 @@
+ user_id
id
@@ -15032,7 +23420,7 @@ Parameters:
-
Parameters:
+
+
+
+
+
+
+
+
+ metadata
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -15127,14 +23549,18 @@
@@ -15076,7 +23498,7 @@ cb
Parameters:
-
Returns:
Example
- var params = {
- user_id: '{USER_ID}'
+
var params = { id: USER_ID };
+var metadata = {
+ foo: 'bar'
};
-management.sendEmailVerification(function (err) {
+management.updateAppMetadata(params, metadata, function (err, user) {
if (err) {
// Handle error.
}
+
+ // Updated user.
+ console.log(user);
});
Example
- setRulesConfig(params, data, cbopt) → {Promise|undefined}
+ updateClient(params, data, cbopt) → {Promise|undefined}
setRule
Parameters:
- Parameters:
-
@@ -15342,61 +23768,10 @@
+ key
client_id
@@ -15303,7 +23729,7 @@ Parameters:
-
Parameters:
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
+
@@ -15483,15 +23858,15 @@ Returns:
Example
- var params = { key: RULE_CONFIG_KEY };
-var data = { value: RULES_CONFIG_VALUE };
+
var data = { name: 'newClientName' };
+var params = { client_id: CLIENT_ID };
-management.setRulesConfig(params, data, function (err, rulesConfig) {
+management.updateClient(params, data, function (err, client) {
if (err) {
// Handle error.
}
- // Rules Config set.
+ console.log(client.name); // 'newClientName'
});
Example
- unlinkUsers(params, cbopt) → {Promise|undefined}
+ updateClientGrant(params, data, cbopt) → {Promise|undefined}
unlinkUser
Parameters:
- Parameters:
-
+
-
-
@@ -15695,32 +24052,32 @@
-
-
- provider
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
Parameters:
-
+
+
-
-
-
+ user_id
data
-
+ String
+Object
+
-
+
-
-
-
+
@@ -15807,14 +24164,19 @@ Returns:
Example
- var params = { id: USER_ID, provider: 'auht0', user_id: OTHER_USER_ID };
+
var data = {
+ client_id: CLIENT_ID,
+ audience: AUDIENCE,
+ scope: []
+};
+var params = { id: CLIENT_GRANT_ID };
-management.unlinkUsers(params, function (err, user) {
+management.clientGrants.update(params, data, function (err, grant) {
if (err) {
// Handle error.
}
- // Users accounts unlinked.
+ console.log(grant.id);
});
Example
- updateAppMetadata(params, metadata, cbopt) → {Promise|undefined}
+ updateConnection(params, data, cbopt) → {Promise|undefined}
upda
Parameters:
- Parameters:
-
@@ -16000,7 +24362,7 @@ Parameters:
-
@@ -16061,7 +24423,7 @@
+ metadata
data
@@ -16025,7 +24387,7 @@ Parameters:
-
Parameters:
-
@@ -16112,18 +24474,15 @@ Returns:
Example
- var params = { id: USER_ID };
-var metadata = {
- foo: 'bar'
-};
+
var data = { name: 'newConnectionName' };
+var params = { id: CONNECTION_ID };
-management.updateAppMetadata(params, metadata, function (err, user) {
+management.updateConnection(params, data, function (err, connection) {
if (err) {
// Handle error.
}
- // Updated user.
- console.log(user);
+ console.log(connection.name); // 'newConnectionName'
});
Example
- updateClient(params, data, cbopt) → {Promise|undefined}
+ updateEmailProvider(params, data, cbopt) → {Promise|undefined}
updateCli
Parameters:
-
@@ -16334,7 +24642,7 @@
-
-
-
+
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- client_id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
- Parameters:
-
@@ -16421,15 +24729,13 @@ Returns:
Example
- var data = { name: 'newClientName' };
-var params = { client_id: CLIENT_ID };
-
-management.updateClient(params, data, function (err, client) {
+
management.updateEmailProvider(params, data, function (err, provider) {
if (err) {
// Handle error.
}
- console.log(client.name); // 'newClientName'
+ // Updated email provider.
+ console.log(provider);
});
Example
- updateConnection(params, data, cbopt) → {Promise|undefined}
+ updateResourceServer(params, data, cbopt) → {Promise|undefined}
updat
Parameters:
- Parameters:
-
@@ -16640,7 +24946,7 @@ Parameters:
-
@@ -16727,15 +25033,15 @@ Returns:
Example
- var data = { name: 'newConnectionName' };
-var params = { id: CONNECTION_ID };
+
var data = { name: 'newResourceServerName' };
+var params = { id: RESOURCE_SERVER_ID };
-management.updateConnection(params, data, function (err, connection) {
+management.updateResourceServer(params, data, function (err, resourceServer) {
if (err) {
// Handle error.
}
- console.log(connection.name); // 'newConnectionName'
+ console.log(resourceServer.name); // 'newResourceServerName'
});
Example
- updateEmailProvider(params, data, cbopt) → {Promise|undefined}
+ updateRole(params, data, cbopt) → {Promise|undefined}
up
Parameters:
-
@@ -16895,7 +25252,7 @@
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+ Parameters:
-
@@ -16982,13 +25339,14 @@ Returns:
Example
- management.updateEmailProvider(params, data, function (err, provider) {
+
var params = { id: ROLE_ID };
+var data = { name: 'my-role'};
+management.updateRole(params, data, function (err, role) {
if (err) {
// Handle error.
}
- // Updated email provider.
- console.log(provider);
+ console.log(role.name); // 'my-role'.
});
Example
- updateResourceServer(params, data, cbopt) → {Promise|undefined}
+ updateRule(params, data, cbopt) → {Promise|undefined}
u
Parameters:
- Parameters:
-
@@ -17199,7 +25557,7 @@ Parameters:
-
@@ -17286,15 +25644,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'.
});
Example
- updateRule(params, data, cbopt) → {Promise|undefined}
+ updateTenantSettings(data, cbopt) → {Promise|undefined}
updateRule<
Parameters:
-
-
-
-
-
-
-
-
- params
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
-
- id
-
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
@@ -17592,14 +25864,10 @@
@@ -17505,7 +25777,7 @@ data
Parameters:
-
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'.
});
Example
- updateTenantSettings(data, cbopt) → {Promise|undefined}
+ updateUser(params, data, cbopt) → {Promise|undefined}
u
Parameters:
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
@@ -17761,7 +26114,7 @@
@@ -17725,7 +26078,7 @@ data
Parameters:
-
Parameters:
-
@@ -17812,10 +26165,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);
});
Example
- updateUser(params, data, cbopt) → {Promise|undefined}
+ updateUserMetadata(params, metadata, cbopt) → {Promise|undefined}
updateUser<
Parameters:
- Parameters:
-
@@ -18114,8 +26472,11 @@
+ data
metadata
@@ -18026,7 +26384,7 @@ Parameters:
-
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 +26494,14 @@
Example
- updateUserMetadata(params, metadata, cbopt) → {Promise|undefined}
+ verifyCustomDomain(params, cbopt) → {Promise|undefined}
upd
Parameters:
- Parameters:
-
@@ -18305,40 +26666,6 @@ Parameters:
-
-
-
-
-
-
-
-
- metadata
-
-
-
-
-
- Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -18419,18 +26746,12 @@
@@ -18368,7 +26695,7 @@ cb
Parameters:
-
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);
});
Example
diff --git a/docs/module-management.ManagementTokenProvider.html b/docs/module-management.ManagementTokenProvider.html
index 98a360c74..82e343e91 100644
--- a/docs/module-management.ManagementTokenProvider.html
+++ b/docs/module-management.ManagementTokenProvider.html
@@ -24,7 +24,7 @@
Returns:
diff --git a/docs/module-management.ResourceServersManager.html b/docs/module-management.ResourceServersManager.html
index 0c021904e..7b3909213 100644
--- a/docs/module-management.ResourceServersManager.html
+++ b/docs/module-management.ResourceServersManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.RetryRestClient.html b/docs/module-management.RetryRestClient.html
index 482cb0539..6064aa6ff 100644
--- a/docs/module-management.RetryRestClient.html
+++ b/docs/module-management.RetryRestClient.html
@@ -24,7 +24,7 @@
Parameters:
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
+
+
+
+
+
+
+
+
+ management.
+
+ RolesManager
+
+
+ Constructor
+
+
+ new RolesManager(options)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ baseUrl
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ headers
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ retry
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+(inner) auth0RestClient :external:RestClient
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+(inner) clientOptions :Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+Methods
+
+
+
+addPermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.roles.create(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role created.
+});
delete(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.roles.delete({ id: ROLE_ID }, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Role deleted.
+});
get(params, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.roles.get({ id: ROLE_ID }, function (err, role) {
+ if (err) {
+ // Handle error.
+ }
+
+ console.log(role);
+});
getAll(paramsopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ per_page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+ Number
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+
+
+// 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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ email
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Examples
+
+
+
+
+
+ var params = {id : 'ROLE_ID'}
+
+management.roles.getPermissions( {id : 'ROLE_ID'}, function (err, permissions) {
+ console.log(permissions);
+});
getUsers(emailopt, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ email
+
+
+
+
+
+ String
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Examples
+
+
+
+
+
+ params = {id : 'ROLE_ID'}
+
+management.roles.getUsers( {id : 'ROLE_ID'}, function (err, users) {
+ console.log(users);
+});
removePermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params.id
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permissions
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ permission_name
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ resource_server_identifier
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ roles
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ params
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+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'
+});
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/module-management.RulesConfigsManager.html b/docs/module-management.RulesConfigsManager.html
index 4a371256c..6c0be5d76 100644
--- a/docs/module-management.RulesConfigsManager.html
+++ b/docs/module-management.RulesConfigsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.RulesManager.html b/docs/module-management.RulesManager.html
index c81f2d396..84d895c28 100644
--- a/docs/module-management.RulesManager.html
+++ b/docs/module-management.RulesManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.StatsManager.html b/docs/module-management.StatsManager.html
index d73bbea41..e3d8ffa17 100644
--- a/docs/module-management.StatsManager.html
+++ b/docs/module-management.StatsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.TenantManager.html b/docs/module-management.TenantManager.html
index 527516334..c01a5bcc6 100644
--- a/docs/module-management.TenantManager.html
+++ b/docs/module-management.TenantManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.TicketsManager.html b/docs/module-management.TicketsManager.html
index 6cc15b131..dd25b20f3 100644
--- a/docs/module-management.TicketsManager.html
+++ b/docs/module-management.TicketsManager.html
@@ -24,7 +24,7 @@
Example
diff --git a/docs/module-management.UsersManager.html b/docs/module-management.UsersManager.html
index 4a29c2bcb..8e5cf0a2e 100644
--- a/docs/module-management.UsersManager.html
+++ b/docs/module-management.UsersManager.html
@@ -24,7 +24,7 @@
(inn
+
+
+
+
+
Type:
+
+
+
+
+
+
+
+(inner) userPermissionsClient :external:RestClient
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Type:
+
+
+
+
+
+
+
+(inner) userRolesClient :external:RestClient
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -836,7 +984,7 @@ createSource:
deleteSource:
deleteAll
Source:
getSource:
getAllSource:
getByEmail<
Source:
Example
getPermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.users.getPermissions({ id: USER_ID }, function (err, permissions) {
+ console.log(permissions);
+});
getUserRoles(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Attributes
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ data
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cb
+
+
+
+
+
+ function
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+
+
+
+Example
+
+
+
+management.users.getRoles({ id: USER_ID }, function (err, roles) {
+ console.log(roles);
+});
linkSource:
logsSource:
Source:
unlinkSource:
updateSource:
upda
upd
Example
diff --git a/docs/module-management.html b/docs/module-management.html
index 24524f386..59dfc7588 100644
--- a/docs/module-management.html
+++ b/docs/module-management.html
@@ -24,7 +24,7 @@
Classes
Classes
Classes
diff --git a/docs/module-utils.html b/docs/module-utils.html
index c703086b0..c9cd94e0a 100644
--- a/docs/module-utils.html
+++ b/docs/module-utils.html
@@ -24,7 +24,7 @@
(static)
diff --git a/docs/utils.js.html b/docs/utils.js.html
index e1092abfd..dcd265d5d 100644
--- a/docs/utils.js.html
+++ b/docs/utils.js.html
@@ -24,7 +24,7 @@
utils.js
diff --git a/package.json b/package.json
index b91a85153..4dae031c7 100644
--- a/package.json
+++ b/package.json
@@ -1,15 +1,16 @@
{
"name": "auth0",
- "version": "2.14.0",
+ "version": "2.17.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/*.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 $(find ./test -name *.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",
@@ -21,7 +22,10 @@
"type": "git",
"url": "https://github.com/auth0/node-auth0"
},
- "keywords": ["auth0", "api"],
+ "keywords": [
+ "auth0",
+ "api"
+ ],
"author": "Auth0",
"license": "MIT",
"bugs": {
@@ -31,16 +35,17 @@
"dependencies": {
"bluebird": "^2.10.2",
"jsonwebtoken": "^8.3.0",
- "jwks-rsa": "^1.3.0",
- "lru-memoizer": "^1.11.1",
+ "jwks-rsa": "^1.4.0",
+ "lru-memoizer": "^1.12.0",
"object.assign": "^4.0.4",
- "request": "^2.83.0",
+ "request": "^2.88.0",
"rest-facade": "^1.10.1",
"retry": "^0.10.1"
},
"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",
diff --git a/src/auth/DatabaseAuthenticator.js b/src/auth/DatabaseAuthenticator.js
index 4f5dabc79..7f23f581d 100644
--- a/src/auth/DatabaseAuthenticator.js
+++ b/src/auth/DatabaseAuthenticator.js
@@ -30,7 +30,8 @@ var DatabaseAuthenticator = function(options, oauth) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = oauth;
diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js
index b9833f948..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
@@ -58,6 +61,9 @@ OAUthWithIDTokenValidation.prototype.create = function(params, data, cb) {
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) {
@@ -77,11 +83,15 @@ 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) {
+ 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);
}
);
});
diff --git a/src/auth/OAuthAuthenticator.js b/src/auth/OAuthAuthenticator.js
index d8df93582..7aaa41465 100644
--- a/src/auth/OAuthAuthenticator.js
+++ b/src/auth/OAuthAuthenticator.js
@@ -33,7 +33,8 @@ var OAuthAuthenticator = function(options) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = new RestClient(options.baseUrl + '/oauth/:type', clientOptions);
diff --git a/src/auth/PasswordlessAuthenticator.js b/src/auth/PasswordlessAuthenticator.js
index 99c124275..b0855714b 100644
--- a/src/auth/PasswordlessAuthenticator.js
+++ b/src/auth/PasswordlessAuthenticator.js
@@ -29,7 +29,8 @@ var PasswordlessAuthenticator = function(options, oauth) {
* @type {Object}
*/
var clientOptions = {
- errorFormatter: { message: 'message', name: 'error' }
+ errorFormatter: { message: 'message', name: 'error' },
+ headers: options.headers
};
this.oauth = oauth;
diff --git a/src/auth/index.js b/src/auth/index.js
index acb70f253..c86921d57 100644
--- a/src/auth/index.js
+++ b/src/auth/index.js
@@ -1,8 +1,6 @@
/** @module auth **/
var util = require('util');
-
-var pkg = require('../../package.json');
var utils = require('../utils');
var jsonToBase64 = utils.jsonToBase64;
var ArgumentError = require('rest-facade').ArgumentError;
@@ -67,8 +65,11 @@ var AuthenticationClient = function(options) {
};
if (options.telemetry !== false) {
- var telemetry = jsonToBase64(options.clientInfo || this.getClientInfo());
- managerOptions.headers['Auth0-Client'] = telemetry;
+ var clientInfo = options.clientInfo || utils.generateClientInfo();
+ if ('string' === typeof clientInfo.name && clientInfo.name) {
+ var telemetry = jsonToBase64(clientInfo);
+ managerOptions.headers['Auth0-Client'] = telemetry;
+ }
}
/**
@@ -107,38 +108,6 @@ var AuthenticationClient = function(options) {
this.tokens = new TokensManager(managerOptions);
};
-/**
- * Return an object with information about the current client,
- *
- * @method getClientInfo
- * @memberOf module:auth.AuthenticationClient.prototype
- *
- * @return {Object} Object containing client information.
- */
-AuthenticationClient.prototype.getClientInfo = function() {
- var clientInfo = {
- name: 'node-auth0',
- version: pkg.version,
- dependencies: [],
- environment: [
- {
- name: 'node.js',
- version: process.version.replace('v', '')
- }
- ]
- };
-
- // Add the dependencies to the client info object.
- Object.keys(pkg.dependencies).forEach(function(name) {
- clientInfo.dependencies.push({
- name: name,
- version: pkg.dependencies[name]
- });
- });
-
- return clientInfo;
-};
-
/**
* Start passwordless flow sending an email.
*
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/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/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/ManagementTokenProvider.js b/src/management/ManagementTokenProvider.js
index 59996fb2b..ade7b3be1 100644
--- a/src/management/ManagementTokenProvider.js
+++ b/src/management/ManagementTokenProvider.js
@@ -67,7 +67,8 @@ var ManagementTokenProvider = function(options) {
domain: this.options.domain,
clientId: this.options.clientId,
clientSecret: this.options.clientSecret,
- telemetry: this.options.telemetry
+ telemetry: this.options.telemetry,
+ clientInfo: this.options.clientInfo
};
this.authenticationClient = new AuthenticationClient(authenticationClientOptions);
};
diff --git a/src/management/RolesManager.js b/src/management/RolesManager.js
new file mode 100644
index 000000000..826a15cef
--- /dev/null
+++ b/src/management/RolesManager.js
@@ -0,0 +1,402 @@
+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