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
|
@@ -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
|
/**
|
|
@@ -31,6 +31,7 @@ export class ExecutionsClient {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* await client.flows.executions.list("flow_id", {
|
|
34
|
+
* include_totals: true,
|
|
34
35
|
* from: "from",
|
|
35
36
|
* take: 1
|
|
36
37
|
* })
|
|
@@ -39,8 +40,9 @@ export class ExecutionsClient {
|
|
|
39
40
|
return __awaiter(this, arguments, void 0, function* (flow_id, request = {}, requestOptions) {
|
|
40
41
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
41
42
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
42
|
-
const { from: from_, take = 50 } = request;
|
|
43
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
43
44
|
const _queryParams = {
|
|
45
|
+
include_totals: includeTotals,
|
|
44
46
|
from: from_,
|
|
45
47
|
take,
|
|
46
48
|
};
|
|
@@ -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
|
};
|
|
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Management from "../../../index.mjs";
|
|
5
5
|
import { ClientGrantsClient } from "../resources/clientGrants/client/Client.mjs";
|
|
6
|
+
import { ClientsClient } from "../resources/clients/client/Client.mjs";
|
|
6
7
|
import { ConnectionsClient } from "../resources/connections/client/Client.mjs";
|
|
7
8
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.mjs";
|
|
8
9
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.mjs";
|
|
@@ -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>>;
|
|
@@ -16,6 +16,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
|
|
|
16
16
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
17
|
import * as Management from "../../../index.mjs";
|
|
18
18
|
import { ClientGrantsClient } from "../resources/clientGrants/client/Client.mjs";
|
|
19
|
+
import { ClientsClient } from "../resources/clients/client/Client.mjs";
|
|
19
20
|
import { ConnectionsClient } from "../resources/connections/client/Client.mjs";
|
|
20
21
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.mjs";
|
|
21
22
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.mjs";
|
|
@@ -31,6 +32,10 @@ export class OrganizationsClient {
|
|
|
31
32
|
var _a;
|
|
32
33
|
return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new ClientGrantsClient(this._options)));
|
|
33
34
|
}
|
|
35
|
+
get clients() {
|
|
36
|
+
var _a;
|
|
37
|
+
return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
|
|
38
|
+
}
|
|
34
39
|
get connections() {
|
|
35
40
|
var _a;
|
|
36
41
|
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new ConnectionsClient(this._options)));
|
|
@@ -88,20 +93,24 @@ export class OrganizationsClient {
|
|
|
88
93
|
*
|
|
89
94
|
* @example
|
|
90
95
|
* await client.organizations.list({
|
|
96
|
+
* include_totals: true,
|
|
91
97
|
* from: "from",
|
|
92
98
|
* take: 1,
|
|
93
|
-
* sort: "sort"
|
|
99
|
+
* sort: "sort",
|
|
100
|
+
* include_client_association_for: "include_client_association_for"
|
|
94
101
|
* })
|
|
95
102
|
*/
|
|
96
103
|
list() {
|
|
97
104
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
98
105
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
99
106
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
100
|
-
const { from: from_, take = 50, sort } = request;
|
|
107
|
+
const { include_totals: includeTotals = true, from: from_, take = 50, sort, include_client_association_for: includeClientAssociationFor, } = request;
|
|
101
108
|
const _queryParams = {
|
|
109
|
+
include_totals: includeTotals,
|
|
102
110
|
from: from_,
|
|
103
111
|
take,
|
|
104
112
|
sort,
|
|
113
|
+
include_client_association_for: includeClientAssociationFor,
|
|
105
114
|
};
|
|
106
115
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
107
116
|
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);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as Management from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace ClientsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ClientsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ClientsClient.Options>;
|
|
12
|
+
constructor(options: ClientsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* List all clients associated with an organization, using checkpoint pagination.
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li>
|
|
17
|
+
* <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.
|
|
18
|
+
* </li>
|
|
19
|
+
* </ul>
|
|
20
|
+
*
|
|
21
|
+
* @param {string} id - ID of the organization.
|
|
22
|
+
* @param {Management.ListOrganizationClientsRequestParameters} request
|
|
23
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link Management.BadRequestError}
|
|
26
|
+
* @throws {@link Management.UnauthorizedError}
|
|
27
|
+
* @throws {@link Management.ForbiddenError}
|
|
28
|
+
* @throws {@link Management.NotFoundError}
|
|
29
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.organizations.clients.list("id", {
|
|
33
|
+
* from: "from",
|
|
34
|
+
* take: 1
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
list(id: string, request?: Management.ListOrganizationClientsRequestParameters, requestOptions?: ClientsClient.RequestOptions): Promise<core.Page<Management.OrganizationClient, Management.ListOrganizationClientsResponseContent>>;
|
|
38
|
+
/**
|
|
39
|
+
* Associate one or more clients with an organization.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} id - ID of the organization.
|
|
42
|
+
* @param {Management.CreateOrganizationClientsRequestContent} request
|
|
43
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Management.BadRequestError}
|
|
46
|
+
* @throws {@link Management.UnauthorizedError}
|
|
47
|
+
* @throws {@link Management.ForbiddenError}
|
|
48
|
+
* @throws {@link Management.NotFoundError}
|
|
49
|
+
* @throws {@link Management.ConflictError}
|
|
50
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await client.organizations.clients.create("id", {
|
|
54
|
+
* clients: [{
|
|
55
|
+
* client_id: "client_id",
|
|
56
|
+
* use_for_member_access: true
|
|
57
|
+
* }]
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
create(id: string, request: Management.CreateOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.CreateOrganizationClientsResponseContent>;
|
|
61
|
+
private __create;
|
|
62
|
+
/**
|
|
63
|
+
* Remove one or more client associations from an organization.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} id - ID of the organization.
|
|
66
|
+
* @param {Management.DeleteOrganizationClientsRequestContent} request
|
|
67
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Management.BadRequestError}
|
|
70
|
+
* @throws {@link Management.UnauthorizedError}
|
|
71
|
+
* @throws {@link Management.ForbiddenError}
|
|
72
|
+
* @throws {@link Management.NotFoundError}
|
|
73
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.organizations.clients.delete("id", {
|
|
77
|
+
* clients: ["clients"]
|
|
78
|
+
* })
|
|
79
|
+
*/
|
|
80
|
+
delete(id: string, request: Management.DeleteOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
81
|
+
private __delete;
|
|
82
|
+
/**
|
|
83
|
+
* Get a specific client association for an organization.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} id - ID of the organization.
|
|
86
|
+
* @param {string} client_id - ID of the client association to retrieve.
|
|
87
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link Management.BadRequestError}
|
|
90
|
+
* @throws {@link Management.UnauthorizedError}
|
|
91
|
+
* @throws {@link Management.ForbiddenError}
|
|
92
|
+
* @throws {@link Management.NotFoundError}
|
|
93
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.organizations.clients.get("id", "client_id")
|
|
97
|
+
*/
|
|
98
|
+
get(id: string, client_id: string, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.GetOrganizationClientResponseContent>;
|
|
99
|
+
private __get;
|
|
100
|
+
/**
|
|
101
|
+
* Update an organization client association.
|
|
102
|
+
*
|
|
103
|
+
* @param {string} id - ID of the organization.
|
|
104
|
+
* @param {string} client_id - ID of the client association to update.
|
|
105
|
+
* @param {Management.UpdateOrganizationClientRequestContent} request
|
|
106
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link Management.BadRequestError}
|
|
109
|
+
* @throws {@link Management.UnauthorizedError}
|
|
110
|
+
* @throws {@link Management.ForbiddenError}
|
|
111
|
+
* @throws {@link Management.NotFoundError}
|
|
112
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.organizations.clients.update("id", "client_id")
|
|
116
|
+
*/
|
|
117
|
+
update(id: string, client_id: string, request?: Management.UpdateOrganizationClientRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateOrganizationClientResponseContent>;
|
|
118
|
+
private __update;
|
|
119
|
+
}
|