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,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,2 @@
1
+ export { GroupsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { GroupsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -1 +1,2 @@
1
+ export * as groups from "./groups/index.mjs";
1
2
  export * as members from "./members/index.mjs";
@@ -1 +1,2 @@
1
+ export * as groups from "./groups/index.mjs";
1
2
  export * as members from "./members/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
  };
@@ -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
  * })
@@ -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.
@@ -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
  * })
@@ -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.
@@ -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
  * })
@@ -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
  };