auth0 5.2.0 → 5.3.1

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 (165) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/management/Client.d.ts +3 -0
  3. package/dist/cjs/management/Client.js +59 -54
  4. package/dist/cjs/management/api/errors/PreconditionFailedError.d.ts +5 -0
  5. package/dist/cjs/management/api/errors/PreconditionFailedError.js +54 -0
  6. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  7. package/dist/cjs/management/api/errors/index.js +1 -0
  8. package/dist/cjs/management/api/requests/requests.d.ts +212 -134
  9. package/dist/cjs/management/api/requests/requests.js +0 -108
  10. package/dist/cjs/management/api/resources/actions/client/Client.d.ts +3 -0
  11. package/dist/cjs/management/api/resources/actions/client/Client.js +9 -4
  12. package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/actions/resources/index.js +2 -1
  14. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.d.ts +149 -0
  15. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +569 -0
  16. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.d.ts +1 -0
  17. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.js +2 -0
  18. package/dist/cjs/management/api/resources/actions/resources/modules/index.d.ts +2 -0
  19. package/dist/cjs/management/api/resources/actions/resources/modules/index.js +18 -0
  20. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.d.ts +1 -0
  21. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.js +37 -0
  22. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +69 -0
  23. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +275 -0
  24. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.js +2 -0
  26. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.d.ts +1 -0
  27. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.js +17 -0
  28. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
  29. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +1 -1
  30. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -0
  31. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +61 -0
  32. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +7 -3
  33. package/dist/cjs/management/api/resources/connections/client/Client.js +9 -5
  34. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +18 -0
  35. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +80 -0
  36. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +2 -1
  38. package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -2
  39. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +59 -50
  40. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
  41. package/dist/cjs/management/api/resources/flows/client/Client.js +1 -1
  42. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
  43. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +2 -2
  44. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +56 -0
  45. package/dist/cjs/management/api/resources/groups/client/Client.js +224 -0
  46. package/dist/cjs/management/api/resources/groups/client/index.d.ts +1 -0
  47. package/dist/cjs/management/api/resources/groups/client/index.js +2 -0
  48. package/dist/cjs/management/api/resources/groups/index.d.ts +2 -0
  49. package/dist/cjs/management/api/resources/groups/index.js +18 -0
  50. package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/groups/resources/index.js +37 -0
  52. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +34 -0
  53. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +148 -0
  54. package/dist/cjs/management/api/resources/groups/resources/members/client/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/groups/resources/members/client/index.js +2 -0
  56. package/dist/cjs/management/api/resources/groups/resources/members/index.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/groups/resources/members/index.js +17 -0
  58. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  59. package/dist/cjs/management/api/resources/index.js +2 -1
  60. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +20 -1
  61. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +66 -1
  62. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +1 -1
  63. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +18 -0
  64. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +67 -0
  65. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -0
  66. package/dist/cjs/management/api/resources/roles/client/Client.js +3 -0
  67. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +2 -1
  68. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +3 -2
  69. package/dist/cjs/management/api/resources/users/client/Client.d.ts +3 -0
  70. package/dist/cjs/management/api/resources/users/client/Client.js +23 -18
  71. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +34 -0
  72. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +148 -0
  73. package/dist/cjs/management/api/resources/users/resources/groups/client/index.d.ts +1 -0
  74. package/dist/cjs/management/api/resources/users/resources/groups/client/index.js +2 -0
  75. package/dist/cjs/management/api/resources/users/resources/groups/index.d.ts +1 -0
  76. package/dist/cjs/management/api/resources/users/resources/groups/index.js +17 -0
  77. package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -0
  78. package/dist/cjs/management/api/resources/users/resources/index.js +2 -1
  79. package/dist/cjs/management/api/types/types.d.ts +5277 -1396
  80. package/dist/cjs/management/api/types/types.js +2143 -442
  81. package/dist/cjs/management/version.d.ts +1 -1
  82. package/dist/cjs/management/version.js +1 -1
  83. package/dist/esm/management/Client.d.mts +3 -0
  84. package/dist/esm/management/Client.mjs +5 -0
  85. package/dist/esm/management/api/errors/PreconditionFailedError.d.mts +5 -0
  86. package/dist/esm/management/api/errors/PreconditionFailedError.mjs +17 -0
  87. package/dist/esm/management/api/errors/index.d.mts +1 -0
  88. package/dist/esm/management/api/errors/index.mjs +1 -0
  89. package/dist/esm/management/api/requests/requests.d.mts +212 -134
  90. package/dist/esm/management/api/requests/requests.mjs +1 -107
  91. package/dist/esm/management/api/resources/actions/client/Client.d.mts +3 -0
  92. package/dist/esm/management/api/resources/actions/client/Client.mjs +5 -0
  93. package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -0
  94. package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -0
  95. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.d.mts +149 -0
  96. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +532 -0
  97. package/dist/esm/management/api/resources/actions/resources/modules/client/index.d.mts +1 -0
  98. package/dist/esm/management/api/resources/actions/resources/modules/client/index.mjs +1 -0
  99. package/dist/esm/management/api/resources/actions/resources/modules/index.d.mts +2 -0
  100. package/dist/esm/management/api/resources/actions/resources/modules/index.mjs +2 -0
  101. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.d.mts +1 -0
  102. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.mjs +1 -0
  103. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +69 -0
  104. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +238 -0
  105. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.d.mts +1 -0
  108. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.mjs +1 -0
  109. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +2 -2
  110. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +1 -1
  111. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -0
  112. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +61 -0
  113. package/dist/esm/management/api/resources/connections/client/Client.d.mts +7 -3
  114. package/dist/esm/management/api/resources/connections/client/Client.mjs +9 -5
  115. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +18 -0
  116. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +80 -0
  117. package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +1 -0
  118. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +2 -1
  119. package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -2
  120. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +59 -50
  121. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
  122. package/dist/esm/management/api/resources/flows/client/Client.mjs +1 -1
  123. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
  124. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +2 -2
  125. package/dist/esm/management/api/resources/groups/client/Client.d.mts +56 -0
  126. package/dist/esm/management/api/resources/groups/client/Client.mjs +187 -0
  127. package/dist/esm/management/api/resources/groups/client/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/groups/client/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/groups/index.d.mts +2 -0
  130. package/dist/esm/management/api/resources/groups/index.mjs +2 -0
  131. package/dist/esm/management/api/resources/groups/resources/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/groups/resources/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +34 -0
  134. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +111 -0
  135. package/dist/esm/management/api/resources/groups/resources/members/client/index.d.mts +1 -0
  136. package/dist/esm/management/api/resources/groups/resources/members/client/index.mjs +1 -0
  137. package/dist/esm/management/api/resources/groups/resources/members/index.d.mts +1 -0
  138. package/dist/esm/management/api/resources/groups/resources/members/index.mjs +1 -0
  139. package/dist/esm/management/api/resources/index.d.mts +1 -0
  140. package/dist/esm/management/api/resources/index.mjs +1 -0
  141. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +20 -1
  142. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +66 -1
  143. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +1 -1
  144. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +18 -0
  145. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +67 -0
  146. package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -0
  147. package/dist/esm/management/api/resources/roles/client/Client.mjs +3 -0
  148. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +2 -1
  149. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +3 -2
  150. package/dist/esm/management/api/resources/users/client/Client.d.mts +3 -0
  151. package/dist/esm/management/api/resources/users/client/Client.mjs +5 -0
  152. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +34 -0
  153. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +111 -0
  154. package/dist/esm/management/api/resources/users/resources/groups/client/index.d.mts +1 -0
  155. package/dist/esm/management/api/resources/users/resources/groups/client/index.mjs +1 -0
  156. package/dist/esm/management/api/resources/users/resources/groups/index.d.mts +1 -0
  157. package/dist/esm/management/api/resources/users/resources/groups/index.mjs +1 -0
  158. package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -0
  159. package/dist/esm/management/api/resources/users/resources/index.mjs +1 -0
  160. package/dist/esm/management/api/types/types.d.mts +5277 -1396
  161. package/dist/esm/management/api/types/types.mjs +2133 -438
  162. package/dist/esm/management/version.d.mts +1 -1
  163. package/dist/esm/management/version.mjs +1 -1
  164. package/package.json +1 -1
  165. package/reference.md +1572 -185
