auth0 6.1.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +203 -14
- 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/clients/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/connections/client/Client.js +4 -2
- 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/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +9 -1
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
- 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/keys/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
- 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 +387 -34
- package/dist/cjs/management/api/types/types.js +92 -15
- 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 +203 -14
- 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/clients/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/connections/client/Client.mjs +4 -2
- 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/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +9 -1
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
- 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/keys/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/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 +387 -34
- package/dist/esm/management/api/types/types.mjs +77 -0
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +56 -12
- package/reference.md +3088 -1844
|
@@ -444,17 +444,19 @@ export class DirectoryProvisioningClient {
|
|
|
444
444
|
* @example
|
|
445
445
|
* await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
|
|
446
446
|
* from: "from",
|
|
447
|
-
* take: 1
|
|
447
|
+
* take: 1,
|
|
448
|
+
* q: "q"
|
|
448
449
|
* })
|
|
449
450
|
*/
|
|
450
451
|
listSynchronizedGroups(id_1) {
|
|
451
452
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
452
453
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
453
454
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
454
|
-
const { from: from_, take = 50 } = request;
|
|
455
|
+
const { from: from_, take = 50, q } = request;
|
|
455
456
|
const _queryParams = {
|
|
456
457
|
from: from_,
|
|
457
458
|
take,
|
|
459
|
+
q,
|
|
458
460
|
};
|
|
459
461
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
460
462
|
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -513,6 +515,74 @@ export class DirectoryProvisioningClient {
|
|
|
513
515
|
});
|
|
514
516
|
});
|
|
515
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Add synchronized group selections to a directory provisioning configuration.
|
|
520
|
+
*
|
|
521
|
+
* @param {string} id - The id of the connection to add synchronized groups to
|
|
522
|
+
* @param {Management.AddSynchronizedGroupsRequestContent} request
|
|
523
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
524
|
+
*
|
|
525
|
+
* @throws {@link Management.BadRequestError}
|
|
526
|
+
* @throws {@link Management.UnauthorizedError}
|
|
527
|
+
* @throws {@link Management.ForbiddenError}
|
|
528
|
+
* @throws {@link Management.NotFoundError}
|
|
529
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
530
|
+
*
|
|
531
|
+
* @example
|
|
532
|
+
* await client.connections.directoryProvisioning.addSynchronizedGroupSelections("id", {
|
|
533
|
+
* groups: [{
|
|
534
|
+
* id: "id"
|
|
535
|
+
* }]
|
|
536
|
+
* })
|
|
537
|
+
*/
|
|
538
|
+
addSynchronizedGroupSelections(id, request, requestOptions) {
|
|
539
|
+
return core.HttpResponsePromise.fromPromise(this.__addSynchronizedGroupSelections(id, request, requestOptions));
|
|
540
|
+
}
|
|
541
|
+
__addSynchronizedGroupSelections(id, request, requestOptions) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
544
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
545
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
546
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
547
|
+
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`),
|
|
548
|
+
method: "POST",
|
|
549
|
+
headers: _headers,
|
|
550
|
+
contentType: "application/json",
|
|
551
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
552
|
+
requestType: "json",
|
|
553
|
+
body: request,
|
|
554
|
+
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,
|
|
555
|
+
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,
|
|
556
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
557
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
558
|
+
logging: this._options.logging,
|
|
559
|
+
});
|
|
560
|
+
if (_response.ok) {
|
|
561
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
562
|
+
}
|
|
563
|
+
if (_response.error.reason === "status-code") {
|
|
564
|
+
switch (_response.error.statusCode) {
|
|
565
|
+
case 400:
|
|
566
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
567
|
+
case 401:
|
|
568
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
569
|
+
case 403:
|
|
570
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
571
|
+
case 404:
|
|
572
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
573
|
+
case 429:
|
|
574
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
575
|
+
default:
|
|
576
|
+
throw new errors.ManagementError({
|
|
577
|
+
statusCode: _response.error.statusCode,
|
|
578
|
+
body: _response.error.body,
|
|
579
|
+
rawResponse: _response.rawResponse,
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
584
|
+
});
|
|
585
|
+
}
|
|
516
586
|
/**
|
|
517
587
|
* Create or replace the selected groups for a connection directory provisioning configuration.
|
|
518
588
|
*
|
|
@@ -584,4 +654,72 @@ export class DirectoryProvisioningClient {
|
|
|
584
654
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
585
655
|
});
|
|
586
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Delete synchronized group selections for a directory provisioning configuration
|
|
659
|
+
*
|
|
660
|
+
* @param {string} id - The id of the connection to delete synchronized group selections for
|
|
661
|
+
* @param {Management.DeleteSynchronizedGroupsRequestContent} request
|
|
662
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
663
|
+
*
|
|
664
|
+
* @throws {@link Management.BadRequestError}
|
|
665
|
+
* @throws {@link Management.UnauthorizedError}
|
|
666
|
+
* @throws {@link Management.ForbiddenError}
|
|
667
|
+
* @throws {@link Management.NotFoundError}
|
|
668
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
669
|
+
*
|
|
670
|
+
* @example
|
|
671
|
+
* await client.connections.directoryProvisioning.deleteSynchronizedGroupSelections("id", {
|
|
672
|
+
* groups: [{
|
|
673
|
+
* id: "id"
|
|
674
|
+
* }]
|
|
675
|
+
* })
|
|
676
|
+
*/
|
|
677
|
+
deleteSynchronizedGroupSelections(id, request, requestOptions) {
|
|
678
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteSynchronizedGroupSelections(id, request, requestOptions));
|
|
679
|
+
}
|
|
680
|
+
__deleteSynchronizedGroupSelections(id, request, requestOptions) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
683
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
684
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
685
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
686
|
+
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`),
|
|
687
|
+
method: "DELETE",
|
|
688
|
+
headers: _headers,
|
|
689
|
+
contentType: "application/json",
|
|
690
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
691
|
+
requestType: "json",
|
|
692
|
+
body: request,
|
|
693
|
+
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,
|
|
694
|
+
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,
|
|
695
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
696
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
697
|
+
logging: this._options.logging,
|
|
698
|
+
});
|
|
699
|
+
if (_response.ok) {
|
|
700
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
701
|
+
}
|
|
702
|
+
if (_response.error.reason === "status-code") {
|
|
703
|
+
switch (_response.error.statusCode) {
|
|
704
|
+
case 400:
|
|
705
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
706
|
+
case 401:
|
|
707
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
708
|
+
case 403:
|
|
709
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
710
|
+
case 404:
|
|
711
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
712
|
+
case 429:
|
|
713
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
714
|
+
default:
|
|
715
|
+
throw new errors.ManagementError({
|
|
716
|
+
statusCode: _response.error.statusCode,
|
|
717
|
+
body: _response.error.body,
|
|
718
|
+
rawResponse: _response.rawResponse,
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
723
|
+
});
|
|
724
|
+
}
|
|
587
725
|
}
|
package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts
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/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs
CHANGED
|
@@ -40,62 +40,74 @@ export class DeliveriesClient {
|
|
|
40
40
|
* take: 1
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
list(
|
|
44
|
-
return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
|
|
45
|
-
}
|
|
46
|
-
__list(id_1) {
|
|
43
|
+
list(id_1) {
|
|
47
44
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
82
|
-
case 401:
|
|
83
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
84
|
-
case 403:
|
|
85
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
86
|
-
case 404:
|
|
87
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
88
|
-
case 429:
|
|
89
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
90
|
-
default:
|
|
91
|
-
throw new errors.ManagementError({
|
|
92
|
-
statusCode: _response.error.statusCode,
|
|
93
|
-
body: _response.error.body,
|
|
94
|
-
rawResponse: _response.rawResponse,
|
|
95
|
-
});
|
|
45
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47
|
+
const { statuses, event_types: eventTypes, date_from: dateFrom, date_to: dateTo, from: from_, take = 50, } = request;
|
|
48
|
+
const _queryParams = {
|
|
49
|
+
statuses,
|
|
50
|
+
event_types: eventTypes,
|
|
51
|
+
date_from: dateFrom,
|
|
52
|
+
date_to: dateTo,
|
|
53
|
+
from: from_,
|
|
54
|
+
take,
|
|
55
|
+
};
|
|
56
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
57
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
59
|
+
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`),
|
|
60
|
+
method: "GET",
|
|
61
|
+
headers: _headers,
|
|
62
|
+
queryString: core.url
|
|
63
|
+
.queryBuilder()
|
|
64
|
+
.addMany(_queryParams)
|
|
65
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
66
|
+
.build(),
|
|
67
|
+
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,
|
|
68
|
+
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,
|
|
69
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
70
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
71
|
+
logging: this._options.logging,
|
|
72
|
+
});
|
|
73
|
+
if (_response.ok) {
|
|
74
|
+
return {
|
|
75
|
+
data: _response.body,
|
|
76
|
+
rawResponse: _response.rawResponse,
|
|
77
|
+
};
|
|
96
78
|
}
|
|
97
|
-
|
|
98
|
-
|
|
79
|
+
if (_response.error.reason === "status-code") {
|
|
80
|
+
switch (_response.error.statusCode) {
|
|
81
|
+
case 400:
|
|
82
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
83
|
+
case 401:
|
|
84
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
85
|
+
case 403:
|
|
86
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
87
|
+
case 404:
|
|
88
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
89
|
+
case 429:
|
|
90
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
91
|
+
default:
|
|
92
|
+
throw new errors.ManagementError({
|
|
93
|
+
statusCode: _response.error.statusCode,
|
|
94
|
+
body: _response.error.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/event-streams/{id}/deliveries");
|
|
100
|
+
}));
|
|
101
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
102
|
+
return new core.Page({
|
|
103
|
+
response: dataWithRawResponse.data,
|
|
104
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
105
|
+
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) === ""),
|
|
106
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.deliveries) !== null && _a !== void 0 ? _a : []; },
|
|
107
|
+
loadPage: (response) => {
|
|
108
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
109
|
+
},
|
|
110
|
+
});
|
|
99
111
|
});
|
|
100
112
|
}
|
|
101
113
|
/**
|
|
@@ -77,6 +77,7 @@ export declare class FlowsClient {
|
|
|
77
77
|
* @throws {@link Management.UnauthorizedError}
|
|
78
78
|
* @throws {@link Management.ForbiddenError}
|
|
79
79
|
* @throws {@link Management.NotFoundError}
|
|
80
|
+
* @throws {@link Management.ConflictError}
|
|
80
81
|
* @throws {@link Management.TooManyRequestsError}
|
|
81
82
|
*
|
|
82
83
|
* @example
|
|
@@ -89,6 +90,7 @@ export declare class FlowsClient {
|
|
|
89
90
|
* @param {Management.UpdateFlowRequestContent} request
|
|
90
91
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
92
|
*
|
|
93
|
+
* @throws {@link Management.BadRequestError}
|
|
92
94
|
* @throws {@link Management.UnauthorizedError}
|
|
93
95
|
* @throws {@link Management.ForbiddenError}
|
|
94
96
|
* @throws {@link Management.NotFoundError}
|
|
@@ -261,6 +261,7 @@ export class FlowsClient {
|
|
|
261
261
|
* @throws {@link Management.UnauthorizedError}
|
|
262
262
|
* @throws {@link Management.ForbiddenError}
|
|
263
263
|
* @throws {@link Management.NotFoundError}
|
|
264
|
+
* @throws {@link Management.ConflictError}
|
|
264
265
|
* @throws {@link Management.TooManyRequestsError}
|
|
265
266
|
*
|
|
266
267
|
* @example
|
|
@@ -298,6 +299,8 @@ export class FlowsClient {
|
|
|
298
299
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
299
300
|
case 404:
|
|
300
301
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
302
|
+
case 409:
|
|
303
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
301
304
|
case 429:
|
|
302
305
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
303
306
|
default:
|
|
@@ -316,6 +319,7 @@ export class FlowsClient {
|
|
|
316
319
|
* @param {Management.UpdateFlowRequestContent} request
|
|
317
320
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
318
321
|
*
|
|
322
|
+
* @throws {@link Management.BadRequestError}
|
|
319
323
|
* @throws {@link Management.UnauthorizedError}
|
|
320
324
|
* @throws {@link Management.ForbiddenError}
|
|
321
325
|
* @throws {@link Management.NotFoundError}
|
|
@@ -351,6 +355,8 @@ export class FlowsClient {
|
|
|
351
355
|
}
|
|
352
356
|
if (_response.error.reason === "status-code") {
|
|
353
357
|
switch (_response.error.statusCode) {
|
|
358
|
+
case 400:
|
|
359
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
354
360
|
case 401:
|
|
355
361
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
356
362
|
case 403:
|
|
@@ -18,10 +18,12 @@ export declare class ExecutionsClient {
|
|
|
18
18
|
* @throws {@link Management.BadRequestError}
|
|
19
19
|
* @throws {@link Management.UnauthorizedError}
|
|
20
20
|
* @throws {@link Management.ForbiddenError}
|
|
21
|
+
* @throws {@link Management.NotFoundError}
|
|
21
22
|
* @throws {@link Management.TooManyRequestsError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* await client.flows.executions.list("flow_id", {
|
|
26
|
+
* include_totals: true,
|
|
25
27
|
* from: "from",
|
|
26
28
|
* take: 1
|
|
27
29
|
* })
|
|
@@ -36,6 +38,7 @@ export declare class ExecutionsClient {
|
|
|
36
38
|
* @throws {@link Management.BadRequestError}
|
|
37
39
|
* @throws {@link Management.UnauthorizedError}
|
|
38
40
|
* @throws {@link Management.ForbiddenError}
|
|
41
|
+
* @throws {@link Management.NotFoundError}
|
|
39
42
|
* @throws {@link Management.TooManyRequestsError}
|
|
40
43
|
*
|
|
41
44
|
* @example
|
|
@@ -27,10 +27,12 @@ export class ExecutionsClient {
|
|
|
27
27
|
* @throws {@link Management.BadRequestError}
|
|
28
28
|
* @throws {@link Management.UnauthorizedError}
|
|
29
29
|
* @throws {@link Management.ForbiddenError}
|
|
30
|
+
* @throws {@link Management.NotFoundError}
|
|
30
31
|
* @throws {@link Management.TooManyRequestsError}
|
|
31
32
|
*
|
|
32
33
|
* @example
|
|
33
34
|
* await client.flows.executions.list("flow_id", {
|
|
35
|
+
* include_totals: true,
|
|
34
36
|
* from: "from",
|
|
35
37
|
* take: 1
|
|
36
38
|
* })
|
|
@@ -39,8 +41,9 @@ export class ExecutionsClient {
|
|
|
39
41
|
return __awaiter(this, arguments, void 0, function* (flow_id, request = {}, requestOptions) {
|
|
40
42
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
41
43
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
42
|
-
const { from: from_, take = 50 } = request;
|
|
44
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
43
45
|
const _queryParams = {
|
|
46
|
+
include_totals: includeTotals,
|
|
44
47
|
from: from_,
|
|
45
48
|
take,
|
|
46
49
|
};
|
|
@@ -75,6 +78,8 @@ export class ExecutionsClient {
|
|
|
75
78
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
76
79
|
case 403:
|
|
77
80
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 404:
|
|
82
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
78
83
|
case 429:
|
|
79
84
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
80
85
|
default:
|
|
@@ -108,6 +113,7 @@ export class ExecutionsClient {
|
|
|
108
113
|
* @throws {@link Management.BadRequestError}
|
|
109
114
|
* @throws {@link Management.UnauthorizedError}
|
|
110
115
|
* @throws {@link Management.ForbiddenError}
|
|
116
|
+
* @throws {@link Management.NotFoundError}
|
|
111
117
|
* @throws {@link Management.TooManyRequestsError}
|
|
112
118
|
*
|
|
113
119
|
* @example
|
|
@@ -156,6 +162,8 @@ export class ExecutionsClient {
|
|
|
156
162
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
157
163
|
case 403:
|
|
158
164
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
165
|
+
case 404:
|
|
166
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
159
167
|
case 429:
|
|
160
168
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
161
169
|
default:
|
|
@@ -81,8 +81,10 @@ export declare class FormsClient {
|
|
|
81
81
|
* @param {Management.UpdateFormRequestContent} request
|
|
82
82
|
* @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
83
|
*
|
|
84
|
+
* @throws {@link Management.BadRequestError}
|
|
84
85
|
* @throws {@link Management.UnauthorizedError}
|
|
85
86
|
* @throws {@link Management.ForbiddenError}
|
|
87
|
+
* @throws {@link Management.NotFoundError}
|
|
86
88
|
* @throws {@link Management.TooManyRequestsError}
|
|
87
89
|
*
|
|
88
90
|
* @example
|
|
@@ -301,8 +301,10 @@ export class FormsClient {
|
|
|
301
301
|
* @param {Management.UpdateFormRequestContent} request
|
|
302
302
|
* @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
303
|
*
|
|
304
|
+
* @throws {@link Management.BadRequestError}
|
|
304
305
|
* @throws {@link Management.UnauthorizedError}
|
|
305
306
|
* @throws {@link Management.ForbiddenError}
|
|
307
|
+
* @throws {@link Management.NotFoundError}
|
|
306
308
|
* @throws {@link Management.TooManyRequestsError}
|
|
307
309
|
*
|
|
308
310
|
* @example
|
|
@@ -335,10 +337,14 @@ export class FormsClient {
|
|
|
335
337
|
}
|
|
336
338
|
if (_response.error.reason === "status-code") {
|
|
337
339
|
switch (_response.error.statusCode) {
|
|
340
|
+
case 400:
|
|
341
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
338
342
|
case 401:
|
|
339
343
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
340
344
|
case 403:
|
|
341
345
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
346
|
+
case 404:
|
|
347
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
342
348
|
case 429:
|
|
343
349
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
344
350
|
default:
|
|
@@ -48,6 +48,7 @@ export class GroupsClient {
|
|
|
48
48
|
* search: "search",
|
|
49
49
|
* fields: "fields",
|
|
50
50
|
* include_fields: true,
|
|
51
|
+
* include_totals: true,
|
|
51
52
|
* from: "from",
|
|
52
53
|
* take: 1
|
|
53
54
|
* })
|
|
@@ -56,7 +57,7 @@ export class GroupsClient {
|
|
|
56
57
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
57
58
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
58
59
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
59
|
-
const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, from: from_, take = 50, } = request;
|
|
60
|
+
const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, include_totals: includeTotals = true, from: from_, take = 50, } = request;
|
|
60
61
|
const _queryParams = {
|
|
61
62
|
connection_id: connectionId,
|
|
62
63
|
name,
|
|
@@ -64,6 +65,7 @@ export class GroupsClient {
|
|
|
64
65
|
search,
|
|
65
66
|
fields,
|
|
66
67
|
include_fields: includeFields,
|
|
68
|
+
include_totals: includeTotals,
|
|
67
69
|
from: from_,
|
|
68
70
|
take,
|
|
69
71
|
};
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { CustomSigningClient } from "../resources/customSigning/client/Client.mjs";
|
|
4
4
|
import { EncryptionClient } from "../resources/encryption/client/Client.mjs";
|
|
5
|
+
import { NetworkAclsClient } from "../resources/networkAcls/client/Client.mjs";
|
|
5
6
|
import { SigningClient } from "../resources/signing/client/Client.mjs";
|
|
6
7
|
export declare namespace KeysClient {
|
|
7
8
|
type Options = BaseClientOptions;
|
|
@@ -10,9 +11,11 @@ export declare class KeysClient {
|
|
|
10
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<KeysClient.Options>;
|
|
11
12
|
protected _customSigning: CustomSigningClient | undefined;
|
|
12
13
|
protected _encryption: EncryptionClient | undefined;
|
|
14
|
+
protected _networkAcls: NetworkAclsClient | undefined;
|
|
13
15
|
protected _signing: SigningClient | undefined;
|
|
14
16
|
constructor(options: KeysClient.Options);
|
|
15
17
|
get customSigning(): CustomSigningClient;
|
|
16
18
|
get encryption(): EncryptionClient;
|
|
19
|
+
get networkAcls(): NetworkAclsClient;
|
|
17
20
|
get signing(): SigningClient;
|
|
18
21
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { CustomSigningClient } from "../resources/customSigning/client/Client.mjs";
|
|
4
4
|
import { EncryptionClient } from "../resources/encryption/client/Client.mjs";
|
|
5
|
+
import { NetworkAclsClient } from "../resources/networkAcls/client/Client.mjs";
|
|
5
6
|
import { SigningClient } from "../resources/signing/client/Client.mjs";
|
|
6
7
|
export class KeysClient {
|
|
7
8
|
constructor(options) {
|
|
@@ -15,6 +16,10 @@ export class KeysClient {
|
|
|
15
16
|
var _a;
|
|
16
17
|
return ((_a = this._encryption) !== null && _a !== void 0 ? _a : (this._encryption = new EncryptionClient(this._options)));
|
|
17
18
|
}
|
|
19
|
+
get networkAcls() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new NetworkAclsClient(this._options)));
|
|
22
|
+
}
|
|
18
23
|
get signing() {
|
|
19
24
|
var _a;
|
|
20
25
|
return ((_a = this._signing) !== null && _a !== void 0 ? _a : (this._signing = new SigningClient(this._options)));
|