auth0 6.1.0 → 6.3.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.
Files changed (192) hide show
  1. package/dist/cjs/management/Client.d.ts +3 -0
  2. package/dist/cjs/management/Client.js +93 -88
  3. package/dist/cjs/management/api/requests/requests.d.ts +203 -14
  4. package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
  5. package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
  6. package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
  7. package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
  8. package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
  9. package/dist/cjs/management/api/resources/agents/exports.js +21 -0
  10. package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
  11. package/dist/cjs/management/api/resources/agents/index.js +17 -0
  12. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
  14. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
  15. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
  16. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
  17. package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
  18. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -1
  19. package/dist/cjs/management/api/resources/connections/client/Client.js +4 -2
  20. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
  21. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
  22. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
  23. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
  24. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
  25. package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
  26. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -0
  27. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +9 -1
  28. package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
  29. package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
  30. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
  31. package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
  32. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  33. package/dist/cjs/management/api/resources/index.js +2 -1
  34. package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
  35. package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
  36. package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
  38. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
  39. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
  40. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
  41. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
  42. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
  43. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
  44. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
  45. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
  46. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
  47. package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
  48. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
  49. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
  50. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
  52. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
  53. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
  54. package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
  56. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
  58. package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
  59. package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
  60. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
  61. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
  62. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
  63. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
  64. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
  65. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
  66. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
  67. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
  68. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
  69. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
  70. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
  71. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
  72. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
  73. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
  74. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
  75. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
  76. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
  77. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
  78. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
  79. package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
  80. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
  81. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
  82. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
  83. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
  84. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
  85. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
  86. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
  87. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
  88. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
  89. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
  90. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
  91. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
  92. package/dist/cjs/management/api/types/types.d.ts +387 -34
  93. package/dist/cjs/management/api/types/types.js +92 -15
  94. package/dist/cjs/management/version.d.ts +1 -1
  95. package/dist/cjs/management/version.js +1 -1
  96. package/dist/esm/management/Client.d.mts +3 -0
  97. package/dist/esm/management/Client.mjs +5 -0
  98. package/dist/esm/management/api/requests/requests.d.mts +203 -14
  99. package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
  100. package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
  101. package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
  102. package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
  103. package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
  104. package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
  105. package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/agents/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
  108. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
  109. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
  110. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
  111. package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
  112. package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
  113. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -1
  114. package/dist/esm/management/api/resources/connections/client/Client.mjs +4 -2
  115. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
  116. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
  117. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
  118. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
  119. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
  120. package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
  121. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -0
  122. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +9 -1
  123. package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
  124. package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
  125. package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
  126. package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
  127. package/dist/esm/management/api/resources/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
  130. package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
  131. package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
  134. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
  135. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
  136. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
  137. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
  138. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
  139. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
  140. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
  141. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
  142. package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
  143. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
  144. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
  145. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
  146. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
  147. package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
  148. package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
  149. package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
  150. package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
  151. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
  152. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
  153. package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
  154. package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
  155. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
  156. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
  157. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
  158. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
  159. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
  160. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
  161. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
  162. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
  163. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
  164. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
  165. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
  166. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
  167. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
  168. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
  169. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
  170. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
  171. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
  172. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
  173. package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
  174. package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
  175. package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
  176. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
  177. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
  178. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
  179. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
  180. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
  181. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
  182. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
  183. package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
  184. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
  185. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
  186. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
  187. package/dist/esm/management/api/types/types.d.mts +387 -34
  188. package/dist/esm/management/api/types/types.mjs +77 -0
  189. package/dist/esm/management/version.d.mts +1 -1
  190. package/dist/esm/management/version.mjs +1 -1
  191. package/package.json +56 -12
  192. package/reference.md +3088 -1844
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { GroupsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -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);
@@ -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);
@@ -1 +1,2 @@
1
+ export * as groups from "./groups/index.js";
1
2
  export * as members from "./members/index.js";
@@ -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
  };
@@ -27,6 +27,7 @@ export declare class GroupsClient {
27
27
  * await client.users.groups.get("id", {
28
28
  * fields: "fields",
29
29
  * include_fields: true,
30
+ * include_totals: true,
30
31
  * from: "from",
31
32
  * take: 1
32
33
  * })
@@ -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.
@@ -24,6 +24,7 @@ export declare class RefreshTokenClient {
24
24
  *
25
25
  * @example
26
26
  * await client.users.refreshToken.list("user_id", {
27
+ * include_totals: true,
27
28
  * from: "from",
28
29
  * take: 1
29
30
  * })
@@ -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.
@@ -24,6 +24,7 @@ export declare class SessionsClient {
24
24
  *
25
25
  * @example
26
26
  * await client.users.sessions.list("user_id", {
27
+ * include_totals: true,
27
28
  * from: "from",
28
29
  * take: 1
29
30
  * })
@@ -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
  };