@@ -0,0 +1,69 @@
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 VersionsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class VersionsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
12
+ constructor(options: VersionsClient.Options);
13
+ /**
14
+ * List all published versions of a specific Actions Module.
15
+ *
16
+ * @param {string} id - The unique ID of the module.
17
+ * @param {Management.GetActionModuleVersionsRequestParameters} request
18
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link Management.BadRequestError}
21
+ * @throws {@link Management.UnauthorizedError}
22
+ * @throws {@link Management.ForbiddenError}
23
+ * @throws {@link Management.NotFoundError}
24
+ * @throws {@link Management.TooManyRequestsError}
25
+ *
26
+ * @example
27
+ * await client.actions.modules.versions.list("id", {
28
+ * page: 1,
29
+ * per_page: 1
30
+ * })
31
+ */
32
+ list(id: string, request?: Management.GetActionModuleVersionsRequestParameters, requestOptions?: VersionsClient.RequestOptions): Promise<core.Page<Management.ActionModuleVersion, Management.GetActionModuleVersionsResponseContent>>;
33
+ /**
34
+ * Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.
35
+ *
36
+ * @param {string} id - The ID of the action module to create a version for.
37
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Management.BadRequestError}
40
+ * @throws {@link Management.UnauthorizedError}
41
+ * @throws {@link Management.ForbiddenError}
42
+ * @throws {@link Management.NotFoundError}
43
+ * @throws {@link Management.ConflictError}
44
+ * @throws {@link Management.PreconditionFailedError}
45
+ *
46
+ * @example
47
+ * await client.actions.modules.versions.create("id")
48
+ */
49
+ create(id: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.CreateActionModuleVersionResponseContent>;
50
+ private __create;
51
+ /**
52
+ * Retrieve the details of a specific, immutable version of an Actions Module.
53
+ *
54
+ * @param {string} id - The unique ID of the module.
55
+ * @param {string} versionId - The unique ID of the module version to retrieve.
56
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Management.BadRequestError}
59
+ * @throws {@link Management.UnauthorizedError}
60
+ * @throws {@link Management.ForbiddenError}
61
+ * @throws {@link Management.NotFoundError}
62
+ * @throws {@link Management.TooManyRequestsError}
63
+ *
64
+ * @example
65
+ * await client.actions.modules.versions.get("id", "versionId")
66
+ */
67
+ get(id: string, versionId: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.GetActionModuleVersionResponseContent>;
68
+ private __get;
69
+ }
@@ -0,0 +1,275 @@
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.VersionsClient = 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 VersionsClient {
55
+ constructor(options) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * List all published versions of a specific Actions Module.
60
+ *
61
+ * @param {string} id - The unique ID of the module.
62
+ * @param {Management.GetActionModuleVersionsRequestParameters} request
63
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Management.BadRequestError}
66
+ * @throws {@link Management.UnauthorizedError}
67
+ * @throws {@link Management.ForbiddenError}
68
+ * @throws {@link Management.NotFoundError}
69
+ * @throws {@link Management.TooManyRequestsError}
70
+ *
71
+ * @example
72
+ * await client.actions.modules.versions.list("id", {
73
+ * page: 1,
74
+ * per_page: 1
75
+ * })
76
+ */
77
+ list(id_1) {
78
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
79
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
81
+ const { page = 0, per_page: perPage = 50 } = request;
82
+ const _queryParams = {};
83
+ if (page !== undefined) {
84
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
85
+ }
86
+ if (perPage !== undefined) {
87
+ _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
88
+ }
89
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
90
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
92
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `actions/modules/${core.url.encodePathParam(id)}/versions`),
93
+ method: "GET",
94
+ headers: _headers,
95
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
96
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
97
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
98
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
100
+ logging: this._options.logging,
101
+ });
102
+ if (_response.ok) {
103
+ return {
104
+ data: _response.body,
105
+ rawResponse: _response.rawResponse,
106
+ };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 400:
111
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
112
+ case 401:
113
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
114
+ case 403:
115
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
116
+ case 404:
117
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
118
+ case 429:
119
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
120
+ default:
121
+ throw new errors.ManagementError({
122
+ statusCode: _response.error.statusCode,
123
+ body: _response.error.body,
124
+ rawResponse: _response.rawResponse,
125
+ });
126
+ }
127
+ }
128
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions");
129
+ }));
130
+ let _offset = (request === null || request === void 0 ? void 0 : request.page) != null ? request === null || request === void 0 ? void 0 : request.page : 0;
131
+ const dataWithRawResponse = yield list(request).withRawResponse();
132
+ return new core.Page({
133
+ response: dataWithRawResponse.data,
134
+ rawResponse: dataWithRawResponse.rawResponse,
135
+ hasNextPage: (response) => { var _a, _b; return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length >= Math.floor((_b = request === null || request === void 0 ? void 0 : request.per_page) !== null && _b !== void 0 ? _b : 50); },
136
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
137
+ loadPage: (_response) => {
138
+ _offset += 1;
139
+ return list(core.setObjectProperty(request, "page", _offset));
140
+ },
141
+ });
142
+ });
143
+ }
144
+ /**
145
+ * Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.
146
+ *
147
+ * @param {string} id - The ID of the action module to create a version for.
148
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
149
+ *
150
+ * @throws {@link Management.BadRequestError}
151
+ * @throws {@link Management.UnauthorizedError}
152
+ * @throws {@link Management.ForbiddenError}
153
+ * @throws {@link Management.NotFoundError}
154
+ * @throws {@link Management.ConflictError}
155
+ * @throws {@link Management.PreconditionFailedError}
156
+ *
157
+ * @example
158
+ * await client.actions.modules.versions.create("id")
159
+ */
160
+ create(id, requestOptions) {
161
+ return core.HttpResponsePromise.fromPromise(this.__create(id, requestOptions));
162
+ }
163
+ __create(id, requestOptions) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
166
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
167
+ 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);
168
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
169
+ 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, `actions/modules/${core.url.encodePathParam(id)}/versions`),
170
+ method: "POST",
171
+ headers: _headers,
172
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
173
+ 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,
174
+ 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,
175
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
177
+ logging: this._options.logging,
178
+ });
179
+ if (_response.ok) {
180
+ return {
181
+ data: _response.body,
182
+ rawResponse: _response.rawResponse,
183
+ };
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ switch (_response.error.statusCode) {
187
+ case 400:
188
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
189
+ case 401:
190
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
191
+ case 403:
192
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
193
+ case 404:
194
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
195
+ case 409:
196
+ throw new Management.ConflictError(_response.error.body, _response.rawResponse);
197
+ case 412:
198
+ throw new Management.PreconditionFailedError(_response.error.body, _response.rawResponse);
199
+ default:
200
+ throw new errors.ManagementError({
201
+ statusCode: _response.error.statusCode,
202
+ body: _response.error.body,
203
+ rawResponse: _response.rawResponse,
204
+ });
205
+ }
206
+ }
207
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/actions/modules/{id}/versions");
208
+ });
209
+ }
210
+ /**
211
+ * Retrieve the details of a specific, immutable version of an Actions Module.
212
+ *
213
+ * @param {string} id - The unique ID of the module.
214
+ * @param {string} versionId - The unique ID of the module version to retrieve.
215
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
216
+ *
217
+ * @throws {@link Management.BadRequestError}
218
+ * @throws {@link Management.UnauthorizedError}
219
+ * @throws {@link Management.ForbiddenError}
220
+ * @throws {@link Management.NotFoundError}
221
+ * @throws {@link Management.TooManyRequestsError}
222
+ *
223
+ * @example
224
+ * await client.actions.modules.versions.get("id", "versionId")
225
+ */
226
+ get(id, versionId, requestOptions) {
227
+ return core.HttpResponsePromise.fromPromise(this.__get(id, versionId, requestOptions));
228
+ }
229
+ __get(id, versionId, requestOptions) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
232
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
233
+ 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);
234
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
235
+ 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, `actions/modules/${core.url.encodePathParam(id)}/versions/${core.url.encodePathParam(versionId)}`),
236
+ method: "GET",
237
+ headers: _headers,
238
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
239
+ 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,
240
+ 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,
241
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
242
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
243
+ logging: this._options.logging,
244
+ });
245
+ if (_response.ok) {
246
+ return {
247
+ data: _response.body,
248
+ rawResponse: _response.rawResponse,
249
+ };
250
+ }
251
+ if (_response.error.reason === "status-code") {
252
+ switch (_response.error.statusCode) {
253
+ case 400:
254
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
255
+ case 401:
256
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
257
+ case 403:
258
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
259
+ case 404:
260
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
261
+ case 429:
262
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
263
+ default:
264
+ throw new errors.ManagementError({
265
+ statusCode: _response.error.statusCode,
266
+ body: _response.error.body,
267
+ rawResponse: _response.rawResponse,
268
+ });
269
+ }
270
+ }
271
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions/{versionId}");
272
+ });
273
+ }
274
+ }
275
+ exports.VersionsClient = VersionsClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -52,7 +52,7 @@ export declare class VersionsClient {
52
52
  *
53
53
  * @param {string} actionId - The ID of an action.
54
54
  * @param {string} id - The ID of an action version.
55
- * @param {Management.DeployActionVersionRequestContent | undefined} request
55
+ * @param {Management.DeployActionVersionRequestContent | null} request
56
56
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
58
58
  * @throws {@link Management.BadRequestError}
@@ -63,6 +63,6 @@ export declare class VersionsClient {
63
63
  * @example
64
64
  * await client.actions.versions.deploy("actionId", "id")
65
65
  */
66
- deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | undefined, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
66
+ deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | null, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
67
67
  private __deploy;
68
68
  }
@@ -207,7 +207,7 @@ class VersionsClient {
207
207
  *
208
208
  * @param {string} actionId - The ID of an action.
209
209
  * @param {string} id - The ID of an action version.
210
- * @param {Management.DeployActionVersionRequestContent | undefined} request
210
+ * @param {Management.DeployActionVersionRequestContent | null} request
211
211
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
212
212
  *
213
213
  * @throws {@link Management.BadRequestError}
@@ -55,6 +55,23 @@ export declare class ClientGrantsClient {
55
55
  */
56
56
  create(request: Management.CreateClientGrantRequestContent, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.CreateClientGrantResponseContent>;
57
57
  private __create;
58
+ /**
59
+ * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
60
+ * scopes associated with the application/API pair.
61
+ *
62
+ * @param {string} id - The ID of the client grant to retrieve.
63
+ * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Management.UnauthorizedError}
66
+ * @throws {@link Management.ForbiddenError}
67
+ * @throws {@link Management.NotFoundError}
68
+ * @throws {@link Management.TooManyRequestsError}
69
+ *
70
+ * @example
71
+ * await client.clientGrants.get("id")
72
+ */
73
+ get(id: string, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.GetClientGrantResponseContent>;
74
+ private __get;
58
75
  /**
59
76
  * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
60
77
  *
@@ -225,6 +225,67 @@ class ClientGrantsClient {
225
225
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/client-grants");
226
226
  });
227
227
  }
228
+ /**
229
+ * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
230
+ * scopes associated with the application/API pair.
231
+ *
232
+ * @param {string} id - The ID of the client grant to retrieve.
233
+ * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
234
+ *
235
+ * @throws {@link Management.UnauthorizedError}
236
+ * @throws {@link Management.ForbiddenError}
237
+ * @throws {@link Management.NotFoundError}
238
+ * @throws {@link Management.TooManyRequestsError}
239
+ *
240
+ * @example
241
+ * await client.clientGrants.get("id")
242
+ */
243
+ get(id, requestOptions) {
244
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
245
+ }
246
+ __get(id, requestOptions) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
249
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
250
+ 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);
251
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
252
+ 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, `client-grants/${core.url.encodePathParam(id)}`),
253
+ method: "GET",
254
+ headers: _headers,
255
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
256
+ 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,
257
+ 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,
258
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
259
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
260
+ logging: this._options.logging,
261
+ });
262
+ if (_response.ok) {
263
+ return {
264
+ data: _response.body,
265
+ rawResponse: _response.rawResponse,
266
+ };
267
+ }
268
+ if (_response.error.reason === "status-code") {
269
+ switch (_response.error.statusCode) {
270
+ case 401:
271
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
272
+ case 403:
273
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
274
+ case 404:
275
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
276
+ case 429:
277
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
278
+ default:
279
+ throw new errors.ManagementError({
280
+ statusCode: _response.error.statusCode,
281
+ body: _response.error.body,
282
+ rawResponse: _response.rawResponse,
283
+ });
284
+ }
285
+ }
286
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/client-grants/{id}");
287
+ });
288
+ }
228
289
  /**
229
290
  * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
230
291
  *
@@ -14,14 +14,14 @@ export declare namespace ConnectionsClient {
14
14
  }
15
15
  export declare class ConnectionsClient {
16
16
  protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
17
- protected _clients: ClientsClient | undefined;
18
17
  protected _directoryProvisioning: DirectoryProvisioningClient | undefined;
18
+ protected _clients: ClientsClient | undefined;
19
19
  protected _keys: KeysClient | undefined;
20
20
  protected _scimConfiguration: ScimConfigurationClient | undefined;
21
21
  protected _users: UsersClient | undefined;
22
22
  constructor(options: ConnectionsClient.Options);
23
- get clients(): ClientsClient;
24
23
  get directoryProvisioning(): DirectoryProvisioningClient;
24
+ get clients(): ClientsClient;
25
25
  get keys(): KeysClient;
26
26
  get scimConfiguration(): ScimConfigurationClient;
27
27
  get users(): UsersClient;
@@ -65,7 +65,9 @@ export declare class ConnectionsClient {
65
65
  */
