auth0 5.6.0 → 5.8.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/api/requests/requests.d.ts +41 -2
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +43 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +152 -0
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/logStreams/client/Client.d.ts +465 -300
- package/dist/cjs/management/api/resources/logStreams/client/Client.js +465 -300
- package/dist/cjs/management/api/types/types.d.ts +200 -37
- package/dist/cjs/management/api/types/types.js +104 -46
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +41 -2
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +43 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +152 -0
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/logStreams/client/Client.d.mts +465 -300
- package/dist/esm/management/api/resources/logStreams/client/Client.mjs +465 -300
- package/dist/esm/management/api/types/types.d.mts +200 -37
- package/dist/esm/management/api/types/types.mjs +94 -36
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +673 -323
|
@@ -113,7 +113,8 @@ export interface UpdateBrandingRequestContent {
|
|
|
113
113
|
* audience: "audience",
|
|
114
114
|
* client_id: "client_id",
|
|
115
115
|
* allow_any_organization: true,
|
|
116
|
-
* subject_type: "client"
|
|
116
|
+
* subject_type: "client",
|
|
117
|
+
* default_for: "third_party_clients"
|
|
117
118
|
* }
|
|
118
119
|
*/
|
|
119
120
|
export interface ListClientGrantsRequestParameters {
|
|
@@ -129,6 +130,8 @@ export interface ListClientGrantsRequestParameters {
|
|
|
129
130
|
allow_any_organization?: Management.ClientGrantAllowAnyOrganizationEnum | null;
|
|
130
131
|
/** The type of application access the client grant allows. */
|
|
131
132
|
subject_type?: Management.ClientGrantSubjectTypeEnum | null;
|
|
133
|
+
/** Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. */
|
|
134
|
+
default_for?: Management.ClientGrantDefaultForEnum | null;
|
|
132
135
|
}
|
|
133
136
|
/**
|
|
134
137
|
* @example
|
|
@@ -141,6 +144,7 @@ export interface CreateClientGrantRequestContent {
|
|
|
141
144
|
client_id?: string;
|
|
142
145
|
/** The audience (API identifier) of this client grant */
|
|
143
146
|
audience: string;
|
|
147
|
+
default_for?: Management.ClientGrantDefaultForEnum;
|
|
144
148
|
organization_usage?: Management.ClientGrantOrganizationUsageEnum;
|
|
145
149
|
/** If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations. */
|
|
146
150
|
allow_any_organization?: boolean;
|
|
@@ -292,7 +296,10 @@ export interface CreateClientRequestContent {
|
|
|
292
296
|
token_quota?: Management.CreateTokenQuota;
|
|
293
297
|
/** The identifier of the resource server that this client is linked to. */
|
|
294
298
|
resource_server_identifier?: string;
|
|
299
|
+
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
300
|
+
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
295
301
|
express_configuration?: Management.ExpressConfiguration;
|
|
302
|
+
my_organization_configuration?: Management.ClientMyOrganizationPostConfiguration;
|
|
296
303
|
async_approval_notification_channels?: Management.ClientAsyncApprovalNotificationsChannelsApiPostConfiguration;
|
|
297
304
|
}
|
|
298
305
|
/**
|
|
@@ -417,7 +424,10 @@ export interface UpdateClientRequestContent {
|
|
|
417
424
|
/** Specifies how long, in seconds, a Pushed Authorization Request URI remains valid */
|
|
418
425
|
par_request_expiry?: number | null;
|
|
419
426
|
express_configuration?: Management.ExpressConfigurationOrNull | null;
|
|
427
|
+
my_organization_configuration?: Management.ClientMyOrganizationPatchConfiguration | null;
|
|
420
428
|
async_approval_notification_channels?: (Management.ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration | undefined) | null;
|
|
429
|
+
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
430
|
+
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
421
431
|
}
|
|
422
432
|
/**
|
|
423
433
|
* @example
|
|
@@ -752,7 +762,7 @@ export interface UpdateEventStreamRequestContent {
|
|
|
752
762
|
/**
|
|
753
763
|
* @example
|
|
754
764
|
* {
|
|
755
|
-
* event_type: "
|
|
765
|
+
* event_type: "group.created"
|
|
756
766
|
* }
|
|
757
767
|
*/
|
|
758
768
|
export interface CreateEventStreamTestEventRequestContent {
|
|
@@ -2345,6 +2355,31 @@ export interface ListDirectoryProvisioningsRequestParameters {
|
|
|
2345
2355
|
/** Number of results per page. Defaults to 50. */
|
|
2346
2356
|
take?: number | null;
|
|
2347
2357
|
}
|
|
2358
|
+
/**
|
|
2359
|
+
* @example
|
|
2360
|
+
* {
|
|
2361
|
+
* from: "from",
|
|
2362
|
+
* take: 1
|
|
2363
|
+
* }
|
|
2364
|
+
*/
|
|
2365
|
+
export interface ListSynchronizedGroupsRequestParameters {
|
|
2366
|
+
/** Optional Id from which to start selection. */
|
|
2367
|
+
from?: string | null;
|
|
2368
|
+
/** Number of results per page. Defaults to 50. */
|
|
2369
|
+
take?: number | null;
|
|
2370
|
+
}
|
|
2371
|
+
/**
|
|
2372
|
+
* @example
|
|
2373
|
+
* {
|
|
2374
|
+
* groups: [{
|
|
2375
|
+
* id: "id"
|
|
2376
|
+
* }]
|
|
2377
|
+
* }
|
|
2378
|
+
*/
|
|
2379
|
+
export interface ReplaceSynchronizedGroupsRequestContent {
|
|
2380
|
+
/** Array of Google Workspace Directory group objects to synchronize. */
|
|
2381
|
+
groups: Management.SynchronizedGroupPayload[];
|
|
2382
|
+
}
|
|
2348
2383
|
/**
|
|
2349
2384
|
* @example
|
|
2350
2385
|
* {
|
|
@@ -3324,6 +3359,7 @@ export interface CreateSelfServiceProfileSsoTicketRequestContent {
|
|
|
3324
3359
|
provisioning_config?: Management.SelfServiceProfileSsoTicketProvisioningConfig;
|
|
3325
3360
|
/** Indicates whether a verified domain should be used for organization discovery during authentication. */
|
|
3326
3361
|
use_for_organization_discovery?: boolean;
|
|
3362
|
+
enabled_features?: Management.SelfServiceProfileSsoTicketEnabledFeatures;
|
|
3327
3363
|
}
|
|
3328
3364
|
/**
|
|
3329
3365
|
* @example
|
|
@@ -3401,10 +3437,13 @@ export interface UpdateTenantSettingsRequestContent {
|
|
|
3401
3437
|
*/
|
|
3402
3438
|
skip_non_verifiable_callback_uri_confirmation_prompt?: boolean | null;
|
|
3403
3439
|
resource_parameter_profile?: Management.TenantSettingsResourceParameterProfile;
|
|
3440
|
+
/** Whether the authorization server supports retrieving client metadata from a client_id URL. */
|
|
3441
|
+
client_id_metadata_document_supported?: boolean;
|
|
3404
3442
|
/** Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. */
|
|
3405
3443
|
enable_ai_guide?: boolean;
|
|
3406
3444
|
/** Whether Phone Consolidated Experience is enabled for this tenant. */
|
|
3407
3445
|
phone_consolidated_experience?: boolean;
|
|
3446
|
+
dynamic_client_registration_security_mode?: Management.TenantSettingsDynamicClientRegistrationSecurityMode;
|
|
3408
3447
|
}
|
|
3409
3448
|
/**
|
|
3410
3449
|
* @example
|
|
@@ -30,7 +30,8 @@ export declare class ClientGrantsClient {
|
|
|
30
30
|
* audience: "audience",
|
|
31
31
|
* client_id: "client_id",
|
|
32
32
|
* allow_any_organization: true,
|
|
33
|
-
* subject_type: "client"
|
|
33
|
+
* subject_type: "client",
|
|
34
|
+
* default_for: "third_party_clients"
|
|
34
35
|
* })
|
|
35
36
|
*/
|
|
36
37
|
list(request?: Management.ListClientGrantsRequestParameters, requestOptions?: ClientGrantsClient.RequestOptions): Promise<core.Page<Management.ClientGrantResponseContent, Management.ListClientGrantPaginatedResponseContent>>;
|
|
@@ -77,14 +77,15 @@ class ClientGrantsClient {
|
|
|
77
77
|
* audience: "audience",
|
|
78
78
|
* client_id: "client_id",
|
|
79
79
|
* allow_any_organization: true,
|
|
80
|
-
* subject_type: "client"
|
|
80
|
+
* subject_type: "client",
|
|
81
|
+
* default_for: "third_party_clients"
|
|
81
82
|
* })
|
|
82
83
|
*/
|
|
83
84
|
list() {
|
|
84
85
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
85
86
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
86
87
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
|
-
const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, } = request;
|
|
88
|
+
const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, default_for: defaultFor, } = request;
|
|
88
89
|
const _queryParams = {
|
|
89
90
|
from: from_,
|
|
90
91
|
take,
|
|
@@ -92,6 +93,7 @@ class ClientGrantsClient {
|
|
|
92
93
|
client_id: clientId,
|
|
93
94
|
allow_any_organization: allowAnyOrganization,
|
|
94
95
|
subject_type: subjectType !== undefined ? subjectType : undefined,
|
|
96
|
+
default_for: defaultFor !== undefined ? defaultFor : undefined,
|
|
95
97
|
};
|
|
96
98
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
97
99
|
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -119,4 +119,47 @@ export declare class DirectoryProvisioningClient {
|
|
|
119
119
|
*/
|
|
120
120
|
getDefaultMapping(id: string, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<Management.GetDirectoryProvisioningDefaultMappingResponseContent>;
|
|
121
121
|
private __getDefaultMapping;
|
|
122
|
+
/**
|
|
123
|
+
* Retrieve the configured synchronized groups for a connection directory provisioning configuration.
|
|
124
|
+
*
|
|
125
|
+
* @param {string} id - The id of the connection to list synchronized groups for.
|
|
126
|
+
* @param {Management.ListSynchronizedGroupsRequestParameters} request
|
|
127
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link Management.BadRequestError}
|
|
130
|
+
* @throws {@link Management.UnauthorizedError}
|
|
131
|
+
* @throws {@link Management.ForbiddenError}
|
|
132
|
+
* @throws {@link Management.NotFoundError}
|
|
133
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
|
|
137
|
+
* from: "from",
|
|
138
|
+
* take: 1
|
|
139
|
+
* })
|
|
140
|
+
*/
|
|
141
|
+
listSynchronizedGroups(id: string, request?: Management.ListSynchronizedGroupsRequestParameters, requestOptions?: DirectoryProvisioningClient.RequestOptions): Promise<core.Page<Management.SynchronizedGroupPayload, Management.ListSynchronizedGroupsResponseContent>>;
|
|
142
|
+
/**
|
|
143
|
+
* Create or replace the selected groups for a connection directory provisioning configuration.
|
|
144
|
+
*
|
|
145
|
+
* @param {string} id - The id of the connection to create or replace synchronized groups for
|
|
146
|
+
* @param {Management.ReplaceSynchronizedGroupsRequestContent} request
|
|
147
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link Management.BadRequestError}
|
|
150
|
+
* @throws {@link Management.UnauthorizedError}
|
|
151
|
+
* @throws {@link Management.ForbiddenError}
|
|
152
|
+
* @throws {@link Management.NotFoundError}
|
|
153
|
+
* @throws {@link Management.ConflictError}
|
|
154
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.connections.directoryProvisioning.set("id", {
|
|
158
|
+
* groups: [{
|
|
159
|
+
* id: "id"
|
|
160
|
+
* }]
|
|
161
|
+
* })
|
|
162
|
+
*/
|
|
163
|
+
set(id: string, request: Management.ReplaceSynchronizedGroupsRequestContent, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
164
|
+
private __set;
|
|
122
165
|
}
|
|
@@ -460,5 +460,157 @@ class DirectoryProvisioningClient {
|
|
|
460
460
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/connections/{id}/directory-provisioning/default-mapping");
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* Retrieve the configured synchronized groups for a connection directory provisioning configuration.
|
|
465
|
+
*
|
|
466
|
+
* @param {string} id - The id of the connection to list synchronized groups for.
|
|
467
|
+
* @param {Management.ListSynchronizedGroupsRequestParameters} request
|
|
468
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
469
|
+
*
|
|
470
|
+
* @throws {@link Management.BadRequestError}
|
|
471
|
+
* @throws {@link Management.UnauthorizedError}
|
|
472
|
+
* @throws {@link Management.ForbiddenError}
|
|
473
|
+
* @throws {@link Management.NotFoundError}
|
|
474
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
475
|
+
*
|
|
476
|
+
* @example
|
|
477
|
+
* await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
|
|
478
|
+
* from: "from",
|
|
479
|
+
* take: 1
|
|
480
|
+
* })
|
|
481
|
+
*/
|
|
482
|
+
listSynchronizedGroups(id_1) {
|
|
483
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
484
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
486
|
+
const { from: from_, take = 50 } = request;
|
|
487
|
+
const _queryParams = {
|
|
488
|
+
from: from_,
|
|
489
|
+
take,
|
|
490
|
+
};
|
|
491
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
492
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
493
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
494
|
+
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`),
|
|
495
|
+
method: "GET",
|
|
496
|
+
headers: _headers,
|
|
497
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
498
|
+
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,
|
|
499
|
+
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,
|
|
500
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
501
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
502
|
+
logging: this._options.logging,
|
|
503
|
+
});
|
|
504
|
+
if (_response.ok) {
|
|
505
|
+
return {
|
|
506
|
+
data: _response.body,
|
|
507
|
+
rawResponse: _response.rawResponse,
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
if (_response.error.reason === "status-code") {
|
|
511
|
+
switch (_response.error.statusCode) {
|
|
512
|
+
case 400:
|
|
513
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
514
|
+
case 401:
|
|
515
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
516
|
+
case 403:
|
|
517
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
518
|
+
case 404:
|
|
519
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
520
|
+
case 429:
|
|
521
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
522
|
+
default:
|
|
523
|
+
throw new errors.ManagementError({
|
|
524
|
+
statusCode: _response.error.statusCode,
|
|
525
|
+
body: _response.error.body,
|
|
526
|
+
rawResponse: _response.rawResponse,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
531
|
+
}));
|
|
532
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
533
|
+
return new core.Page({
|
|
534
|
+
response: dataWithRawResponse.data,
|
|
535
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
536
|
+
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) === ""),
|
|
537
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.groups) !== null && _a !== void 0 ? _a : []; },
|
|
538
|
+
loadPage: (response) => {
|
|
539
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
540
|
+
},
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Create or replace the selected groups for a connection directory provisioning configuration.
|
|
546
|
+
*
|
|
547
|
+
* @param {string} id - The id of the connection to create or replace synchronized groups for
|
|
548
|
+
* @param {Management.ReplaceSynchronizedGroupsRequestContent} request
|
|
549
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
550
|
+
*
|
|
551
|
+
* @throws {@link Management.BadRequestError}
|
|
552
|
+
* @throws {@link Management.UnauthorizedError}
|
|
553
|
+
* @throws {@link Management.ForbiddenError}
|
|
554
|
+
* @throws {@link Management.NotFoundError}
|
|
555
|
+
* @throws {@link Management.ConflictError}
|
|
556
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* await client.connections.directoryProvisioning.set("id", {
|
|
560
|
+
* groups: [{
|
|
561
|
+
* id: "id"
|
|
562
|
+
* }]
|
|
563
|
+
* })
|
|
564
|
+
*/
|
|
565
|
+
set(id, request, requestOptions) {
|
|
566
|
+
return core.HttpResponsePromise.fromPromise(this.__set(id, request, requestOptions));
|
|
567
|
+
}
|
|
568
|
+
__set(id, request, requestOptions) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
570
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
571
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
572
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
573
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
574
|
+
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`),
|
|
575
|
+
method: "PUT",
|
|
576
|
+
headers: _headers,
|
|
577
|
+
contentType: "application/json",
|
|
578
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
579
|
+
requestType: "json",
|
|
580
|
+
body: request,
|
|
581
|
+
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,
|
|
582
|
+
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,
|
|
583
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
584
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
585
|
+
logging: this._options.logging,
|
|
586
|
+
});
|
|
587
|
+
if (_response.ok) {
|
|
588
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
589
|
+
}
|
|
590
|
+
if (_response.error.reason === "status-code") {
|
|
591
|
+
switch (_response.error.statusCode) {
|
|
592
|
+
case 400:
|
|
593
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
594
|
+
case 401:
|
|
595
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
596
|
+
case 403:
|
|
597
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
598
|
+
case 404:
|
|
599
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
600
|
+
case 409:
|
|
601
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
602
|
+
case 429:
|
|
603
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
604
|
+
default:
|
|
605
|
+
throw new errors.ManagementError({
|
|
606
|
+
statusCode: _response.error.statusCode,
|
|
607
|
+
body: _response.error.body,
|
|
608
|
+
rawResponse: _response.rawResponse,
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/connections/{id}/directory-provisioning/synchronized-groups");
|
|
613
|
+
});
|
|
614
|
+
}
|
|
463
615
|
}
|
|
464
616
|
exports.DirectoryProvisioningClient = DirectoryProvisioningClient;
|
|
@@ -112,7 +112,7 @@ export declare class EventStreamsClient {
|
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
114
|
* await client.eventStreams.test("id", {
|
|
115
|
-
* event_type: "
|
|
115
|
+
* event_type: "group.created"
|
|
116
116
|
* })
|
|
117
117
|
*/
|
|
118
118
|
test(id: string, request: Management.CreateEventStreamTestEventRequestContent, requestOptions?: EventStreamsClient.RequestOptions): core.HttpResponsePromise<Management.CreateEventStreamTestEventResponseContent>;
|