auth0 7.4.0-beta.1 → 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
package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.d.mts
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/esm/management/api/resources/experimentation/resources/experiments/client/Client.mjs
CHANGED
|
@@ -441,81 +441,6 @@ export class ExperimentsClient {
|
|
|
441
441
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/experimentation/experiments/{id}/advance-ramp");
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
|
-
/**
|
|
445
|
-
* Transitions an experiment through its lifecycle: draft → active, active → paused, paused → active, active/paused → completed. Activation runs full readiness validation.
|
|
446
|
-
*
|
|
447
|
-
* @param {string} id - The ID of the experiment to transition.
|
|
448
|
-
* @param {Management.UpdateExperimentStatusRequestContent} request
|
|
449
|
-
* @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
450
|
-
*
|
|
451
|
-
* @throws {@link Management.BadRequestError}
|
|
452
|
-
* @throws {@link Management.UnauthorizedError}
|
|
453
|
-
* @throws {@link Management.ForbiddenError}
|
|
454
|
-
* @throws {@link Management.NotFoundError}
|
|
455
|
-
* @throws {@link Management.ConflictError}
|
|
456
|
-
* @throws {@link Management.UnprocessableEntityError}
|
|
457
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
458
|
-
*
|
|
459
|
-
* @example
|
|
460
|
-
* await client.experimentation.experiments.updateStatus("id", {
|
|
461
|
-
* status: "active"
|
|
462
|
-
* })
|
|
463
|
-
*/
|
|
464
|
-
updateStatus(id, request, requestOptions) {
|
|
465
|
-
return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
|
|
466
|
-
}
|
|
467
|
-
__updateStatus(id, request, requestOptions) {
|
|
468
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
470
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
471
|
-
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);
|
|
472
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
473
|
-
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`),
|
|
474
|
-
method: "POST",
|
|
475
|
-
headers: _headers,
|
|
476
|
-
contentType: "application/json",
|
|
477
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
478
|
-
requestType: "json",
|
|
479
|
-
body: request,
|
|
480
|
-
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,
|
|
481
|
-
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,
|
|
482
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
483
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
484
|
-
logging: this._options.logging,
|
|
485
|
-
});
|
|
486
|
-
if (_response.ok) {
|
|
487
|
-
return {
|
|
488
|
-
data: _response.body,
|
|
489
|
-
rawResponse: _response.rawResponse,
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
if (_response.error.reason === "status-code") {
|
|
493
|
-
switch (_response.error.statusCode) {
|
|
494
|
-
case 400:
|
|
495
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
496
|
-
case 401:
|
|
497
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
498
|
-
case 403:
|
|
499
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
500
|
-
case 404:
|
|
501
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
502
|
-
case 409:
|
|
503
|
-
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
504
|
-
case 422:
|
|
505
|
-
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
506
|
-
case 429:
|
|
507
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
508
|
-
default:
|
|
509
|
-
throw new errors.ManagementError({
|
|
510
|
-
statusCode: _response.error.statusCode,
|
|
511
|
-
body: _response.error.body,
|
|
512
|
-
rawResponse: _response.rawResponse,
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/experimentation/experiments/{id}/status");
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
444
|
/**
|
|
520
445
|
* 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.
|
|
521
446
|
*
|
package/dist/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.d.mts
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/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.mjs
CHANGED
|
@@ -362,73 +362,4 @@ export class FeatureFlagsClient {
|
|
|
362
362
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/experimentation/feature-flags/{id}");
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
/**
|
|
366
|
-
* Transitions a feature flag through its lifecycle states: draft → active, draft → archived, active → archived.
|
|
367
|
-
*
|
|
368
|
-
* @param {string} id - The ID of the feature flag to transition.
|
|
369
|
-
* @param {Management.UpdateFeatureFlagStatusRequestContent} request
|
|
370
|
-
* @param {FeatureFlagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
371
|
-
*
|
|
372
|
-
* @throws {@link Management.BadRequestError}
|
|
373
|
-
* @throws {@link Management.UnauthorizedError}
|
|
374
|
-
* @throws {@link Management.ForbiddenError}
|
|
375
|
-
* @throws {@link Management.NotFoundError}
|
|
376
|
-
* @throws {@link Management.TooManyRequestsError}
|
|
377
|
-
*
|
|
378
|
-
* @example
|
|
379
|
-
* await client.experimentation.featureFlags.updateStatus("id", {
|
|
380
|
-
* status: "draft"
|
|
381
|
-
* })
|
|
382
|
-
*/
|
|
383
|
-
updateStatus(id, request, requestOptions) {
|
|
384
|
-
return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
|
|
385
|
-
}
|
|
386
|
-
__updateStatus(id, request, requestOptions) {
|
|
387
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
389
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
390
|
-
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);
|
|
391
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
392
|
-
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`),
|
|
393
|
-
method: "POST",
|
|
394
|
-
headers: _headers,
|
|
395
|
-
contentType: "application/json",
|
|
396
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
397
|
-
requestType: "json",
|
|
398
|
-
body: request,
|
|
399
|
-
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,
|
|
400
|
-
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,
|
|
401
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
402
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
403
|
-
logging: this._options.logging,
|
|
404
|
-
});
|
|
405
|
-
if (_response.ok) {
|
|
406
|
-
return {
|
|
407
|
-
data: _response.body,
|
|
408
|
-
rawResponse: _response.rawResponse,
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
if (_response.error.reason === "status-code") {
|
|
412
|
-
switch (_response.error.statusCode) {
|
|
413
|
-
case 400:
|
|
414
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
415
|
-
case 401:
|
|
416
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
417
|
-
case 403:
|
|
418
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
419
|
-
case 404:
|
|
420
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
421
|
-
case 429:
|
|
422
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
423
|
-
default:
|
|
424
|
-
throw new errors.ManagementError({
|
|
425
|
-
statusCode: _response.error.statusCode,
|
|
426
|
-
body: _response.error.body,
|
|
427
|
-
rawResponse: _response.rawResponse,
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/experimentation/feature-flags/{id}/status");
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
365
|
}
|
|
@@ -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}
|
|
@@ -225,7 +225,6 @@ export class VariationsClient {
|
|
|
225
225
|
* @param {string} vid - The ID of the variation to delete.
|
|
226
226
|
* @param {VariationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
227
227
|
*
|
|
228
|
-
* @throws {@link Management.BadRequestError}
|
|
229
228
|
* @throws {@link Management.ForbiddenError}
|
|
230
229
|
* @throws {@link Management.NotFoundError}
|
|
231
230
|
* @throws {@link Management.ConflictError}
|
|
@@ -258,8 +257,6 @@ export class VariationsClient {
|
|
|
258
257
|
}
|
|
259
258
|
if (_response.error.reason === "status-code") {
|
|
260
259
|
switch (_response.error.statusCode) {
|
|
261
|
-
case 400:
|
|
262
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
263
260
|
case 403:
|
|
264
261
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
265
262
|
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
|
*
|
|
@@ -35,7 +35,7 @@ export class RolesClient {
|
|
|
35
35
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new UsersClient(this._options)));
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* Retrieve
|
|
38
|
+
* Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied, Auth0-managed System Roles.
|
|
39
39
|
*
|
|
40
40
|
* **Note**: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.
|
|
41
41
|
*
|