auth0 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/management/Client.d.ts +12 -0
- package/dist/cjs/management/Client.js +67 -0
- package/dist/cjs/management/api/requests/requests.d.ts +156 -22
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +0 -1
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +0 -1
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +46 -0
- package/dist/cjs/management/api/resources/clients/client/Client.js +146 -1
- package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +30 -0
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +115 -0
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +16 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +57 -0
- package/dist/cjs/management/api/resources/networkAcls/client/Client.d.ts +0 -2
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +0 -2
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.js +13 -8
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.d.ts +95 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +383 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +23 -0
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +88 -0
- package/dist/cjs/management/api/types/types.d.ts +508 -292
- package/dist/cjs/management/api/types/types.js +101 -103
- package/dist/cjs/management/core/auth/BasicAuth.d.ts +2 -2
- package/dist/cjs/management/core/auth/BasicAuth.js +7 -1
- package/dist/cjs/management/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +2 -0
- package/dist/cjs/management/core/fetcher/Fetcher.js +5 -1
- package/dist/cjs/management/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/management/core/fetcher/index.js +3 -1
- package/dist/cjs/management/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/management/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/management/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/management/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/management/core/pagination/Page.d.ts +1 -1
- package/dist/cjs/management/core/pagination/index.d.ts +0 -1
- package/dist/cjs/management/core/pagination/index.js +1 -4
- package/dist/cjs/management/core/runtime/runtime.js +8 -7
- package/dist/cjs/management/errors/ManagementError.d.ts +3 -1
- package/dist/cjs/management/errors/ManagementError.js +4 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.d.ts +4 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.js +4 -1
- package/dist/cjs/management/errors/handleNonStatusCodeError.js +4 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +12 -0
- package/dist/esm/management/Client.mjs +34 -0
- package/dist/esm/management/api/requests/requests.d.mts +156 -22
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +0 -1
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +0 -1
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +46 -0
- package/dist/esm/management/api/resources/clients/client/Client.mjs +146 -1
- package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +30 -0
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +115 -0
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +16 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +57 -0
- package/dist/esm/management/api/resources/networkAcls/client/Client.d.mts +0 -2
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +0 -2
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.d.mts +95 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +346 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +23 -0
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +88 -0
- package/dist/esm/management/api/types/types.d.mts +508 -292
- package/dist/esm/management/api/types/types.mjs +91 -93
- package/dist/esm/management/core/auth/BasicAuth.d.mts +2 -2
- package/dist/esm/management/core/auth/BasicAuth.mjs +7 -1
- package/dist/esm/management/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +2 -0
- package/dist/esm/management/core/fetcher/Fetcher.mjs +5 -1
- package/dist/esm/management/core/fetcher/index.d.mts +2 -0
- package/dist/esm/management/core/fetcher/index.mjs +1 -0
- package/dist/esm/management/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/management/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/management/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/management/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/management/core/pagination/Page.d.mts +1 -1
- package/dist/esm/management/core/pagination/index.d.mts +0 -1
- package/dist/esm/management/core/pagination/index.mjs +0 -1
- package/dist/esm/management/core/runtime/runtime.mjs +8 -7
- package/dist/esm/management/errors/ManagementError.d.mts +3 -1
- package/dist/esm/management/errors/ManagementError.mjs +4 -1
- package/dist/esm/management/errors/ManagementTimeoutError.d.mts +4 -1
- package/dist/esm/management/errors/ManagementTimeoutError.mjs +4 -1
- package/dist/esm/management/errors/handleNonStatusCodeError.mjs +4 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +5 -6
- package/reference.md +752 -30
- package/dist/cjs/management/core/pagination/CustomPager.d.ts +0 -67
- package/dist/cjs/management/core/pagination/CustomPager.js +0 -194
- package/dist/esm/management/core/pagination/CustomPager.d.mts +0 -67
- package/dist/esm/management/core/pagination/CustomPager.mjs +0 -189
|
@@ -69,6 +69,7 @@ export declare class ClientsClient {
|
|
|
69
69
|
* is_global: true,
|
|
70
70
|
* is_first_party: true,
|
|
71
71
|
* app_type: "app_type",
|
|
72
|
+
* external_client_id: "external_client_id",
|
|
72
73
|
* q: "q"
|
|
73
74
|
* })
|
|
74
75
|
*/
|
|
@@ -105,6 +106,51 @@ export declare class ClientsClient {
|
|
|
105
106
|
*/
|
|
106
107
|
create(request: Management.CreateClientRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.CreateClientResponseContent>;
|
|
107
108
|
private __create;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Fetches and validates a Client ID Metadata Document without creating a client.
|
|
112
|
+
* Returns the raw metadata and how it would be mapped to Auth0 client fields.
|
|
113
|
+
* This endpoint is useful for testing metadata URIs before creating CIMD clients.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @param {Management.PreviewCimdMetadataRequestContent} request
|
|
117
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link Management.BadRequestError}
|
|
120
|
+
* @throws {@link Management.UnauthorizedError}
|
|
121
|
+
* @throws {@link Management.ForbiddenError}
|
|
122
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
123
|
+
* @throws {@link Management.InternalServerError}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* await client.clients.previewCimdMetadata({
|
|
127
|
+
* external_client_id: "external_client_id"
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
previewCimdMetadata(request: Management.PreviewCimdMetadataRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.PreviewCimdMetadataResponseContent>;
|
|
131
|
+
private __previewCimdMetadata;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* Idempotent registration for Client ID Metadata Document (CIMD) clients.
|
|
135
|
+
* Uses external_client_id as the unique identifier for upsert operations.
|
|
136
|
+
* **Create:** Returns 201 when a new client is created (requires \
|
|
137
|
+
*
|
|
138
|
+
* @param {Management.RegisterCimdClientRequestContent} request
|
|
139
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link Management.BadRequestError}
|
|
142
|
+
* @throws {@link Management.UnauthorizedError}
|
|
143
|
+
* @throws {@link Management.ForbiddenError}
|
|
144
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
145
|
+
* @throws {@link Management.InternalServerError}
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.clients.registerCimdClient({
|
|
149
|
+
* external_client_id: "external_client_id"
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
registerCimdClient(request: Management.RegisterCimdClientRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.RegisterCimdClientResponseContent>;
|
|
153
|
+
private __registerCimdClient;
|
|
108
154
|
/**
|
|
109
155
|
* Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified.
|
|
110
156
|
* For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
|
|
@@ -118,6 +118,7 @@ class ClientsClient {
|
|
|
118
118
|
* is_global: true,
|
|
119
119
|
* is_first_party: true,
|
|
120
120
|
* app_type: "app_type",
|
|
121
|
+
* external_client_id: "external_client_id",
|
|
121
122
|
* q: "q"
|
|
122
123
|
* })
|
|
123
124
|
*/
|
|
@@ -125,7 +126,7 @@ class ClientsClient {
|
|
|
125
126
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
126
127
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
127
128
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
128
|
-
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, q, } = request;
|
|
129
|
+
const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, external_client_id: externalClientId, q, } = request;
|
|
129
130
|
const _queryParams = {
|
|
130
131
|
fields,
|
|
131
132
|
include_fields: includeFields,
|
|
@@ -135,6 +136,7 @@ class ClientsClient {
|
|
|
135
136
|
is_global: isGlobal,
|
|
136
137
|
is_first_party: isFirstParty,
|
|
137
138
|
app_type: appType,
|
|
139
|
+
external_client_id: externalClientId,
|
|
138
140
|
q,
|
|
139
141
|
};
|
|
140
142
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -271,6 +273,149 @@ class ClientsClient {
|
|
|
271
273
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/clients");
|
|
272
274
|
});
|
|
273
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* Fetches and validates a Client ID Metadata Document without creating a client.
|
|
279
|
+
* Returns the raw metadata and how it would be mapped to Auth0 client fields.
|
|
280
|
+
* This endpoint is useful for testing metadata URIs before creating CIMD clients.
|
|
281
|
+
*
|
|
282
|
+
*
|
|
283
|
+
* @param {Management.PreviewCimdMetadataRequestContent} request
|
|
284
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
|
+
*
|
|
286
|
+
* @throws {@link Management.BadRequestError}
|
|
287
|
+
* @throws {@link Management.UnauthorizedError}
|
|
288
|
+
* @throws {@link Management.ForbiddenError}
|
|
289
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
290
|
+
* @throws {@link Management.InternalServerError}
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* await client.clients.previewCimdMetadata({
|
|
294
|
+
* external_client_id: "external_client_id"
|
|
295
|
+
* })
|
|
296
|
+
*/
|
|
297
|
+
previewCimdMetadata(request, requestOptions) {
|
|
298
|
+
return core.HttpResponsePromise.fromPromise(this.__previewCimdMetadata(request, requestOptions));
|
|
299
|
+
}
|
|
300
|
+
__previewCimdMetadata(request, requestOptions) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
303
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
304
|
+
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);
|
|
305
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
306
|
+
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, "clients/cimd/preview"),
|
|
307
|
+
method: "POST",
|
|
308
|
+
headers: _headers,
|
|
309
|
+
contentType: "application/json",
|
|
310
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
311
|
+
requestType: "json",
|
|
312
|
+
body: request,
|
|
313
|
+
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,
|
|
314
|
+
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,
|
|
315
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
316
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
317
|
+
logging: this._options.logging,
|
|
318
|
+
});
|
|
319
|
+
if (_response.ok) {
|
|
320
|
+
return {
|
|
321
|
+
data: _response.body,
|
|
322
|
+
rawResponse: _response.rawResponse,
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
if (_response.error.reason === "status-code") {
|
|
326
|
+
switch (_response.error.statusCode) {
|
|
327
|
+
case 400:
|
|
328
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
329
|
+
case 401:
|
|
330
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
331
|
+
case 403:
|
|
332
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
333
|
+
case 429:
|
|
334
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
335
|
+
case 500:
|
|
336
|
+
throw new Management.InternalServerError(_response.error.body, _response.rawResponse);
|
|
337
|
+
default:
|
|
338
|
+
throw new errors.ManagementError({
|
|
339
|
+
statusCode: _response.error.statusCode,
|
|
340
|
+
body: _response.error.body,
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/clients/cimd/preview");
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* Idempotent registration for Client ID Metadata Document (CIMD) clients.
|
|
351
|
+
* Uses external_client_id as the unique identifier for upsert operations.
|
|
352
|
+
* **Create:** Returns 201 when a new client is created (requires \
|
|
353
|
+
*
|
|
354
|
+
* @param {Management.RegisterCimdClientRequestContent} request
|
|
355
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
357
|
+
* @throws {@link Management.BadRequestError}
|
|
358
|
+
* @throws {@link Management.UnauthorizedError}
|
|
359
|
+
* @throws {@link Management.ForbiddenError}
|
|
360
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
361
|
+
* @throws {@link Management.InternalServerError}
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* await client.clients.registerCimdClient({
|
|
365
|
+
* external_client_id: "external_client_id"
|
|
366
|
+
* })
|
|
367
|
+
*/
|
|
368
|
+
registerCimdClient(request, requestOptions) {
|
|
369
|
+
return core.HttpResponsePromise.fromPromise(this.__registerCimdClient(request, requestOptions));
|
|
370
|
+
}
|
|
371
|
+
__registerCimdClient(request, requestOptions) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
374
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
375
|
+
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);
|
|
376
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
377
|
+
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, "clients/cimd/register"),
|
|
378
|
+
method: "POST",
|
|
379
|
+
headers: _headers,
|
|
380
|
+
contentType: "application/json",
|
|
381
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
382
|
+
requestType: "json",
|
|
383
|
+
body: request,
|
|
384
|
+
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,
|
|
385
|
+
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,
|
|
386
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
387
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
388
|
+
logging: this._options.logging,
|
|
389
|
+
});
|
|
390
|
+
if (_response.ok) {
|
|
391
|
+
return {
|
|
392
|
+
data: _response.body,
|
|
393
|
+
rawResponse: _response.rawResponse,
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
if (_response.error.reason === "status-code") {
|
|
397
|
+
switch (_response.error.statusCode) {
|
|
398
|
+
case 400:
|
|
399
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
400
|
+
case 401:
|
|
401
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
402
|
+
case 403:
|
|
403
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
404
|
+
case 429:
|
|
405
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
406
|
+
case 500:
|
|
407
|
+
throw new Management.InternalServerError(_response.error.body, _response.rawResponse);
|
|
408
|
+
default:
|
|
409
|
+
throw new errors.ManagementError({
|
|
410
|
+
statusCode: _response.error.statusCode,
|
|
411
|
+
body: _response.error.body,
|
|
412
|
+
rawResponse: _response.rawResponse,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/clients/cimd/register");
|
|
417
|
+
});
|
|
418
|
+
}
|
|
274
419
|
/**
|
|
275
420
|
* Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified.
|
|
276
421
|
* For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
|
|
@@ -63,6 +63,36 @@ export declare class CustomDomainsClient {
|
|
|
63
63
|
*/
|
|
64
64
|
create(request: Management.CreateCustomDomainRequestContent, requestOptions?: CustomDomainsClient.RequestOptions): core.HttpResponsePromise<Management.CreateCustomDomainResponseContent>;
|
|
65
65
|
private __create;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieve the tenant's default domain.
|
|
68
|
+
*
|
|
69
|
+
* @param {CustomDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link Management.UnauthorizedError}
|
|
72
|
+
* @throws {@link Management.ForbiddenError}
|
|
73
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.customDomains.getDefault()
|
|
77
|
+
*/
|
|
78
|
+
getDefault(requestOptions?: CustomDomainsClient.RequestOptions): core.HttpResponsePromise<Management.GetDefaultDomainResponseContent>;
|
|
79
|
+
private __getDefault;
|
|
80
|
+
/**
|
|
81
|
+
* Set the default custom domain for the tenant.
|
|
82
|
+
*
|
|
83
|
+
* @param {Management.SetDefaultCustomDomainRequestContent} request
|
|
84
|
+
* @param {CustomDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link Management.BadRequestError}
|
|
87
|
+
* @throws {@link Management.ForbiddenError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.customDomains.setDefault({
|
|
91
|
+
* domain: "domain"
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
setDefault(request: Management.SetDefaultCustomDomainRequestContent, requestOptions?: CustomDomainsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateDefaultDomainResponseContent>;
|
|
95
|
+
private __setDefault;
|
|
66
96
|
/**
|
|
67
97
|
* Retrieve a custom domain configuration and status.
|
|
68
98
|
*
|
|
@@ -206,6 +206,121 @@ class CustomDomainsClient {
|
|
|
206
206
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/custom-domains");
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Retrieve the tenant's default domain.
|
|
211
|
+
*
|
|
212
|
+
* @param {CustomDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
|
+
*
|
|
214
|
+
* @throws {@link Management.UnauthorizedError}
|
|
215
|
+
* @throws {@link Management.ForbiddenError}
|
|
216
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* await client.customDomains.getDefault()
|
|
220
|
+
*/
|
|
221
|
+
getDefault(requestOptions) {
|
|
222
|
+
return core.HttpResponsePromise.fromPromise(this.__getDefault(requestOptions));
|
|
223
|
+
}
|
|
224
|
+
__getDefault(requestOptions) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
227
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
228
|
+
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);
|
|
229
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
230
|
+
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, "custom-domains/default"),
|
|
231
|
+
method: "GET",
|
|
232
|
+
headers: _headers,
|
|
233
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
|
+
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,
|
|
235
|
+
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,
|
|
236
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
237
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
238
|
+
logging: this._options.logging,
|
|
239
|
+
});
|
|
240
|
+
if (_response.ok) {
|
|
241
|
+
return {
|
|
242
|
+
data: _response.body,
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 401:
|
|
249
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 403:
|
|
251
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 429:
|
|
253
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
254
|
+
default:
|
|
255
|
+
throw new errors.ManagementError({
|
|
256
|
+
statusCode: _response.error.statusCode,
|
|
257
|
+
body: _response.error.body,
|
|
258
|
+
rawResponse: _response.rawResponse,
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/custom-domains/default");
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Set the default custom domain for the tenant.
|
|
267
|
+
*
|
|
268
|
+
* @param {Management.SetDefaultCustomDomainRequestContent} request
|
|
269
|
+
* @param {CustomDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
270
|
+
*
|
|
271
|
+
* @throws {@link Management.BadRequestError}
|
|
272
|
+
* @throws {@link Management.ForbiddenError}
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* await client.customDomains.setDefault({
|
|
276
|
+
* domain: "domain"
|
|
277
|
+
* })
|
|
278
|
+
*/
|
|
279
|
+
setDefault(request, requestOptions) {
|
|
280
|
+
return core.HttpResponsePromise.fromPromise(this.__setDefault(request, requestOptions));
|
|
281
|
+
}
|
|
282
|
+
__setDefault(request, requestOptions) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
285
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
286
|
+
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);
|
|
287
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
288
|
+
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, "custom-domains/default"),
|
|
289
|
+
method: "PATCH",
|
|
290
|
+
headers: _headers,
|
|
291
|
+
contentType: "application/json",
|
|
292
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
293
|
+
requestType: "json",
|
|
294
|
+
body: request,
|
|
295
|
+
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,
|
|
296
|
+
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,
|
|
297
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
298
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
299
|
+
logging: this._options.logging,
|
|
300
|
+
});
|
|
301
|
+
if (_response.ok) {
|
|
302
|
+
return {
|
|
303
|
+
data: _response.body,
|
|
304
|
+
rawResponse: _response.rawResponse,
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
if (_response.error.reason === "status-code") {
|
|
308
|
+
switch (_response.error.statusCode) {
|
|
309
|
+
case 400:
|
|
310
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
311
|
+
case 403:
|
|
312
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
313
|
+
default:
|
|
314
|
+
throw new errors.ManagementError({
|
|
315
|
+
statusCode: _response.error.statusCode,
|
|
316
|
+
body: _response.error.body,
|
|
317
|
+
rawResponse: _response.rawResponse,
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/custom-domains/default");
|
|
322
|
+
});
|
|
323
|
+
}
|
|
209
324
|
/**
|
|
210
325
|
* Retrieve a custom domain configuration and status.
|
|
211
326
|
*
|
|
@@ -53,4 +53,20 @@ export declare class GroupsClient {
|
|
|
53
53
|
*/
|
|
54
54
|
get(id: string, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Management.GetGroupResponseContent>;
|
|
55
55
|
private __get;
|
|
56
|
+
/**
|
|
57
|
+
* Delete a group by its ID.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
60
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Management.UnauthorizedError}
|
|
63
|
+
* @throws {@link Management.ForbiddenError}
|
|
64
|
+
* @throws {@link Management.NotFoundError}
|
|
65
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.groups.delete("id")
|
|
69
|
+
*/
|
|
70
|
+
delete(id: string, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
71
|
+
private __delete;
|
|
56
72
|
}
|
|
@@ -207,5 +207,62 @@ class GroupsClient {
|
|
|
207
207
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/groups/{id}");
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Delete a group by its ID.
|
|
212
|
+
*
|
|
213
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
214
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link Management.UnauthorizedError}
|
|
217
|
+
* @throws {@link Management.ForbiddenError}
|
|
218
|
+
* @throws {@link Management.NotFoundError}
|
|
219
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* await client.groups.delete("id")
|
|
223
|
+
*/
|
|
224
|
+
delete(id, requestOptions) {
|
|
225
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
226
|
+
}
|
|
227
|
+
__delete(id, requestOptions) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
230
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
231
|
+
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);
|
|
232
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
233
|
+
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, `groups/${core.url.encodePathParam(id)}`),
|
|
234
|
+
method: "DELETE",
|
|
235
|
+
headers: _headers,
|
|
236
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
237
|
+
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,
|
|
238
|
+
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,
|
|
239
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
240
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
241
|
+
logging: this._options.logging,
|
|
242
|
+
});
|
|
243
|
+
if (_response.ok) {
|
|
244
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 401:
|
|
249
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 403:
|
|
251
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 404:
|
|
253
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
254
|
+
case 429:
|
|
255
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
256
|
+
default:
|
|
257
|
+
throw new errors.ManagementError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.body,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/groups/{id}");
|
|
265
|
+
});
|
|
266
|
+
}
|
|
210
267
|
}
|
|
211
268
|
exports.GroupsClient = GroupsClient;
|
|
@@ -46,7 +46,6 @@ export declare class NetworkAclsClient {
|
|
|
46
46
|
* await client.networkAcls.create({
|
|
47
47
|
* description: "description",
|
|
48
48
|
* active: true,
|
|
49
|
-
* priority: 1.1,
|
|
50
49
|
* rule: {
|
|
51
50
|
* action: {},
|
|
52
51
|
* scope: "management"
|
|
@@ -88,7 +87,6 @@ export declare class NetworkAclsClient {
|
|
|
88
87
|
* await client.networkAcls.set("id", {
|
|
89
88
|
* description: "description",
|
|
90
89
|
* active: true,
|
|
91
|
-
* priority: 1.1,
|
|
92
90
|
* rule: {
|
|
93
91
|
* action: {},
|
|
94
92
|
* scope: "management"
|
|
@@ -153,7 +153,6 @@ class NetworkAclsClient {
|
|
|
153
153
|
* await client.networkAcls.create({
|
|
154
154
|
* description: "description",
|
|
155
155
|
* active: true,
|
|
156
|
-
* priority: 1.1,
|
|
157
156
|
* rule: {
|
|
158
157
|
* action: {},
|
|
159
158
|
* scope: "management"
|
|
@@ -287,7 +286,6 @@ class NetworkAclsClient {
|
|
|
287
286
|
* await client.networkAcls.set("id", {
|
|
288
287
|
* description: "description",
|
|
289
288
|
* active: true,
|
|
290
|
-
* priority: 1.1,
|
|
291
289
|
* rule: {
|
|
292
290
|
* action: {},
|
|
293
291
|
* scope: "management"
|
|
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Management from "../../../index.js";
|
|
5
5
|
import { ClientGrantsClient } from "../resources/clientGrants/client/Client.js";
|
|
6
|
+
import { ConnectionsClient } from "../resources/connections/client/Client.js";
|
|
6
7
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.js";
|
|
7
8
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.js";
|
|
8
9
|
import { InvitationsClient } from "../resources/invitations/client/Client.js";
|
|
@@ -15,12 +16,14 @@ export declare namespace OrganizationsClient {
|
|
|
15
16
|
export declare class OrganizationsClient {
|
|
16
17
|
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
17
18
|
protected _clientGrants: ClientGrantsClient | undefined;
|
|
19
|
+
protected _connections: ConnectionsClient | undefined;
|
|
18
20
|
protected _discoveryDomains: DiscoveryDomainsClient | undefined;
|
|
19
21
|
protected _enabledConnections: EnabledConnectionsClient | undefined;
|
|
20
22
|
protected _invitations: InvitationsClient | undefined;
|
|
21
23
|
protected _members: MembersClient | undefined;
|
|
22
24
|
constructor(options: OrganizationsClient.Options);
|
|
23
25
|
get clientGrants(): ClientGrantsClient;
|
|
26
|
+
get connections(): ConnectionsClient;
|
|
24
27
|
get discoveryDomains(): DiscoveryDomainsClient;
|
|
25
28
|
get enabledConnections(): EnabledConnectionsClient;
|
|
26
29
|
get invitations(): InvitationsClient;
|
|
@@ -52,10 +52,11 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
53
|
const Management = __importStar(require("../../../index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/clientGrants/client/Client.js");
|
|
55
|
-
const Client_js_2 = require("../resources/
|
|
56
|
-
const Client_js_3 = require("../resources/
|
|
57
|
-
const Client_js_4 = require("../resources/
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
55
|
+
const Client_js_2 = require("../resources/connections/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/discoveryDomains/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/enabledConnections/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/invitations/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/members/client/Client.js");
|
|
59
60
|
class OrganizationsClient {
|
|
60
61
|
constructor(options) {
|
|
61
62
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -64,21 +65,25 @@ class OrganizationsClient {
|
|
|
64
65
|
var _a;
|
|
65
66
|
return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new Client_js_1.ClientGrantsClient(this._options)));
|
|
66
67
|
}
|
|
68
|
+
get connections() {
|
|
69
|
+
var _a;
|
|
70
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_2.ConnectionsClient(this._options)));
|
|
71
|
+
}
|
|
67
72
|
get discoveryDomains() {
|
|
68
73
|
var _a;
|
|
69
|
-
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new
|
|
74
|
+
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new Client_js_3.DiscoveryDomainsClient(this._options)));
|
|
70
75
|
}
|
|
71
76
|
get enabledConnections() {
|
|
72
77
|
var _a;
|
|
73
|
-
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new
|
|
78
|
+
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new Client_js_4.EnabledConnectionsClient(this._options)));
|
|
74
79
|
}
|
|
75
80
|
get invitations() {
|
|
76
81
|
var _a;
|
|
77
|
-
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new
|
|
82
|
+
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_5.InvitationsClient(this._options)));
|
|
78
83
|
}
|
|
79
84
|
get members() {
|
|
80
85
|
var _a;
|
|
81
|
-
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new
|
|
86
|
+
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_6.MembersClient(this._options)));
|
|
82
87
|
}
|
|
83
88
|
/**
|
|
84
89
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|