auth0 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/management/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +93 -88
- package/dist/cjs/management/api/requests/requests.d.ts +175 -3
- package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
- package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
- package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
- package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/agents/exports.js +21 -0
- package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/index.js +17 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
- package/dist/cjs/management/api/types/types.d.ts +255 -10
- package/dist/cjs/management/api/types/types.js +70 -22
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/requests/requests.d.mts +175 -3
- package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
- package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
- package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
- package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/index.mjs +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
- package/dist/esm/management/api/types/types.d.mts +255 -10
- package/dist/esm/management/api/types/types.mjs +54 -6
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +45 -12
- package/reference.md +1463 -406
|
@@ -480,17 +480,19 @@ class DirectoryProvisioningClient {
|
|
|
480
480
|
* @example
|
|
481
481
|
* await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
|
|
482
482
|
* from: "from",
|
|
483
|
-
* take: 1
|
|
483
|
+
* take: 1,
|
|
484
|
+
* q: "q"
|
|
484
485
|
* })
|
|
485
486
|
*/
|
|
486
487
|
listSynchronizedGroups(id_1) {
|
|
487
488
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
488
489
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
489
490
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
490
|
-
const { from: from_, take = 50 } = request;
|
|
491
|
+
const { from: from_, take = 50, q } = request;
|
|
491
492
|
const _queryParams = {
|
|
492
493
|
from: from_,
|
|
493
494
|
take,
|
|
495
|
+
q,
|
|
494
496
|
};
|
|
495
497
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
496
498
|
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);
|
|
@@ -549,6 +551,74 @@ class DirectoryProvisioningClient {
|
|
|
549
551
|
});
|
|
550
552
|
});
|
|
551
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* Add synchronized group selections to a directory provisioning configuration.
|
|
556
|
+
*
|
|
557
|
+
* @param {string} id - The id of the connection to add synchronized groups to
|
|
558
|
+
* @param {Management.AddSynchronizedGroupsRequestContent} request
|
|
559
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
560
|
+
*
|
|
561
|
+
* @throws {@link Management.BadRequestError}
|
|
562
|
+
* @throws {@link Management.UnauthorizedError}
|
|
563
|
+
* @throws {@link Management.ForbiddenError}
|
|
564
|
+
* @throws {@link Management.NotFoundError}
|
|
565
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* await client.connections.directoryProvisioning.addSynchronizedGroupSelections("id", {
|
|
569
|
+
* groups: [{
|
|
570
|
+
* id: "id"
|
|
571
|
+
* }]
|
|
572
|
+
* })
|
|
573
|
+
*/
|
|
574
|
+
addSynchronizedGroupSelections(id, request, requestOptions) {
|
|
575
|
+
return core.HttpResponsePromise.fromPromise(this.__addSynchronizedGroupSelections(id, request, requestOptions));
|
|
576
|
+
}
|
|
577
|
+
__addSynchronizedGroupSelections(id, request, requestOptions) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
580
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
581
|
+
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);
|
|
582
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
583
|
+
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, `connections/${core.url.encodePathParam(id)}/directory-provisioning/synchronized-groups`),
|
|
584
|
+
method: "POST",
|
|
585
|
+
headers: _headers,
|
|
586
|
+
contentType: "application/json",
|
|
587
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
588
|
+
requestType: "json",
|
|
589
|
+
body: request,
|
|
590
|
+
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,
|
|
591
|
+
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,
|
|
592
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
593
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
594
|
+
logging: this._options.logging,
|
|
595
|
+
});
|
|
596
|
+
if (_response.ok) {
|
|
597
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
598
|
+
}
|
|
599
|
+
if (_response.error.reason === "status-code") {
|
|
600
|
+
switch (_response.error.statusCode) {
|
|
601
|
+
case 400:
|
|
602
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
603
|
+
case 401:
|
|
604
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
605
|
+
case 403:
|
|
606
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
607
|
+
case 404:
|
|
608
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
609
|
+
case 429:
|
|
610
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
611
|
+
default:
|
|
612
|
+
throw new errors.ManagementError({
|
|
613
|
+
statusCode: _response.error.statusCode,
|
|
614
|
+
body: _response.error.body,
|
|
615
|
+
rawResponse: _response.rawResponse,
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
620
|
+
});
|
|
621
|
+
}
|
|
552
622
|
/**
|
|
553
623
|
* Create or replace the selected groups for a connection directory provisioning configuration.
|
|
554
624
|
*
|
|
@@ -620,5 +690,73 @@ class DirectoryProvisioningClient {
|
|
|
620
690
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
621
691
|
});
|
|
622
692
|
}
|
|
693
|
+
/**
|
|
694
|
+
* Delete synchronized group selections for a directory provisioning configuration
|
|
695
|
+
*
|
|
696
|
+
* @param {string} id - The id of the connection to delete synchronized group selections for
|
|
697
|
+
* @param {Management.DeleteSynchronizedGroupsRequestContent} request
|
|
698
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
699
|
+
*
|
|
700
|
+
* @throws {@link Management.BadRequestError}
|
|
701
|
+
* @throws {@link Management.UnauthorizedError}
|
|
702
|
+
* @throws {@link Management.ForbiddenError}
|
|
703
|
+
* @throws {@link Management.NotFoundError}
|
|
704
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
705
|
+
*
|
|
706
|
+
* @example
|
|
707
|
+
* await client.connections.directoryProvisioning.deleteSynchronizedGroupSelections("id", {
|
|
708
|
+
* groups: [{
|
|
709
|
+
* id: "id"
|
|
710
|
+
* }]
|
|
711
|
+
* })
|
|
712
|
+
*/
|
|
713
|
+
deleteSynchronizedGroupSelections(id, request, requestOptions) {
|
|
714
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteSynchronizedGroupSelections(id, request, requestOptions));
|
|
715
|
+
}
|
|
716
|
+
__deleteSynchronizedGroupSelections(id, request, requestOptions) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
718
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
719
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
720
|
+
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);
|
|
721
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
722
|
+
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, `connections/${core.url.encodePathParam(id)}/directory-provisioning/synchronized-groups`),
|
|
723
|
+
method: "DELETE",
|
|
724
|
+
headers: _headers,
|
|
725
|
+
contentType: "application/json",
|
|
726
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
727
|
+
requestType: "json",
|
|
728
|
+
body: request,
|
|
729
|
+
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,
|
|
730
|
+
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,
|
|
731
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
732
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
733
|
+
logging: this._options.logging,
|
|
734
|
+
});
|
|
735
|
+
if (_response.ok) {
|
|
736
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
737
|
+
}
|
|
738
|
+
if (_response.error.reason === "status-code") {
|
|
739
|
+
switch (_response.error.statusCode) {
|
|
740
|
+
case 400:
|
|
741
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
742
|
+
case 401:
|
|
743
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
744
|
+
case 403:
|
|
745
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
746
|
+
case 404:
|
|
747
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
748
|
+
case 429:
|
|
749
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
750
|
+
default:
|
|
751
|
+
throw new errors.ManagementError({
|
|
752
|
+
statusCode: _response.error.statusCode,
|
|
753
|
+
body: _response.error.body,
|
|
754
|
+
rawResponse: _response.rawResponse,
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
759
|
+
});
|
|
760
|
+
}
|
|
623
761
|
}
|
|
624
762
|
exports.DirectoryProvisioningClient = DirectoryProvisioningClient;
|
package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts
CHANGED
|
@@ -31,8 +31,7 @@ export declare class DeliveriesClient {
|
|
|
31
31
|
* take: 1
|
|
32
32
|
* })
|
|
33
33
|
*/
|
|
34
|
-
list(id: string, request?: Management.ListEventStreamDeliveriesRequestParameters, requestOptions?: DeliveriesClient.RequestOptions): core.
|
|
35
|
-
private __list;
|
|
34
|
+
list(id: string, request?: Management.ListEventStreamDeliveriesRequestParameters, requestOptions?: DeliveriesClient.RequestOptions): Promise<core.Page<Management.EventStreamDelivery, Management.ListEventStreamDeliveriesResponseContent>>;
|
|
36
35
|
/**
|
|
37
36
|
* @param {string} id - Unique identifier for the event stream.
|
|
38
37
|
* @param {string} event_id - Unique identifier for the event
|
package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js
CHANGED
|
@@ -76,62 +76,74 @@ class DeliveriesClient {
|
|
|
76
76
|
* take: 1
|
|
77
77
|
* })
|
|
78
78
|
*/
|
|
79
|
-
list(
|
|
80
|
-
return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
|
|
81
|
-
}
|
|
82
|
-
__list(id_1) {
|
|
79
|
+
list(id_1) {
|
|
83
80
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
118
|
-
case 401:
|
|
119
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
120
|
-
case 403:
|
|
121
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
122
|
-
case 404:
|
|
123
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
124
|
-
case 429:
|
|
125
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
126
|
-
default:
|
|
127
|
-
throw new errors.ManagementError({
|
|
128
|
-
statusCode: _response.error.statusCode,
|
|
129
|
-
body: _response.error.body,
|
|
130
|
-
rawResponse: _response.rawResponse,
|
|
131
|
-
});
|
|
81
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
|
+
const { statuses, event_types: eventTypes, date_from: dateFrom, date_to: dateTo, from: from_, take = 50, } = request;
|
|
84
|
+
const _queryParams = {
|
|
85
|
+
statuses,
|
|
86
|
+
event_types: eventTypes,
|
|
87
|
+
date_from: dateFrom,
|
|
88
|
+
date_to: dateTo,
|
|
89
|
+
from: from_,
|
|
90
|
+
take,
|
|
91
|
+
};
|
|
92
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
93
|
+
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);
|
|
94
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
95
|
+
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, `event-streams/${core.url.encodePathParam(id)}/deliveries`),
|
|
96
|
+
method: "GET",
|
|
97
|
+
headers: _headers,
|
|
98
|
+
queryString: core.url
|
|
99
|
+
.queryBuilder()
|
|
100
|
+
.addMany(_queryParams)
|
|
101
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
102
|
+
.build(),
|
|
103
|
+
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,
|
|
104
|
+
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,
|
|
105
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
107
|
+
logging: this._options.logging,
|
|
108
|
+
});
|
|
109
|
+
if (_response.ok) {
|
|
110
|
+
return {
|
|
111
|
+
data: _response.body,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
};
|
|
132
114
|
}
|
|
133
|
-
|
|
134
|
-
|
|
115
|
+
if (_response.error.reason === "status-code") {
|
|
116
|
+
switch (_response.error.statusCode) {
|
|
117
|
+
case 400:
|
|
118
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 401:
|
|
120
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 403:
|
|
122
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 404:
|
|
124
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
125
|
+
case 429:
|
|
126
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
127
|
+
default:
|
|
128
|
+
throw new errors.ManagementError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.body,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/event-streams/{id}/deliveries");
|
|
136
|
+
}));
|
|
137
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
138
|
+
return new core.Page({
|
|
139
|
+
response: dataWithRawResponse.data,
|
|
140
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
141
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next) != null && !(typeof (response === null || response === void 0 ? void 0 : response.next) === "string" && (response === null || response === void 0 ? void 0 : response.next) === ""),
|
|
142
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.deliveries) !== null && _a !== void 0 ? _a : []; },
|
|
143
|
+
loadPage: (response) => {
|
|
144
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
145
|
+
},
|
|
146
|
+
});
|
|
135
147
|
});
|
|
136
148
|
}
|
|
137
149
|
/**
|
|
@@ -67,6 +67,7 @@ class ExecutionsClient {
|
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* await client.flows.executions.list("flow_id", {
|
|
70
|
+
* include_totals: true,
|
|
70
71
|
* from: "from",
|
|
71
72
|
* take: 1
|
|
72
73
|
* })
|
|
@@ -75,8 +76,9 @@ class ExecutionsClient {
|
|
|
75
76
|
return __awaiter(this, arguments, void 0, function* (flow_id, request = {}, requestOptions) {
|
|
76
77
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
77
78
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
78
|
-
const { from: from_, take = 50 } = request;
|
|
79
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
79
80
|
const _queryParams = {
|
|
81
|
+
include_totals: includeTotals,
|
|
80
82
|
from: from_,
|
|
81
83
|
take,
|
|
82
84
|
};
|
|
@@ -84,6 +84,7 @@ class GroupsClient {
|
|
|
84
84
|
* search: "search",
|
|
85
85
|
* fields: "fields",
|
|
86
86
|
* include_fields: true,
|
|
87
|
+
* include_totals: true,
|
|
87
88
|
* from: "from",
|
|
88
89
|
* take: 1
|
|
89
90
|
* })
|
|
@@ -92,7 +93,7 @@ class GroupsClient {
|
|
|
92
93
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
93
94
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
94
95
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
95
|
-
const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, from: from_, take = 50, } = request;
|
|
96
|
+
const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, include_totals: includeTotals = true, from: from_, take = 50, } = request;
|
|
96
97
|
const _queryParams = {
|
|
97
98
|
connection_id: connectionId,
|
|
98
99
|
name,
|
|
@@ -100,6 +101,7 @@ class GroupsClient {
|
|
|
100
101
|
search,
|
|
101
102
|
fields,
|
|
102
103
|
include_fields: includeFields,
|
|
104
|
+
include_totals: includeTotals,
|
|
103
105
|
from: from_,
|
|
104
106
|
take,
|
|
105
107
|
};
|
|
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.rateLimitPolicies = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.actions = void 0;
|
|
39
|
+
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.rateLimitPolicies = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.agents = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions/index.js"));
|
|
41
|
+
exports.agents = __importStar(require("./agents/index.js"));
|
|
41
42
|
exports.anomaly = __importStar(require("./anomaly/index.js"));
|
|
42
43
|
exports.attackProtection = __importStar(require("./attackProtection/index.js"));
|
|
43
44
|
exports.branding = __importStar(require("./branding/index.js"));
|
|
@@ -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 { ClientsClient } from "../resources/clients/client/Client.js";
|
|
6
7
|
import { ConnectionsClient } from "../resources/connections/client/Client.js";
|
|
7
8
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.js";
|
|
8
9
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.js";
|
|
@@ -18,6 +19,7 @@ export declare namespace OrganizationsClient {
|
|
|
18
19
|
export declare class OrganizationsClient {
|
|
19
20
|
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
20
21
|
protected _clientGrants: ClientGrantsClient | undefined;
|
|
22
|
+
protected _clients: ClientsClient | undefined;
|
|
21
23
|
protected _connections: ConnectionsClient | undefined;
|
|
22
24
|
protected _discoveryDomains: DiscoveryDomainsClient | undefined;
|
|
23
25
|
protected _enabledConnections: EnabledConnectionsClient | undefined;
|
|
@@ -27,6 +29,7 @@ export declare class OrganizationsClient {
|
|
|
27
29
|
protected _roles: RolesClient | undefined;
|
|
28
30
|
constructor(options: OrganizationsClient.Options);
|
|
29
31
|
get clientGrants(): ClientGrantsClient;
|
|
32
|
+
get clients(): ClientsClient;
|
|
30
33
|
get connections(): ConnectionsClient;
|
|
31
34
|
get discoveryDomains(): DiscoveryDomainsClient;
|
|
32
35
|
get enabledConnections(): EnabledConnectionsClient;
|
|
@@ -63,9 +66,11 @@ export declare class OrganizationsClient {
|
|
|
63
66
|
*
|
|
64
67
|
* @example
|
|
65
68
|
* await client.organizations.list({
|
|
69
|
+
* include_totals: true,
|
|
66
70
|
* from: "from",
|
|
67
71
|
* take: 1,
|
|
68
|
-
* sort: "sort"
|
|
72
|
+
* sort: "sort",
|
|
73
|
+
* include_client_association_for: "include_client_association_for"
|
|
69
74
|
* })
|
|
70
75
|
*/
|
|
71
76
|
list(request?: Management.ListOrganizationsRequestParameters, requestOptions?: OrganizationsClient.RequestOptions): Promise<core.Page<Management.Organization, Management.ListOrganizationsPaginatedResponseContent>>;
|
|
@@ -52,13 +52,14 @@ 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/
|
|
59
|
-
const Client_js_6 = require("../resources/
|
|
60
|
-
const Client_js_7 = require("../resources/
|
|
61
|
-
const Client_js_8 = require("../resources/
|
|
55
|
+
const Client_js_2 = require("../resources/clients/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/connections/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/discoveryDomains/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/enabledConnections/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/groups/client/Client.js");
|
|
60
|
+
const Client_js_7 = require("../resources/invitations/client/Client.js");
|
|
61
|
+
const Client_js_8 = require("../resources/members/client/Client.js");
|
|
62
|
+
const Client_js_9 = require("../resources/roles/client/Client.js");
|
|
62
63
|
class OrganizationsClient {
|
|
63
64
|
constructor(options) {
|
|
64
65
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -67,33 +68,37 @@ class OrganizationsClient {
|
|
|
67
68
|
var _a;
|
|
68
69
|
return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new Client_js_1.ClientGrantsClient(this._options)));
|
|
69
70
|
}
|
|
71
|
+
get clients() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new Client_js_2.ClientsClient(this._options)));
|
|
74
|
+
}
|
|
70
75
|
get connections() {
|
|
71
76
|
var _a;
|
|
72
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
77
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_3.ConnectionsClient(this._options)));
|
|
73
78
|
}
|
|
74
79
|
get discoveryDomains() {
|
|
75
80
|
var _a;
|
|
76
|
-
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new
|
|
81
|
+
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new Client_js_4.DiscoveryDomainsClient(this._options)));
|
|
77
82
|
}
|
|
78
83
|
get enabledConnections() {
|
|
79
84
|
var _a;
|
|
80
|
-
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new
|
|
85
|
+
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new Client_js_5.EnabledConnectionsClient(this._options)));
|
|
81
86
|
}
|
|
82
87
|
get invitations() {
|
|
83
88
|
var _a;
|
|
84
|
-
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new
|
|
89
|
+
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_7.InvitationsClient(this._options)));
|
|
85
90
|
}
|
|
86
91
|
get members() {
|
|
87
92
|
var _a;
|
|
88
|
-
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new
|
|
93
|
+
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_8.MembersClient(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get groups() {
|
|
91
96
|
var _a;
|
|
92
|
-
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new
|
|
97
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_6.GroupsClient(this._options)));
|
|
93
98
|
}
|
|
94
99
|
get roles() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new
|
|
101
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_9.RolesClient(this._options)));
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
@@ -124,20 +129,24 @@ class OrganizationsClient {
|
|
|
124
129
|
*
|
|
125
130
|
* @example
|
|
126
131
|
* await client.organizations.list({
|
|
132
|
+
* include_totals: true,
|
|
127
133
|
* from: "from",
|
|
128
134
|
* take: 1,
|
|
129
|
-
* sort: "sort"
|
|
135
|
+
* sort: "sort",
|
|
136
|
+
* include_client_association_for: "include_client_association_for"
|
|
130
137
|
* })
|
|
131
138
|
*/
|
|
132
139
|
list() {
|
|
133
140
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
134
141
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
135
142
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
136
|
-
const { from: from_, take = 50, sort } = request;
|
|
143
|
+
const { include_totals: includeTotals = true, from: from_, take = 50, sort, include_client_association_for: includeClientAssociationFor, } = request;
|
|
137
144
|
const _queryParams = {
|
|
145
|
+
include_totals: includeTotals,
|
|
138
146
|
from: from_,
|
|
139
147
|
take,
|
|
140
148
|
sort,
|
|
149
|
+
include_client_association_for: includeClientAssociationFor,
|
|
141
150
|
};
|
|
142
151
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
143
152
|
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);
|