auth0 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/management/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +93 -88
- package/dist/cjs/management/api/requests/requests.d.ts +175 -3
- package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
- package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
- package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
- package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/agents/exports.js +21 -0
- package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/index.js +17 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
- package/dist/cjs/management/api/types/types.d.ts +255 -10
- package/dist/cjs/management/api/types/types.js +70 -22
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/requests/requests.d.mts +175 -3
- package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
- package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
- package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
- package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/index.mjs +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
- package/dist/esm/management/api/types/types.d.mts +255 -10
- package/dist/esm/management/api/types/types.mjs +54 -6
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +45 -12
- package/reference.md +1463 -406
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
13
|
+
import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
|
|
14
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
17
|
+
import * as Management from "../../../../../../../index.mjs";
|
|
18
|
+
export class GroupsClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the list of groups assigned to a role in the context of an organization.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} organization_id - ID of the organization.
|
|
26
|
+
* @param {string} role_id - ID of the role.
|
|
27
|
+
* @param {Management.ListOrganizationRoleGroupsRequestParameters} request
|
|
28
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link Management.BadRequestError}
|
|
31
|
+
* @throws {@link Management.UnauthorizedError}
|
|
32
|
+
* @throws {@link Management.ForbiddenError}
|
|
33
|
+
* @throws {@link Management.NotFoundError}
|
|
34
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.organizations.roles.groups.list("organization_id", "role_id", {
|
|
38
|
+
* from: "from",
|
|
39
|
+
* take: 1
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
list(organization_id_1, role_id_1) {
|
|
43
|
+
return __awaiter(this, arguments, void 0, function* (organization_id, role_id, request = {}, requestOptions) {
|
|
44
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46
|
+
const { from: from_, take = 50 } = request;
|
|
47
|
+
const _queryParams = {
|
|
48
|
+
from: from_,
|
|
49
|
+
take,
|
|
50
|
+
};
|
|
51
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
52
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
53
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
54
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(organization_id)}/roles/${core.url.encodePathParam(role_id)}/groups`),
|
|
55
|
+
method: "GET",
|
|
56
|
+
headers: _headers,
|
|
57
|
+
queryString: core.url
|
|
58
|
+
.queryBuilder()
|
|
59
|
+
.addMany(_queryParams)
|
|
60
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
61
|
+
.build(),
|
|
62
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
63
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
64
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
65
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
66
|
+
logging: this._options.logging,
|
|
67
|
+
});
|
|
68
|
+
if (_response.ok) {
|
|
69
|
+
return {
|
|
70
|
+
data: _response.body,
|
|
71
|
+
rawResponse: _response.rawResponse,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (_response.error.reason === "status-code") {
|
|
75
|
+
switch (_response.error.statusCode) {
|
|
76
|
+
case 400:
|
|
77
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
78
|
+
case 401:
|
|
79
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
80
|
+
case 403:
|
|
81
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
82
|
+
case 404:
|
|
83
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
84
|
+
case 429:
|
|
85
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
86
|
+
default:
|
|
87
|
+
throw new errors.ManagementError({
|
|
88
|
+
statusCode: _response.error.statusCode,
|
|
89
|
+
body: _response.error.body,
|
|
90
|
+
rawResponse: _response.rawResponse,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/organizations/{organization_id}/roles/{role_id}/groups");
|
|
95
|
+
}));
|
|
96
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
97
|
+
return new core.Page({
|
|
98
|
+
response: dataWithRawResponse.data,
|
|
99
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
100
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next) != null && !(typeof (response === null || response === void 0 ? void 0 : response.next) === "string" && (response === null || response === void 0 ? void 0 : response.next) === ""),
|
|
101
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.groups) !== null && _a !== void 0 ? _a : []; },
|
|
102
|
+
loadPage: (response) => {
|
|
103
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -12,6 +12,11 @@ export declare class MembersClient {
|
|
|
12
12
|
constructor(options: MembersClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List the organization members assigned a specific role within the context of an organization.
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li>
|
|
17
|
+
* <b>Note</b>: Returns only members with direct role assignments. For groups assigned to this role within the organization, use <code>GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups</code>.
|
|
18
|
+
* </li>
|
|
19
|
+
* </ul>
|
|
15
20
|
*
|
|
16
21
|
* @param {string} id - ID of the organization.
|
|
17
22
|
* @param {string} role_id - ID of the role to retrieve the assigned members for.
|
|
@@ -21,6 +21,11 @@ export class MembersClient {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* List the organization members assigned a specific role within the context of an organization.
|
|
24
|
+
* <ul>
|
|
25
|
+
* <li>
|
|
26
|
+
* <b>Note</b>: Returns only members with direct role assignments. For groups assigned to this role within the organization, use <code>GET /api/v2/organizations/{organization_id}/roles/{role_id}/groups</code>.
|
|
27
|
+
* </li>
|
|
28
|
+
* </ul>
|
|
24
29
|
*
|
|
25
30
|
* @param {string} id - ID of the organization.
|
|
26
31
|
* @param {string} role_id - ID of the role to retrieve the assigned members for.
|
|
@@ -37,7 +37,9 @@ export declare class RolesClient {
|
|
|
37
37
|
* per_page: 1,
|
|
38
38
|
* page: 1,
|
|
39
39
|
* include_totals: true,
|
|
40
|
-
* name_filter: "name_filter"
|
|
40
|
+
* name_filter: "name_filter",
|
|
41
|
+
* type: "tenant",
|
|
42
|
+
* owner_id: "owner_id"
|
|
41
43
|
* })
|
|
42
44
|
*/
|
|
43
45
|
list(request?: Management.ListRolesRequestParameters, requestOptions?: RolesClient.RequestOptions): Promise<core.Page<Management.Role, Management.ListRolesOffsetPaginatedResponseContent>>;
|
|
@@ -52,19 +52,23 @@ export class RolesClient {
|
|
|
52
52
|
* per_page: 1,
|
|
53
53
|
* page: 1,
|
|
54
54
|
* include_totals: true,
|
|
55
|
-
* name_filter: "name_filter"
|
|
55
|
+
* name_filter: "name_filter",
|
|
56
|
+
* type: "tenant",
|
|
57
|
+
* owner_id: "owner_id"
|
|
56
58
|
* })
|
|
57
59
|
*/
|
|
58
60
|
list() {
|
|
59
61
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
60
62
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
61
63
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
62
|
-
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
|
|
64
|
+
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, type: type_, owner_id: ownerId, } = request;
|
|
63
65
|
const _queryParams = {
|
|
64
66
|
per_page: perPage,
|
|
65
67
|
page,
|
|
66
68
|
include_totals: includeTotals,
|
|
67
69
|
name_filter: nameFilter,
|
|
70
|
+
type: type_ !== undefined ? type_ : undefined,
|
|
71
|
+
owner_id: ownerId,
|
|
68
72
|
};
|
|
69
73
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
70
74
|
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -13,6 +13,8 @@ export declare class UsersClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles).
|
|
15
15
|
*
|
|
16
|
+
* **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`.
|
|
17
|
+
*
|
|
16
18
|
* This endpoint supports two types of pagination:
|
|
17
19
|
*
|
|
18
20
|
* - Offset pagination
|
|
@@ -41,6 +43,7 @@ export declare class UsersClient {
|
|
|
41
43
|
*
|
|
42
44
|
* @example
|
|
43
45
|
* await client.roles.users.list("id", {
|
|
46
|
+
* include_totals: true,
|
|
44
47
|
* from: "from",
|
|
45
48
|
* take: 1
|
|
46
49
|
* })
|
|
@@ -22,6 +22,8 @@ export class UsersClient {
|
|
|
22
22
|
/**
|
|
23
23
|
* Retrieve list of users associated with a specific role. For Dashboard instructions, review [View Users Assigned to Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles).
|
|
24
24
|
*
|
|
25
|
+
* **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`.
|
|
26
|
+
*
|
|
25
27
|
* This endpoint supports two types of pagination:
|
|
26
28
|
*
|
|
27
29
|
* - Offset pagination
|
|
@@ -50,6 +52,7 @@ export class UsersClient {
|
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
52
54
|
* await client.roles.users.list("id", {
|
|
55
|
+
* include_totals: true,
|
|
53
56
|
* from: "from",
|
|
54
57
|
* take: 1
|
|
55
58
|
* })
|
|
@@ -58,8 +61,9 @@ export class UsersClient {
|
|
|
58
61
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
59
62
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
60
63
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
61
|
-
const { from: from_, take = 50 } = request;
|
|
64
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
62
65
|
const _queryParams = {
|
|
66
|
+
include_totals: includeTotals,
|
|
63
67
|
from: from_,
|
|
64
68
|
take,
|
|
65
69
|
};
|
|
@@ -36,6 +36,7 @@ export class GroupsClient {
|
|
|
36
36
|
* await client.users.groups.get("id", {
|
|
37
37
|
* fields: "fields",
|
|
38
38
|
* include_fields: true,
|
|
39
|
+
* include_totals: true,
|
|
39
40
|
* from: "from",
|
|
40
41
|
* take: 1
|
|
41
42
|
* })
|
|
@@ -44,10 +45,11 @@ export class GroupsClient {
|
|
|
44
45
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
45
46
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
46
47
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47
|
-
const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
|
|
48
|
+
const { fields, include_fields: includeFields, include_totals: includeTotals = true, from: from_, take = 50, } = request;
|
|
48
49
|
const _queryParams = {
|
|
49
50
|
fields,
|
|
50
51
|
include_fields: includeFields,
|
|
52
|
+
include_totals: includeTotals,
|
|
51
53
|
from: from_,
|
|
52
54
|
take,
|
|
53
55
|
};
|
|
@@ -13,6 +13,8 @@ export declare class PermissionsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve all permissions associated with the user.
|
|
15
15
|
*
|
|
16
|
+
* **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`.
|
|
17
|
+
*
|
|
16
18
|
* @param {string} id - ID of the user to retrieve the permissions for.
|
|
17
19
|
* @param {Management.ListUserPermissionsRequestParameters} request
|
|
18
20
|
* @param {PermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -22,6 +22,8 @@ export class PermissionsClient {
|
|
|
22
22
|
/**
|
|
23
23
|
* Retrieve all permissions associated with the user.
|
|
24
24
|
*
|
|
25
|
+
* **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`.
|
|
26
|
+
*
|
|
25
27
|
* @param {string} id - ID of the user to retrieve the permissions for.
|
|
26
28
|
* @param {Management.ListUserPermissionsRequestParameters} request
|
|
27
29
|
* @param {PermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,6 +33,7 @@ export class RefreshTokenClient {
|
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* await client.users.refreshToken.list("user_id", {
|
|
36
|
+
* include_totals: true,
|
|
36
37
|
* from: "from",
|
|
37
38
|
* take: 1
|
|
38
39
|
* })
|
|
@@ -41,8 +42,9 @@ export class RefreshTokenClient {
|
|
|
41
42
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
42
43
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
43
44
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
44
|
-
const { from: from_, take = 50 } = request;
|
|
45
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
45
46
|
const _queryParams = {
|
|
47
|
+
include_totals: includeTotals,
|
|
46
48
|
from: from_,
|
|
47
49
|
take,
|
|
48
50
|
};
|
|
@@ -15,6 +15,8 @@ export declare class RolesClient {
|
|
|
15
15
|
*
|
|
16
16
|
* **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles).
|
|
17
17
|
*
|
|
18
|
+
* **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`.
|
|
19
|
+
*
|
|
18
20
|
* @param {string} id - ID of the user to list roles for.
|
|
19
21
|
* @param {Management.ListUserRolesRequestParameters} request
|
|
20
22
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -24,6 +24,8 @@ export class RolesClient {
|
|
|
24
24
|
*
|
|
25
25
|
* **Note**: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles).
|
|
26
26
|
*
|
|
27
|
+
* **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`.
|
|
28
|
+
*
|
|
27
29
|
* @param {string} id - ID of the user to list roles for.
|
|
28
30
|
* @param {Management.ListUserRolesRequestParameters} request
|
|
29
31
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,6 +33,7 @@ export class SessionsClient {
|
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* await client.users.sessions.list("user_id", {
|
|
36
|
+
* include_totals: true,
|
|
36
37
|
* from: "from",
|
|
37
38
|
* take: 1
|
|
38
39
|
* })
|
|
@@ -41,8 +42,9 @@ export class SessionsClient {
|
|
|
41
42
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
42
43
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
43
44
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
44
|
-
const { from: from_, take = 50 } = request;
|
|
45
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
45
46
|
const _queryParams = {
|
|
47
|
+
include_totals: includeTotals,
|
|
46
48
|
from: from_,
|
|
47
49
|
take,
|
|
48
50
|
};
|