66
66
  list(request?: Management.ListConnectionsQueryParameters, requestOptions?: ConnectionsClient.RequestOptions): Promise<core.Page<Management.ConnectionForList, Management.ListConnectionsCheckpointPaginatedResponseContent>>;
67
67
  /**
68
- * Creates a new connection according to the JSON object received in <code>body</code>.<br/>
68
+ * Creates a new connection according to the JSON object received in <code>body</code>.
69
+ *
70
+ * <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.
69
71
  *
70
72
  * @param {Management.CreateConnectionRequestContent} request
71
73
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -108,6 +110,8 @@ export declare class ConnectionsClient {
108
110
  /**
109
111
  * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.
110
112
  *
113
+ * <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.
114
+ *
111
115
  * @param {string} id - The id of the connection to delete
112
116
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
113
117
  *
@@ -60,14 +60,14 @@ class ConnectionsClient {
60
60
  constructor(options) {
61
61
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
62
62
  }
63
- get clients() {
64
- var _a;
65
- return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new Client_js_1.ClientsClient(this._options)));
66
- }
67
63
  get directoryProvisioning() {
68
64
  var _a;
69
65
  return ((_a = this._directoryProvisioning) !== null && _a !== void 0 ? _a : (this._directoryProvisioning = new Client_js_2.DirectoryProvisioningClient(this._options)));
70
66
  }
67
+ get clients() {
68
+ var _a;
69
+ return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new Client_js_1.ClientsClient(this._options)));
70
+ }
71
71
  get keys() {
72
72
  var _a;
73
73
  return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new Client_js_3.KeysClient(this._options)));
@@ -199,7 +199,9 @@ class ConnectionsClient {
199
199
  });
200
200
  }
201
201
  /**
202
- * Creates a new connection according to the JSON object received in <code>body</code>.<br/>
202
+ * Creates a new connection according to the JSON object received in <code>body</code>.
203
+ *
204
+ * <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.
203
205
  *
204
206
  * @param {Management.CreateConnectionRequestContent} request
205
207
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -345,6 +347,8 @@ class ConnectionsClient {
345
347
  /**
346
348
  * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.
347
349
  *
350
+ * <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.
351
+ *
348
352
  * @param {string} id - The id of the connection to delete
349
353
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
350
354
  *
@@ -13,6 +13,24 @@ export declare class DirectoryProvisioningClient {
13
13
  protected _synchronizations: SynchronizationsClient | undefined;
14
14
  constructor(options: DirectoryProvisioningClient.Options);
15
15
  get synchronizations(): SynchronizationsClient;
16
+ /**
17
+ * Retrieve a list of directory provisioning configurations of a tenant.
18
+ *
19
+ * @param {Management.ListDirectoryProvisioningsRequestParameters} request
20
+ * @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link Management.BadRequestError}
23
+ * @throws {@link Management.UnauthorizedError}
24
+ * @throws {@link Management.ForbiddenError}
25
+ * @throws {@link Management.TooManyRequestsError}
26
+ *
27
+ * @example
28
+ * await client.connections.directoryProvisioning.list({
29
+ * from: "from",
30
+ * take: 1
31
+ * })
32
+ */
33
+ list(request?: Management.ListDirectoryProvisioningsRequestParameters, requestOptions?: DirectoryProvisioningClient.RequestOptions): Promise<core.Page<Management.DirectoryProvisioning, Management.ListDirectoryProvisioningsResponseContent>>;
16
34
  /**
17
35
  * Retrieve the directory provisioning configuration of a connection.
18
36
  *