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
package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class MembersClient {
|
|
|
21
21
|
* This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it.
|
|
22
22
|
*
|
|
23
23
|
* - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned.
|
|
24
|
-
* - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token.
|
|
24
|
+
* - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`.
|
|
25
25
|
*
|
|
26
26
|
* This endpoint supports two types of pagination:
|
|
27
27
|
*
|
|
@@ -46,6 +46,7 @@ export declare class MembersClient {
|
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
48
|
* await client.organizations.members.list("id", {
|
|
49
|
+
* include_totals: true,
|
|
49
50
|
* from: "from",
|
|
50
51
|
* take: 1,
|
|
51
52
|
* fields: "fields",
|
|
@@ -70,7 +70,7 @@ class MembersClient {
|
|
|
70
70
|
* This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it.
|
|
71
71
|
*
|
|
72
72
|
* - Use the `fields` parameter to optionally define the specific member details retrieved. If `fields` is left blank, all fields (except roles) are returned.
|
|
73
|
-
* - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token.
|
|
73
|
+
* - Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member. To use this parameter, you must include the `read:organization_member_roles` scope in the token. Only directly assigned roles are returned. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`.
|
|
74
74
|
*
|
|
75
75
|
* This endpoint supports two types of pagination:
|
|
76
76
|
*
|
|
@@ -95,6 +95,7 @@ class MembersClient {
|
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
97
|
* await client.organizations.members.list("id", {
|
|
98
|
+
* include_totals: true,
|
|
98
99
|
* from: "from",
|
|
99
100
|
* take: 1,
|
|
100
101
|
* fields: "fields",
|
|
@@ -105,8 +106,9 @@ class MembersClient {
|
|
|
105
106
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
106
107
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
107
108
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
108
|
-
const { from: from_, take = 50, fields, include_fields: includeFields } = request;
|
|
109
|
+
const { include_totals: includeTotals = true, from: from_, take = 50, fields, include_fields: includeFields, } = request;
|
|
109
110
|
const _queryParams = {
|
|
111
|
+
include_totals: includeTotals,
|
|
110
112
|
from: from_,
|
|
111
113
|
take,
|
|
112
114
|
fields,
|
|
@@ -15,6 +15,8 @@ export declare class RolesClient {
|
|
|
15
15
|
*
|
|
16
16
|
* Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.
|
|
17
17
|
*
|
|
18
|
+
* **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`.
|
|
19
|
+
*
|
|
18
20
|
* @param {string} id - Organization identifier.
|
|
19
21
|
* @param {string} user_id - ID of the user to associate roles with.
|
|
20
22
|
* @param {Management.ListOrganizationMemberRolesRequestParameters} request
|
|
@@ -60,6 +60,8 @@ class RolesClient {
|
|
|
60
60
|
*
|
|
61
61
|
* Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.
|
|
62
62
|
*
|
|
63
|
+
* **Note**: Returns only direct role assignments for this member. To also include group-based role assignments, use `GET /api/v2/organizations/{id}/members/{user_id}/effective-roles`.
|
|
64
|
+
*
|
|
63
65
|
* @param {string} id - Organization identifier.
|
|
64
66
|
* @param {string} user_id - ID of the user to associate roles with.
|
|
65
67
|
* @param {Management.ListOrganizationMemberRolesRequestParameters} request
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import { GroupsClient } from "../resources/groups/client/Client.js";
|
|
3
4
|
import { MembersClient } from "../resources/members/client/Client.js";
|
|
4
5
|
export declare namespace RolesClient {
|
|
5
6
|
type Options = BaseClientOptions;
|
|
@@ -7,6 +8,8 @@ export declare namespace RolesClient {
|
|
|
7
8
|
export declare class RolesClient {
|
|
8
9
|
protected readonly _options: NormalizedClientOptionsWithAuth<RolesClient.Options>;
|
|
9
10
|
protected _members: MembersClient | undefined;
|
|
11
|
+
protected _groups: GroupsClient | undefined;
|
|
10
12
|
constructor(options: RolesClient.Options);
|
|
11
13
|
get members(): MembersClient;
|
|
14
|
+
get groups(): GroupsClient;
|
|
12
15
|
}
|
|
@@ -3,14 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.RolesClient = void 0;
|
|
5
5
|
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
6
|
-
const Client_js_1 = require("../resources/
|
|
6
|
+
const Client_js_1 = require("../resources/groups/client/Client.js");
|
|
7
|
+
const Client_js_2 = require("../resources/members/client/Client.js");
|
|
7
8
|
class RolesClient {
|
|
8
9
|
constructor(options) {
|
|
9
10
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
10
11
|
}
|
|
11
12
|
get members() {
|
|
12
13
|
var _a;
|
|
13
|
-
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new
|
|
14
|
+
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_2.MembersClient(this._options)));
|
|
15
|
+
}
|
|
16
|
+
get groups() {
|
|
17
|
+
var _a;
|
|
18
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_1.GroupsClient(this._options)));
|
|
14
19
|
}
|
|
15
20
|
}
|
|
16
21
|
exports.RolesClient = RolesClient;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../../../../../index.js";
|
|
5
|
+
export declare namespace GroupsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class GroupsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
|
|
12
|
+
constructor(options: GroupsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve the list of groups assigned to a role in the context of an organization.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} organization_id - ID of the organization.
|
|
17
|
+
* @param {string} role_id - ID of the role.
|
|
18
|
+
* @param {Management.ListOrganizationRoleGroupsRequestParameters} request
|
|
19
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link Management.BadRequestError}
|
|
22
|
+
* @throws {@link Management.UnauthorizedError}
|
|
23
|
+
* @throws {@link Management.ForbiddenError}
|
|
24
|
+
* @throws {@link Management.NotFoundError}
|
|
25
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.organizations.roles.groups.list("organization_id", "role_id", {
|
|
29
|
+
* from: "from",
|
|
30
|
+
* take: 1
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
list(organization_id: string, role_id: string, request?: Management.ListOrganizationRoleGroupsRequestParameters, requestOptions?: GroupsClient.RequestOptions): Promise<core.Page<Management.RoleGroup, Management.ListOrganizationRoleGroupsResponseContent>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.GroupsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
49
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
50
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
53
|
+
const Management = __importStar(require("../../../../../../../index.js"));
|
|
54
|
+
class GroupsClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieve the list of groups assigned to a role in the context of an organization.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} organization_id - ID of the organization.
|
|
62
|
+
* @param {string} role_id - ID of the role.
|
|
63
|
+
* @param {Management.ListOrganizationRoleGroupsRequestParameters} request
|
|
64
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link Management.BadRequestError}
|
|
67
|
+
* @throws {@link Management.UnauthorizedError}
|
|
68
|
+
* @throws {@link Management.ForbiddenError}
|
|
69
|
+
* @throws {@link Management.NotFoundError}
|
|
70
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.organizations.roles.groups.list("organization_id", "role_id", {
|
|
74
|
+
* from: "from",
|
|
75
|
+
* take: 1
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
list(organization_id_1, role_id_1) {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* (organization_id, role_id, request = {}, requestOptions) {
|
|
80
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
82
|
+
const { from: from_, take = 50 } = request;
|
|
83
|
+
const _queryParams = {
|
|
84
|
+
from: from_,
|
|
85
|
+
take,
|
|
86
|
+
};
|
|
87
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
89
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
90
|
+
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`),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: _headers,
|
|
93
|
+
queryString: core.url
|
|
94
|
+
.queryBuilder()
|
|
95
|
+
.addMany(_queryParams)
|
|
96
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
97
|
+
.build(),
|
|
98
|
+
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,
|
|
99
|
+
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,
|
|
100
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
102
|
+
logging: this._options.logging,
|
|
103
|
+
});
|
|
104
|
+
if (_response.ok) {
|
|
105
|
+
return {
|
|
106
|
+
data: _response.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (_response.error.reason === "status-code") {
|
|
111
|
+
switch (_response.error.statusCode) {
|
|
112
|
+
case 400:
|
|
113
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 401:
|
|
115
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 403:
|
|
117
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 404:
|
|
119
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 429:
|
|
121
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
122
|
+
default:
|
|
123
|
+
throw new errors.ManagementError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.body,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/organizations/{organization_id}/roles/{role_id}/groups");
|
|
131
|
+
}));
|
|
132
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
133
|
+
return new core.Page({
|
|
134
|
+
response: dataWithRawResponse.data,
|
|
135
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
136
|
+
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) === ""),
|
|
137
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.groups) !== null && _a !== void 0 ? _a : []; },
|
|
138
|
+
loadPage: (response) => {
|
|
139
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.GroupsClient = GroupsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GroupsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "GroupsClient", { enumerable: true, get: function () { return Client_js_1.GroupsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.members = void 0;
|
|
36
|
+
exports.members = exports.groups = void 0;
|
|
37
|
+
exports.groups = __importStar(require("./groups/index.js"));
|
|
37
38
|
exports.members = __importStar(require("./members/index.js"));
|
|
@@ -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.
|
|
@@ -57,6 +57,11 @@ class MembersClient {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* List the organization members assigned a specific role within the context of an organization.
|
|
60
|
+
* <ul>
|
|
61
|
+
* <li>
|
|
62
|
+
* <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>.
|
|
63
|
+
* </li>
|
|
64
|
+
* </ul>
|
|
60
65
|
*
|
|
61
66
|
* @param {string} id - ID of the organization.
|
|
62
67
|
* @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>>;
|
|
@@ -88,19 +88,23 @@ class RolesClient {
|
|
|
88
88
|
* per_page: 1,
|
|
89
89
|
* page: 1,
|
|
90
90
|
* include_totals: true,
|
|
91
|
-
* name_filter: "name_filter"
|
|
91
|
+
* name_filter: "name_filter",
|
|
92
|
+
* type: "tenant",
|
|
93
|
+
* owner_id: "owner_id"
|
|
92
94
|
* })
|
|
93
95
|
*/
|
|
94
96
|
list() {
|
|
95
97
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
96
98
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
97
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
98
|
-
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
|
|
100
|
+
const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, type: type_, owner_id: ownerId, } = request;
|
|
99
101
|
const _queryParams = {
|
|
100
102
|
per_page: perPage,
|
|
101
103
|
page,
|
|
102
104
|
include_totals: includeTotals,
|
|
103
105
|
name_filter: nameFilter,
|
|
106
|
+
type: type_ !== undefined ? type_ : undefined,
|
|
107
|
+
owner_id: ownerId,
|
|
104
108
|
};
|
|
105
109
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
106
110
|
let _headers = (0, headers_js_1.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
|
* })
|
|
@@ -58,6 +58,8 @@ class UsersClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* 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).
|
|
60
60
|
*
|
|
61
|
+
* **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET /api/v2/roles/{id}/groups`.
|
|
62
|
+
*
|
|
61
63
|
* This endpoint supports two types of pagination:
|
|
62
64
|
*
|
|
63
65
|
* - Offset pagination
|
|
@@ -86,6 +88,7 @@ class UsersClient {
|
|
|
86
88
|
*
|
|
87
89
|
* @example
|
|
88
90
|
* await client.roles.users.list("id", {
|
|
91
|
+
* include_totals: true,
|
|
89
92
|
* from: "from",
|
|
90
93
|
* take: 1
|
|
91
94
|
* })
|
|
@@ -94,8 +97,9 @@ class UsersClient {
|
|
|
94
97
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
95
98
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
96
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
97
|
-
const { from: from_, take = 50 } = request;
|
|
100
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
98
101
|
const _queryParams = {
|
|
102
|
+
include_totals: includeTotals,
|
|
99
103
|
from: from_,
|
|
100
104
|
take,
|
|
101
105
|
};
|
|
@@ -72,6 +72,7 @@ class GroupsClient {
|
|
|
72
72
|
* await client.users.groups.get("id", {
|
|
73
73
|
* fields: "fields",
|
|
74
74
|
* include_fields: true,
|
|
75
|
+
* include_totals: true,
|
|
75
76
|
* from: "from",
|
|
76
77
|
* take: 1
|
|
77
78
|
* })
|
|
@@ -80,10 +81,11 @@ class GroupsClient {
|
|
|
80
81
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
81
82
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
82
83
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
|
-
const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
|
|
84
|
+
const { fields, include_fields: includeFields, include_totals: includeTotals = true, from: from_, take = 50, } = request;
|
|
84
85
|
const _queryParams = {
|
|
85
86
|
fields,
|
|
86
87
|
include_fields: includeFields,
|
|
88
|
+
include_totals: includeTotals,
|
|
87
89
|
from: from_,
|
|
88
90
|
take,
|
|
89
91
|
};
|
|
@@ -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.
|
|
@@ -58,6 +58,8 @@ class PermissionsClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* Retrieve all permissions associated with the user.
|
|
60
60
|
*
|
|
61
|
+
* **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`.
|
|
62
|
+
*
|
|
61
63
|
* @param {string} id - ID of the user to retrieve the permissions for.
|
|
62
64
|
* @param {Management.ListUserPermissionsRequestParameters} request
|
|
63
65
|
* @param {PermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,6 +69,7 @@ class RefreshTokenClient {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.users.refreshToken.list("user_id", {
|
|
72
|
+
* include_totals: true,
|
|
72
73
|
* from: "from",
|
|
73
74
|
* take: 1
|
|
74
75
|
* })
|
|
@@ -77,8 +78,9 @@ class RefreshTokenClient {
|
|
|
77
78
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
78
79
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
80
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
|
-
const { from: from_, take = 50 } = request;
|
|
81
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
81
82
|
const _queryParams = {
|
|
83
|
+
include_totals: includeTotals,
|
|
82
84
|
from: from_,
|
|
83
85
|
take,
|
|
84
86
|
};
|
|
@@ -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.
|
|
@@ -60,6 +60,8 @@ class RolesClient {
|
|
|
60
60
|
*
|
|
61
61
|
* **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).
|
|
62
62
|
*
|
|
63
|
+
* **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET /api/v2/users/{id}/effective-roles`.
|
|
64
|
+
*
|
|
63
65
|
* @param {string} id - ID of the user to list roles for.
|
|
64
66
|
* @param {Management.ListUserRolesRequestParameters} request
|
|
65
67
|
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,6 +69,7 @@ class SessionsClient {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.users.sessions.list("user_id", {
|
|
72
|
+
* include_totals: true,
|
|
72
73
|
* from: "from",
|
|
73
74
|
* take: 1
|
|
74
75
|
* })
|
|
@@ -77,8 +78,9 @@ class SessionsClient {
|
|
|
77
78
|
return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
|
|
78
79
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
79
80
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
80
|
-
const { from: from_, take = 50 } = request;
|
|
81
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
81
82
|
const _queryParams = {
|
|
83
|
+
include_totals: includeTotals,
|
|
82
84
|
from: from_,
|
|
83
85
|
take,
|
|
84
86
|
};
|