auth0 7.4.0-beta.2 → 7.5.0-beta.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.
Files changed (60) hide show
  1. package/dist/cjs/management/api/requests/requests.d.ts +73 -22
  2. package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +3 -0
  3. package/dist/cjs/management/api/resources/attackProtection/client/Client.js +9 -4
  4. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/client/Client.d.ts +105 -0
  5. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/client/Client.js +388 -0
  6. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/client/index.d.ts +1 -0
  7. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/client/index.js +2 -0
  8. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/exports.d.ts +2 -0
  9. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/exports.js +21 -0
  10. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/index.d.ts +1 -0
  11. package/dist/cjs/management/api/resources/attackProtection/resources/captchaPolicies/index.js +17 -0
  12. package/dist/cjs/management/api/resources/attackProtection/resources/index.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/attackProtection/resources/index.js +2 -1
  14. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +27 -0
  15. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +101 -0
  16. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +1 -0
  17. package/dist/cjs/management/api/resources/clients/client/Client.js +3 -0
  18. package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts +0 -22
  19. package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js +0 -75
  20. package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.d.ts +0 -20
  21. package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/client/Client.js +0 -69
  22. package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.d.ts +0 -1
  23. package/dist/cjs/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.js +0 -3
  24. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -1
  25. package/dist/cjs/management/api/resources/roles/client/Client.js +1 -1
  26. package/dist/cjs/management/api/types/types.d.ts +1364 -566
  27. package/dist/cjs/management/api/types/types.js +101 -174
  28. package/dist/cjs/management/version.d.ts +1 -1
  29. package/dist/cjs/management/version.js +1 -1
  30. package/dist/esm/management/api/requests/requests.d.mts +73 -22
  31. package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +3 -0
  32. package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +5 -0
  33. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/client/Client.d.mts +105 -0
  34. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/client/Client.mjs +351 -0
  35. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/client/index.d.mts +1 -0
  36. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/client/index.mjs +1 -0
  37. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/exports.d.mts +2 -0
  38. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/exports.mjs +3 -0
  39. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/index.d.mts +1 -0
  40. package/dist/esm/management/api/resources/attackProtection/resources/captchaPolicies/index.mjs +1 -0
  41. package/dist/esm/management/api/resources/attackProtection/resources/index.d.mts +1 -0
  42. package/dist/esm/management/api/resources/attackProtection/resources/index.mjs +1 -0
  43. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +27 -0
  44. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +101 -0
  45. package/dist/esm/management/api/resources/clients/client/Client.d.mts +1 -0
  46. package/dist/esm/management/api/resources/clients/client/Client.mjs +3 -0
  47. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.d.mts +0 -22
  48. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.mjs +0 -75
  49. package/dist/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.d.mts +0 -20
  50. package/dist/esm/management/api/resources/experimentation/resources/featureFlags/client/Client.mjs +0 -69
  51. package/dist/esm/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.d.mts +0 -1
  52. package/dist/esm/management/api/resources/experimentation/resources/featureFlags/resources/variations/client/Client.mjs +0 -3
  53. package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -1
  54. package/dist/esm/management/api/resources/roles/client/Client.mjs +1 -1
  55. package/dist/esm/management/api/types/types.d.mts +1364 -566
  56. package/dist/esm/management/api/types/types.mjs +80 -153
  57. package/dist/esm/management/version.d.mts +1 -1
  58. package/dist/esm/management/version.mjs +1 -1
  59. package/package.json +12 -1
  60. package/reference.md +514 -246
@@ -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
  *
@@ -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
  *
@@ -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
  }
@@ -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 detailed list of user roles created in your tenant.
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 detailed list of user roles created in your tenant.
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
  *