auth0 7.4.0-beta.2 → 7.4.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 +12 -22
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clients/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts +0 -22
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js +0 -75
- package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.d.ts +0 -20
- package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.js +0 -69
- package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.d.ts +0 -1
- package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.js +0 -3
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/roles/client/Client.js +1 -1
- package/dist/cjs/management/api/types/types.d.ts +301 -99
- package/dist/cjs/management/api/types/types.js +86 -24
- 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 +12 -22
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clients/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.d.mts +0 -22
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.mjs +0 -75
- package/dist/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.d.mts +0 -20
- package/dist/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.mjs +0 -69
- package/dist/esm/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.d.mts +0 -1
- package/dist/esm/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.mjs +0 -3
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/roles/client/Client.mjs +1 -1
- package/dist/esm/management/api/types/types.d.mts +301 -99
- package/dist/esm/management/api/types/types.mjs +65 -3
- 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 +1 -147
|
@@ -341,6 +341,7 @@ export interface CreateClientRequestContent {
|
|
|
341
341
|
resource_server_identifier?: string;
|
|
342
342
|
identity_assertion_authorization_grant?: Management.CreateIdentityAssertionAuthorizationGrant;
|
|
343
343
|
anonymous_sessions?: Management.CreateAnonymousSessions;
|
|
344
|
+
enforce_anon_session_transfer_network_binding?: Management.ClientAnonymousSessionTransferNetworkBindingEnum;
|
|
344
345
|
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
345
346
|
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
346
347
|
express_configuration?: Management.ExpressConfiguration;
|
|
@@ -469,6 +470,7 @@ export interface UpdateClientRequestContent {
|
|
|
469
470
|
token_quota?: Management.UpdateTokenQuota | null;
|
|
470
471
|
identity_assertion_authorization_grant?: Management.UpdateIdentityAssertionAuthorizationGrant | null;
|
|
471
472
|
anonymous_sessions?: Management.UpdateAnonymousSessions | null;
|
|
473
|
+
enforce_anon_session_transfer_network_binding?: Management.ClientAnonymousSessionTransferNetworkBindingEnum;
|
|
472
474
|
/** Form template for WS-Federation protocol */
|
|
473
475
|
form_template?: string;
|
|
474
476
|
addons?: Management.ClientAddons;
|
|
@@ -1049,7 +1051,7 @@ export interface ListGroupsRequestParameters {
|
|
|
1049
1051
|
fields?: string | null;
|
|
1050
1052
|
/** Whether specified fields are to be included (true) or excluded (false). */
|
|
1051
1053
|
include_fields?: boolean | null;
|
|
1052
|
-
/** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */
|
|
1054
|
+
/** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). The returned total reflects at most 1,000 results. */
|
|
1053
1055
|
include_totals?: boolean | null;
|
|
1054
1056
|
/** Optional Id from which to start selection. */
|
|
1055
1057
|
from?: string | null;
|
|
@@ -1604,8 +1606,8 @@ export interface ListRolesRequestParameters {
|
|
|
1604
1606
|
name_filter?: string | null;
|
|
1605
1607
|
/** Optional filter on the type of the role */
|
|
1606
1608
|
type?: Management.RoleTypeEnum | null;
|
|
1607
|
-
/** Filter organization-level roles by owner ID. Required when type is "organization". */
|
|
1608
|
-
owner_id?:
|
|
1609
|
+
/** Filter organization-level roles by owner ID. Use an organization ID to filter that organization's roles, or "auth0" to retrieve Auth0-managed System Roles. Required when type is "organization". */
|
|
1610
|
+
owner_id?: Management.RoleOwnerIdFilter | null;
|
|
1609
1611
|
}
|
|
1610
1612
|
/**
|
|
1611
1613
|
* @example
|
|
@@ -2923,6 +2925,7 @@ export interface UpdateExperimentRequestParameters {
|
|
|
2923
2925
|
default_config?: Management.DefaultConfigEnum;
|
|
2924
2926
|
/** Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100]. Can only be modified on draft experiments. */
|
|
2925
2927
|
levels?: number[];
|
|
2928
|
+
status?: Management.ExperimentTransitionStatusEnum;
|
|
2926
2929
|
}
|
|
2927
2930
|
/**
|
|
2928
2931
|
* @example
|
|
@@ -2934,15 +2937,6 @@ export interface AdvanceRampRequestContent {
|
|
|
2934
2937
|
/** The target percentage level from the experiment schedule. Must be the immediate next level. */
|
|
2935
2938
|
target_level: number;
|
|
2936
2939
|
}
|
|
2937
|
-
/**
|
|
2938
|
-
* @example
|
|
2939
|
-
* {
|
|
2940
|
-
* status: "active"
|
|
2941
|
-
* }
|
|
2942
|
-
*/
|
|
2943
|
-
export interface UpdateExperimentStatusRequestContent {
|
|
2944
|
-
status: Management.ExperimentTransitionStatusEnum;
|
|
2945
|
-
}
|
|
2946
2940
|
/**
|
|
2947
2941
|
* @example
|
|
2948
2942
|
* {
|
|
@@ -2986,16 +2980,8 @@ export interface UpdateFeatureFlagRequestContent {
|
|
|
2986
2980
|
/** A description of what this feature flag controls */
|
|
2987
2981
|
description?: string | null;
|
|
2988
2982
|
parameters?: Management.UpdateFeatureFlagParameters;
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
* @example
|
|
2992
|
-
* {
|
|
2993
|
-
* status: "draft"
|
|
2994
|
-
* }
|
|
2995
|
-
*/
|
|
2996
|
-
export interface UpdateFeatureFlagStatusRequestContent {
|
|
2997
|
-
/** The target status to transition the feature flag to. */
|
|
2998
|
-
status: Management.FeatureFlagStatusEnum;
|
|
2983
|
+
/** Target lifecycle status (draft → active, draft → archived, active → archived). Activating a flag requires at least 2 variations. When combined with field edits, the edits and the transition are applied together; if the transition is rejected, no edits are applied. */
|
|
2984
|
+
status?: Management.FeatureFlagStatusEnum;
|
|
2999
2985
|
}
|
|
3000
2986
|
/**
|
|
3001
2987
|
* @example
|
|
@@ -3039,6 +3025,8 @@ export interface UpdateSegmentRequestContent {
|
|
|
3039
3025
|
description?: string | null;
|
|
3040
3026
|
/** Replaces the entire rules array. Each rule is limited to 4KB and the whole segment to 10KB (serialized). */
|
|
3041
3027
|
rules?: Management.SegmentRule[];
|
|
3028
|
+
/** Target lifecycle status. Archiving removes the segment from the active pool and is terminal (an archived segment cannot return to active). When combined with field edits, the edits apply first and the transition follows. */
|
|
3029
|
+
status?: Management.SegmentStatusEnum;
|
|
3042
3030
|
}
|
|
3043
3031
|
/**
|
|
3044
3032
|
* @example
|
|
@@ -4259,6 +4247,8 @@ export interface UpdateTenantSettingsRequestContent {
|
|
|
4259
4247
|
pushed_authorization_requests_supported?: boolean | null;
|
|
4260
4248
|
/** Supports iss parameter in authorization responses */
|
|
4261
4249
|
authorization_response_iss_parameter_supported?: boolean | null;
|
|
4250
|
+
/** Enables strict DPoP refresh token binding per RFC 9449: all refresh tokens issued to public clients that present a DPoP proof are bound to the sender's key, and the binding is validated on every subsequent exchange. When disabled, DPoP refresh token binding may still apply for specific audiences for backwards compatibility. */
|
|
4251
|
+
dpop_strict_refresh_token_binding?: boolean | null;
|
|
4262
4252
|
/**
|
|
4263
4253
|
* Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`).
|
|
4264
4254
|
* If set to true, a confirmation prompt will not be shown. We recommend that this is set to false for improved protection from malicious apps.
|
|
@@ -141,6 +141,7 @@ export declare class ClientsClient {
|
|
|
141
141
|
* @throws {@link Management.BadRequestError}
|
|
142
142
|
* @throws {@link Management.UnauthorizedError}
|
|
143
143
|
* @throws {@link Management.ForbiddenError}
|
|
144
|
+
* @throws {@link Management.ConflictError}
|
|
144
145
|
* @throws {@link Management.TooManyRequestsError}
|
|
145
146
|
* @throws {@link Management.InternalServerError}
|
|
146
147
|
*
|
|
@@ -367,6 +367,7 @@ class ClientsClient {
|
|
|
367
367
|
* @throws {@link Management.BadRequestError}
|
|
368
368
|
* @throws {@link Management.UnauthorizedError}
|
|
369
369
|
* @throws {@link Management.ForbiddenError}
|
|
370
|
+
* @throws {@link Management.ConflictError}
|
|
370
371
|
* @throws {@link Management.TooManyRequestsError}
|
|
371
372
|
* @throws {@link Management.InternalServerError}
|
|
372
373
|
*
|
|
@@ -411,6 +412,8 @@ class ClientsClient {
|
|
|
411
412
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
412
413
|
case 403:
|
|
413
414
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
415
|
+
case 409:
|
|
416
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
414
417
|
case 429:
|
|
415
418
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
416
419
|
case 500:
|
package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts
CHANGED
|
@@ -126,28 +126,6 @@ export declare class ExperimentsClient {
|
|
|
126
126
|
*/
|
|
127
127
|
advanceRamp(id: string, request: Management.AdvanceRampRequestContent, requestOptions?: ExperimentsClient.RequestOptions): core.HttpResponsePromise<Management.AdvanceRampResponseContent>;
|
|
128
128
|
private __advanceRamp;
|
|
129
|
-
/**
|
|
130
|
-
* Transitions an experiment through its lifecycle: draft → active, active → paused, paused → active, active/paused → completed. Activation runs full readiness validation.
|
|
131
|
-
*
|
|
132
|
-
* @param {string} id - The ID of the experiment to transition.
|
|
133
|
-
* @param {Management.UpdateExperimentStatusRequestContent} request
|
|
134
|
-
* @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
-
*
|
|
136
|
-
* @throws {@link Management.BadRequestError}
|
|
137
|
-
* @throws {@link Management.UnauthorizedError}
|
|
138
|
-
* @throws {@link Management.ForbiddenError}
|
|
139
|
-
* @throws {@link Management.NotFoundError}
|
|
140
|
-
* @throws {@link Management.ConflictError}
|
|
141
|
-
* @throws {@link Management.UnprocessableEntityError}
|
|
142
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* await client.experimentation.experiments.updateStatus("id", {
|
|
146
|
-
* status: "active"
|
|
147
|
-
* })
|
|
148
|
-
*/
|
|
149
|
-
updateStatus(id: string, request: Management.UpdateExperimentStatusRequestContent, requestOptions?: ExperimentsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateExperimentStatusResponseContent>;
|
|
150
|
-
private __updateStatus;
|
|
151
129
|
/**
|
|
152
130
|
* Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified.
|
|
153
131
|
*
|
package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js
CHANGED
|
@@ -477,81 +477,6 @@ class ExperimentsClient {
|
|
|
477
477
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/experimentation/experiments/{id}/advance-ramp");
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
/**
|
|
481
|
-
* Transitions an experiment through its lifecycle: draft → active, active → paused, paused → active, active/paused → completed. Activation runs full readiness validation.
|
|
482
|
-
*
|
|
483
|
-
* @param {string} id - The ID of the experiment to transition.
|
|
484
|
-
* @param {Management.UpdateExperimentStatusRequestContent} request
|
|
485
|
-
* @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
486
|
-
*
|
|
487
|
-
* @throws {@link Management.BadRequestError}
|
|
488
|
-
* @throws {@link Management.UnauthorizedError}
|
|
489
|
-
* @throws {@link Management.ForbiddenError}
|
|
490
|
-
* @throws {@link Management.NotFoundError}
|
|
491
|
-
* @throws {@link Management.ConflictError}
|
|
492
|
-
* @throws {@link Management.UnprocessableEntityError}
|
|
493
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
494
|
-
*
|
|
495
|
-
* @example
|
|
496
|
-
* await client.experimentation.experiments.updateStatus("id", {
|
|
497
|
-
* status: "active"
|
|
498
|
-
* })
|
|
499
|
-
*/
|
|
500
|
-
updateStatus(id, request, requestOptions) {
|
|
501
|
-
return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
|
|
502
|
-
}
|
|
503
|
-
__updateStatus(id, request, requestOptions) {
|
|
504
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
506
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
507
|
-
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);
|
|
508
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
509
|
-
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, `experimentation/experiments/${core.url.encodePathParam(id)}/status`),
|
|
510
|
-
method: "POST",
|
|
511
|
-
headers: _headers,
|
|
512
|
-
contentType: "application/json",
|
|
513
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
514
|
-
requestType: "json",
|
|
515
|
-
body: request,
|
|
516
|
-
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,
|
|
517
|
-
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,
|
|
518
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
519
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
520
|
-
logging: this._options.logging,
|
|
521
|
-
});
|
|
522
|
-
if (_response.ok) {
|
|
523
|
-
return {
|
|
524
|
-
data: _response.body,
|
|
525
|
-
rawResponse: _response.rawResponse,
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
if (_response.error.reason === "status-code") {
|
|
529
|
-
switch (_response.error.statusCode) {
|
|
530
|
-
case 400:
|
|
531
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
532
|
-
case 401:
|
|
533
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
534
|
-
case 403:
|
|
535
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
536
|
-
case 404:
|
|
537
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
538
|
-
case 409:
|
|
539
|
-
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
540
|
-
case 422:
|
|
541
|
-
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
542
|
-
case 429:
|
|
543
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
544
|
-
default:
|
|
545
|
-
throw new errors.ManagementError({
|
|
546
|
-
statusCode: _response.error.statusCode,
|
|
547
|
-
body: _response.error.body,
|
|
548
|
-
rawResponse: _response.rawResponse,
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/experimentation/experiments/{id}/status");
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
480
|
/**
|
|
556
481
|
* Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified.
|
|
557
482
|
*
|
package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.d.ts
CHANGED
|
@@ -103,24 +103,4 @@ export declare class FeatureFlagsClient {
|
|
|
103
103
|
*/
|
|
104
104
|
update(id: string, request?: Management.UpdateFeatureFlagRequestContent, requestOptions?: FeatureFlagsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateFeatureFlagResponseContent>;
|
|
105
105
|
private __update;
|
|
106
|
-
/**
|
|
107
|
-
* Transitions a feature flag through its lifecycle states: draft → active, draft → archived, active → archived.
|
|
108
|
-
*
|
|
109
|
-
* @param {string} id - The ID of the feature flag to transition.
|
|
110
|
-
* @param {Management.UpdateFeatureFlagStatusRequestContent} request
|
|
111
|
-
* @param {FeatureFlagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
|
-
*
|
|
113
|
-
* @throws {@link Management.BadRequestError}
|
|
114
|
-
* @throws {@link Management.UnauthorizedError}
|
|
115
|
-
* @throws {@link Management.ForbiddenError}
|
|
116
|
-
* @throws {@link Management.NotFoundError}
|
|
117
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* await client.experimentation.featureFlags.updateStatus("id", {
|
|
121
|
-
* status: "draft"
|
|
122
|
-
* })
|
|
123
|
-
*/
|
|
124
|
-
updateStatus(id: string, request: Management.UpdateFeatureFlagStatusRequestContent, requestOptions?: FeatureFlagsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateFeatureFlagStatusResponseContent>;
|
|
125
|
-
private __updateStatus;
|
|
126
106
|
}
|
package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.js
CHANGED
|
@@ -398,74 +398,5 @@ class FeatureFlagsClient {
|
|
|
398
398
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/experimentation/feature-flags/{id}");
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
/**
|
|
402
|
-
* Transitions a feature flag through its lifecycle states: draft → active, draft → archived, active → archived.
|
|
403
|
-
*
|
|
404
|
-
* @param {string} id - The ID of the feature flag to transition.
|
|
405
|
-
* @param {Management.UpdateFeatureFlagStatusRequestContent} request
|
|
406
|
-
* @param {FeatureFlagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
407
|
-
*
|
|
408
|
-
* @throws {@link Management.BadRequestError}
|
|
409
|
-
* @throws {@link Management.UnauthorizedError}
|
|
410
|
-
* @throws {@link Management.ForbiddenError}
|
|
411
|
-
* @throws {@link Management.NotFoundError}
|
|
412
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
413
|
-
*
|
|
414
|
-
* @example
|
|
415
|
-
* await client.experimentation.featureFlags.updateStatus("id", {
|
|
416
|
-
* status: "draft"
|
|
417
|
-
* })
|
|
418
|
-
*/
|
|
419
|
-
updateStatus(id, request, requestOptions) {
|
|
420
|
-
return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
|
|
421
|
-
}
|
|
422
|
-
__updateStatus(id, request, requestOptions) {
|
|
423
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
425
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
426
|
-
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);
|
|
427
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
428
|
-
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, `experimentation/feature-flags/${core.url.encodePathParam(id)}/status`),
|
|
429
|
-
method: "POST",
|
|
430
|
-
headers: _headers,
|
|
431
|
-
contentType: "application/json",
|
|
432
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
433
|
-
requestType: "json",
|
|
434
|
-
body: request,
|
|
435
|
-
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,
|
|
436
|
-
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,
|
|
437
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
438
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
439
|
-
logging: this._options.logging,
|
|
440
|
-
});
|
|
441
|
-
if (_response.ok) {
|
|
442
|
-
return {
|
|
443
|
-
data: _response.body,
|
|
444
|
-
rawResponse: _response.rawResponse,
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
if (_response.error.reason === "status-code") {
|
|
448
|
-
switch (_response.error.statusCode) {
|
|
449
|
-
case 400:
|
|
450
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
451
|
-
case 401:
|
|
452
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
453
|
-
case 403:
|
|
454
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
455
|
-
case 404:
|
|
456
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
457
|
-
case 429:
|
|
458
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
459
|
-
default:
|
|
460
|
-
throw new errors.ManagementError({
|
|
461
|
-
statusCode: _response.error.statusCode,
|
|
462
|
-
body: _response.error.body,
|
|
463
|
-
rawResponse: _response.rawResponse,
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/experimentation/feature-flags/{id}/status");
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
401
|
}
|
|
471
402
|
exports.FeatureFlagsClient = FeatureFlagsClient;
|
|
@@ -75,7 +75,6 @@ export declare class VariationsClient {
|
|
|
75
75
|
* @param {string} vid - The ID of the variation to delete.
|
|
76
76
|
* @param {VariationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
|
-
* @throws {@link Management.BadRequestError}
|
|
79
78
|
* @throws {@link Management.ForbiddenError}
|
|
80
79
|
* @throws {@link Management.NotFoundError}
|
|
81
80
|
* @throws {@link Management.ConflictError}
|
|
@@ -261,7 +261,6 @@ class VariationsClient {
|
|
|
261
261
|
* @param {string} vid - The ID of the variation to delete.
|
|
262
262
|
* @param {VariationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
263
|
*
|
|
264
|
-
* @throws {@link Management.BadRequestError}
|
|
265
264
|
* @throws {@link Management.ForbiddenError}
|
|
266
265
|
* @throws {@link Management.NotFoundError}
|
|
267
266
|
* @throws {@link Management.ConflictError}
|
|
@@ -294,8 +293,6 @@ class VariationsClient {
|
|
|
294
293
|
}
|
|
295
294
|
if (_response.error.reason === "status-code") {
|
|
296
295
|
switch (_response.error.statusCode) {
|
|
297
|
-
case 400:
|
|
298
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
299
296
|
case 403:
|
|
300
297
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
301
298
|
case 404:
|
|
@@ -20,7 +20,7 @@ export declare class RolesClient {
|
|
|
20
20
|
get permissions(): PermissionsClient;
|
|
21
21
|
get users(): UsersClient;
|
|
22
22
|
/**
|
|
23
|
-
* Retrieve
|
|
23
|
+
* Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles.
|
|
24
24
|
*
|
|
25
25
|
* **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.
|
|
26
26
|
*
|
|
@@ -71,7 +71,7 @@ class RolesClient {
|
|
|
71
71
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_3.UsersClient(this._options)));
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Retrieve
|
|
74
|
+
* Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles.
|
|
75
75
|
*
|
|
76
76
|
* **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.
|
|
77
77
|
*
|