auth0 5.11.0 → 5.13.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 (186) hide show
  1. package/dist/cjs/lib/models.d.ts +7 -7
  2. package/dist/cjs/lib/retry.d.ts +7 -2
  3. package/dist/cjs/lib/retry.js +35 -5
  4. package/dist/cjs/management/api/requests/requests.d.ts +28 -4
  5. package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +3 -0
  6. package/dist/cjs/management/api/resources/attackProtection/client/Client.js +7 -2
  7. package/dist/cjs/management/api/resources/attackProtection/resources/index.d.ts +1 -0
  8. package/dist/cjs/management/api/resources/attackProtection/resources/index.js +2 -1
  9. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.ts +45 -0
  10. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.js +180 -0
  11. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.ts +1 -0
  12. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.js +2 -0
  13. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.ts +1 -0
  14. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.js +17 -0
  15. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.ts +6 -6
  16. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +6 -6
  17. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +4 -4
  18. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +4 -4
  19. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
  20. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -0
  21. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +69 -85
  22. package/dist/cjs/management/api/resources/clients/client/Client.js +71 -85
  23. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.d.ts +4 -9
  24. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +4 -9
  25. package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.d.ts +38 -14
  26. package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.js +38 -14
  27. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.d.ts +1 -0
  28. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +3 -0
  29. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.d.ts +1 -0
  30. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -0
  31. package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +1 -0
  32. package/dist/cjs/management/api/resources/customDomains/client/Client.js +3 -0
  33. package/dist/cjs/management/api/resources/emailTemplates/client/Client.d.ts +4 -4
  34. package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +4 -4
  35. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.d.ts +50 -81
  36. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +50 -81
  37. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +1 -0
  38. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +3 -0
  39. package/dist/cjs/management/api/resources/groups/resources/roles/client/Client.d.ts +5 -3
  40. package/dist/cjs/management/api/resources/groups/resources/roles/client/Client.js +9 -3
  41. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.d.ts +1 -0
  42. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +3 -0
  43. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +2 -0
  44. package/dist/cjs/management/api/resources/organizations/client/Client.js +6 -0
  45. package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.d.ts +1 -0
  46. package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +3 -0
  47. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +5 -0
  48. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +15 -0
  49. package/dist/cjs/management/api/resources/organizations/resources/groups/client/Client.d.ts +1 -0
  50. package/dist/cjs/management/api/resources/organizations/resources/groups/client/Client.js +3 -0
  51. package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/Client.d.ts +3 -0
  52. package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/Client.js +9 -0
  53. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +1 -0
  54. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +3 -0
  55. package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.d.ts +1 -0
  56. package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.js +3 -0
  57. package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.ts +1 -0
  58. package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.js +3 -0
  59. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +1 -0
  60. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +3 -0
  61. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +1 -1
  62. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +1 -1
  63. package/dist/cjs/management/api/resources/roles/resources/groups/client/Client.d.ts +2 -0
  64. package/dist/cjs/management/api/resources/roles/resources/groups/client/Client.js +6 -0
  65. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.d.ts +1 -0
  66. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +3 -0
  67. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.ts +1 -0
  68. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.js +3 -0
  69. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +10 -12
  70. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +12 -12
  71. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +1 -0
  72. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +3 -0
  73. package/dist/cjs/management/api/resources/userGrants/client/Client.d.ts +1 -1
  74. package/dist/cjs/management/api/resources/userGrants/client/Client.js +1 -1
  75. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts +1 -0
  76. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +3 -0
  77. package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/Client.d.ts +1 -0
  78. package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/Client.js +3 -0
  79. package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.ts +1 -0
  80. package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.js +3 -0
  81. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
  82. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -0
  83. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +1 -0
  84. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +3 -0
  85. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
  86. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +6 -0
  87. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
  88. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +6 -0
  89. package/dist/cjs/management/api/types/types.d.ts +281 -109
  90. package/dist/cjs/management/api/types/types.js +36 -46
  91. package/dist/cjs/management/version.d.ts +1 -1
  92. package/dist/cjs/management/version.js +1 -1
  93. package/dist/esm/lib/models.d.mts +7 -7
  94. package/dist/esm/lib/retry.d.mts +7 -2
  95. package/dist/esm/lib/retry.mjs +35 -5
  96. package/dist/esm/management/api/requests/requests.d.mts +28 -4
  97. package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +3 -0
  98. package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +5 -0
  99. package/dist/esm/management/api/resources/attackProtection/resources/index.d.mts +1 -0
  100. package/dist/esm/management/api/resources/attackProtection/resources/index.mjs +1 -0
  101. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.mts +45 -0
  102. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.mjs +143 -0
  103. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.mts +1 -0
  104. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.mjs +1 -0
  105. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.mts +6 -6
  108. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +6 -6
  109. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +4 -4
  110. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +4 -4
  111. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
  112. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -0
  113. package/dist/esm/management/api/resources/clients/client/Client.d.mts +69 -85
  114. package/dist/esm/management/api/resources/clients/client/Client.mjs +71 -85
  115. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.d.mts +4 -9
  116. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +4 -9
  117. package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.d.mts +38 -14
  118. package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.mjs +38 -14
  119. package/dist/esm/management/api/resources/connectionProfiles/client/Client.d.mts +1 -0
  120. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +3 -0
  121. package/dist/esm/management/api/resources/connections/resources/users/client/Client.d.mts +1 -0
  122. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -0
  123. package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +1 -0
  124. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +3 -0
  125. package/dist/esm/management/api/resources/emailTemplates/client/Client.d.mts +4 -4
  126. package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +4 -4
  127. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.d.mts +50 -81
  128. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +50 -81
  129. package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +1 -0
  130. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +3 -0
  131. package/dist/esm/management/api/resources/groups/resources/roles/client/Client.d.mts +5 -3
  132. package/dist/esm/management/api/resources/groups/resources/roles/client/Client.mjs +9 -3
  133. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.d.mts +1 -0
  134. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +3 -0
  135. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +2 -0
  136. package/dist/esm/management/api/resources/organizations/client/Client.mjs +6 -0
  137. package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.d.mts +1 -0
  138. package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +3 -0
  139. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +5 -0
  140. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +15 -0
  141. package/dist/esm/management/api/resources/organizations/resources/groups/client/Client.d.mts +1 -0
  142. package/dist/esm/management/api/resources/organizations/resources/groups/client/Client.mjs +3 -0
  143. package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/Client.d.mts +3 -0
  144. package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/Client.mjs +9 -0
  145. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +1 -0
  146. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +3 -0
  147. package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.d.mts +1 -0
  148. package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.mjs +3 -0
  149. package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.mts +1 -0
  150. package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.mjs +3 -0
  151. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +1 -0
  152. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +3 -0
  153. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +1 -1
  154. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +1 -1
  155. package/dist/esm/management/api/resources/roles/resources/groups/client/Client.d.mts +2 -0
  156. package/dist/esm/management/api/resources/roles/resources/groups/client/Client.mjs +6 -0
  157. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.d.mts +1 -0
  158. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +3 -0
  159. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.mts +1 -0
  160. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.mjs +3 -0
  161. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +10 -12
  162. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +12 -12
  163. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +1 -0
  164. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +3 -0
  165. package/dist/esm/management/api/resources/userGrants/client/Client.d.mts +1 -1
  166. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +1 -1
  167. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.d.mts +1 -0
  168. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +3 -0
  169. package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/Client.d.mts +1 -0
  170. package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/Client.mjs +3 -0
  171. package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.mts +1 -0
  172. package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.mjs +3 -0
  173. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
  174. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -0
  175. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +1 -0
  176. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +3 -0
  177. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
  178. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +6 -0
  179. package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
  180. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +6 -0
  181. package/dist/esm/management/api/types/types.d.mts +281 -109
  182. package/dist/esm/management/api/types/types.mjs +23 -33
  183. package/dist/esm/management/version.d.mts +1 -1
  184. package/dist/esm/management/version.mjs +1 -1
  185. package/package.json +1 -1
  186. package/reference.md +349 -265
@@ -0,0 +1,143 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import * as core from "../../../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class PhoneProviderProtectionClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * Get the phone provider protection configuration for a tenant.
24
+ *
25
+ * @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @throws {@link Management.UnauthorizedError}
28
+ * @throws {@link Management.ForbiddenError}
29
+ * @throws {@link Management.NotFoundError}
30
+ * @throws {@link Management.TooManyRequestsError}
31
+ *
32
+ * @example
33
+ * await client.attackProtection.phoneProviderProtection.get()
34
+ */
35
+ get(requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
37
+ }
38
+ __get(requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
41
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
42
+ 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);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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, "attack-protection/phone-provider-protection"),
45
+ method: "GET",
46
+ headers: _headers,
47
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
48
+ 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,
49
+ 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,
50
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
52
+ logging: this._options.logging,
53
+ });
54
+ if (_response.ok) {
55
+ return {
56
+ data: _response.body,
57
+ rawResponse: _response.rawResponse,
58
+ };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 401:
63
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
64
+ case 403:
65
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
66
+ case 404:
67
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
68
+ case 429:
69
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
70
+ default:
71
+ throw new errors.ManagementError({
72
+ statusCode: _response.error.statusCode,
73
+ body: _response.error.body,
74
+ rawResponse: _response.rawResponse,
75
+ });
76
+ }
77
+ }
78
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/attack-protection/phone-provider-protection");
79
+ });
80
+ }
81
+ /**
82
+ * Update the phone provider protection configuration for a tenant.
83
+ *
84
+ * @param {Management.PatchPhoneProviderProtectionRequestContent} request
85
+ * @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Management.UnauthorizedError}
88
+ * @throws {@link Management.ForbiddenError}
89
+ * @throws {@link Management.TooManyRequestsError}
90
+ *
91
+ * @example
92
+ * await client.attackProtection.phoneProviderProtection.patch({
93
+ * type: "exponential"
94
+ * })
95
+ */
96
+ patch(request, requestOptions) {
97
+ return core.HttpResponsePromise.fromPromise(this.__patch(request, requestOptions));
98
+ }
99
+ __patch(request, requestOptions) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
102
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
103
+ 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);
104
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
105
+ 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, "attack-protection/phone-provider-protection"),
106
+ method: "PATCH",
107
+ headers: _headers,
108
+ contentType: "application/json",
109
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
110
+ requestType: "json",
111
+ body: request,
112
+ 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,
113
+ 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,
114
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
115
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
116
+ logging: this._options.logging,
117
+ });
118
+ if (_response.ok) {
119
+ return {
120
+ data: _response.body,
121
+ rawResponse: _response.rawResponse,
122
+ };
123
+ }
124
+ if (_response.error.reason === "status-code") {
125
+ switch (_response.error.statusCode) {
126
+ case 401:
127
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
128
+ case 403:
129
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
130
+ case 429:
131
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
132
+ default:
133
+ throw new errors.ManagementError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ }
140
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/attack-protection/phone-provider-protection");
141
+ });
142
+ }
143
+ }
@@ -11,7 +11,7 @@ export declare class ProvidersClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ProvidersClient.Options>;
12
12
  constructor(options: ProvidersClient.Options);
13
13
  /**
14
- * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified.
14
+ * Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified.
15
15
  *
16
16
  * @param {Management.ListBrandingPhoneProvidersRequestParameters} request
17
17
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -29,8 +29,8 @@ export declare class ProvidersClient {
29
29
  list(request?: Management.ListBrandingPhoneProvidersRequestParameters, requestOptions?: ProvidersClient.RequestOptions): core.HttpResponsePromise<Management.ListBrandingPhoneProvidersResponseContent>;
30
30
  private __list;
31
31
  /**
32
- * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>.
33
- * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property).
32
+ * Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).
33
+ * The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
34
34
  *
35
35
  * @param {Management.CreateBrandingPhoneProviderRequestContent} request
36
36
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -52,7 +52,7 @@ export declare class ProvidersClient {
52
52
  create(request: Management.CreateBrandingPhoneProviderRequestContent, requestOptions?: ProvidersClient.RequestOptions): core.HttpResponsePromise<Management.CreateBrandingPhoneProviderResponseContent>;
53
53
  private __create;
54
54
  /**
55
- * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified.
55
+ * Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified.
56
56
  *
57
57
  * @param {string} id
58
58
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -85,8 +85,8 @@ export declare class ProvidersClient {
85
85
  delete(id: string, requestOptions?: ProvidersClient.RequestOptions): core.HttpResponsePromise<void>;
86
86
  private __delete;
87
87
  /**
88
- * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>.
89
- * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property).
88
+ * Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).
89
+ * The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
90
90
  *
91
91
  * @param {string} id
92
92
  * @param {Management.UpdateBrandingPhoneProviderRequestContent} request
@@ -20,7 +20,7 @@ export class ProvidersClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified.
23
+ * Retrieve a list of [phone providers](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details set for a Tenant. A list of fields to include or exclude may also be specified.
24
24
  *
25
25
  * @param {Management.ListBrandingPhoneProvidersRequestParameters} request
26
26
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -90,8 +90,8 @@ export class ProvidersClient {
90
90
  });
91
91
  }
92
92
  /**
93
- * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>.
94
- * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property).
93
+ * Create a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).
94
+ * The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
95
95
  *
96
96
  * @param {Management.CreateBrandingPhoneProviderRequestContent} request
97
97
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -162,7 +162,7 @@ export class ProvidersClient {
162
162
  });
163
163
  }
164
164
  /**
165
- * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified.
165
+ * Retrieve [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) details. A list of fields to include or exclude may also be specified.
166
166
  *
167
167
  * @param {string} id
168
168
  * @param {ProvidersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -282,8 +282,8 @@ export class ProvidersClient {
282
282
  });
283
283
  }
284
284
  /**
285
- * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>.
286
- * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property).
285
+ * Update a [phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).
286
+ * The `credentials` object requires different properties depending on the phone provider (which is specified using the `name` property).
287
287
  *
288
288
  * @param {string} id
289
289
  * @param {Management.UpdateBrandingPhoneProviderRequestContent} request
@@ -14,7 +14,7 @@ export declare class ClientGrantsClient {
14
14
  constructor(options: ClientGrantsClient.Options);
15
15
  get organizations(): OrganizationsClient;
16
16
  /**
17
- * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
17
+ * Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair.
18
18
  *
19
19
  * @param {Management.ListClientGrantsRequestParameters} request
20
20
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -36,7 +36,7 @@ export declare class ClientGrantsClient {
36
36
  */
37
37
  list(request?: Management.ListClientGrantsRequestParameters, requestOptions?: ClientGrantsClient.RequestOptions): Promise<core.Page<Management.ClientGrantResponseContent, Management.ListClientGrantPaginatedResponseContent>>;
38
38
  /**
39
- * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>.
39
+ * Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow).
40
40
  *
41
41
  * @param {Management.CreateClientGrantRequestContent} request
42
42
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ export declare class ClientGrantsClient {
56
56
  create(request: Management.CreateClientGrantRequestContent, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.CreateClientGrantResponseContent>;
57
57
  private __create;
58
58
  /**
59
- * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
59
+ * Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the
60
60
  * scopes associated with the application/API pair.
61
61
  *
62
62
  * @param {string} id - The ID of the client grant to retrieve.
@@ -73,7 +73,7 @@ export declare class ClientGrantsClient {
73
73
  get(id: string, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.GetClientGrantResponseContent>;
74
74
  private __get;
75
75
  /**
76
- * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
76
+ * Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application.
77
77
  *
78
78
  * @param {string} id - ID of the client grant to delete.
79
79
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -25,7 +25,7 @@ export class ClientGrantsClient {
25
25
  return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new OrganizationsClient(this._options)));
26
26
  }
27
27
  /**
28
- * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
28
+ * Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair.
29
29
  *
30
30
  * @param {Management.ListClientGrantsRequestParameters} request
31
31
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -113,7 +113,7 @@ export class ClientGrantsClient {
113
113
  });
114
114
  }
115
115
  /**
116
- * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>.
116
+ * Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow).
117
117
  *
118
118
  * @param {Management.CreateClientGrantRequestContent} request
119
119
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -184,7 +184,7 @@ export class ClientGrantsClient {
184
184
  });
185
185
  }
186
186
  /**
187
- * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
187
+ * Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the
188
188
  * scopes associated with the application/API pair.
189
189
  *
190
190
  * @param {string} id - The ID of the client grant to retrieve.
@@ -245,7 +245,7 @@ export class ClientGrantsClient {
245
245
  });
246
246
  }
247
247
  /**
248
- * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
248
+ * Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application.
249
249
  *
250
250
  * @param {string} id - ID of the client grant to delete.
251
251
  * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -18,6 +18,7 @@ export declare class OrganizationsClient {
18
18
  * @throws {@link Management.BadRequestError}
19
19
  * @throws {@link Management.UnauthorizedError}
20
20
  * @throws {@link Management.ForbiddenError}
21
+ * @throws {@link Management.NotFoundError}
21
22
  * @throws {@link Management.TooManyRequestsError}
22
23
  *
23
24
  * @example
@@ -27,6 +27,7 @@ export class OrganizationsClient {
27
27
  * @throws {@link Management.BadRequestError}
28
28
  * @throws {@link Management.UnauthorizedError}
29
29
  * @throws {@link Management.ForbiddenError}
30
+ * @throws {@link Management.NotFoundError}
30
31
  * @throws {@link Management.TooManyRequestsError}
31
32
  *
32
33
  * @example
@@ -75,6 +76,8 @@ export class OrganizationsClient {
75
76
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
76
77
  case 403:
77
78
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 404:
80
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
78
81
  case 429:
79
82
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
80
83
  default:
@@ -18,38 +18,30 @@ export declare class ClientsClient {
18
18
  get connections(): ConnectionsClient;
19
19
  /**
20
20
  * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified.
21
- * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
22
- *
23
- * <ul>
24
- * <li>
25
- * The following can be retrieved with any scope:
26
- * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>.
27
- * </li>
28
- * <li>
29
- * The following properties can only be retrieved with the <code>read:clients</code> or
30
- * <code>read:client_keys</code> scope:
31
- * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>,
32
- * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>,
33
- * <code>callback_url_template</code>, <code>jwt_configuration</code>,
34
- * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>,
35
- * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>,
36
- * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>,
37
- * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>,
38
- * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>,
39
- * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>,
40
- * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>,
41
- * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>,
42
- * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>,
43
- * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>,
44
- * <code>organization_require_behavior</code>.
45
- * </li>
46
- * <li>
47
- * The following properties can only be retrieved with the
48
- * <code>read:client_keys</code> or <code>read:client_credentials</code> scope:
49
- * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
50
- * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>.
51
- * </li>
52
- * </ul>
21
+ * For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on).
22
+ *
23
+ * - The following can be retrieved with any scope:
24
+ * `client_id`, `app_type`, `name`, and `description`.
25
+ * - The following properties can only be retrieved with the `read:clients` or
26
+ * `read:client_keys` scope:
27
+ * `callbacks`, `oidc_logout`, `allowed_origins`,
28
+ * `web_origins`, `tenant`, `global`, `config_route`,
29
+ * `callback_url_template`, `jwt_configuration`,
30
+ * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
31
+ * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
32
+ * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
33
+ * `custom_login_page_off`, `sso`, `addons`, `form_template`,
34
+ * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
35
+ * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
36
+ * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
37
+ * `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`,
38
+ * `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`,
39
+ * `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`,
40
+ * `organization_require_behavior`.
41
+ * - The following properties can only be retrieved with the
42
+ * `read:client_keys` or `read:client_credentials` scope:
43
+ * `encryption_key`, `encryption_key.pub`, `encryption_key.cert`,
44
+ * `client_secret`, `client_authentication_methods` and `signing_key`.
53
45
  *
54
46
  * @param {Management.ListClientsRequestParameters} request
55
47
  * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -75,20 +67,20 @@ export declare class ClientsClient {
75
67
  */
76
68
  list(request?: Management.ListClientsRequestParameters, requestOptions?: ClientsClient.RequestOptions): Promise<core.Page<Management.Client, Management.ListClientsOffsetPaginatedResponseContent>>;
77
69
  /**
78
- * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a>
79
- * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>.
70
+ * Create a new client (application or SSO integration). For more information, read [Create Applications](https://www.auth0.com/docs/get-started/auth0-overview/create-applications)
71
+ * [API Endpoints for Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on).
80
72
  *
81
73
  * Notes:
82
74
  * - We recommend leaving the `client_secret` parameter unspecified to allow the generation of a safe secret.
83
- * - The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use
84
- * <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code>
75
+ * - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use
76
+ * `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method`
85
77
  * to configure the client with client secret (basic or post) or with no authentication method (none).
86
- * - When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, specify fully defined credentials.
78
+ * - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, specify fully defined credentials.
87
79
  * These credentials will be automatically enabled for Private Key JWT authentication on the client.
88
- * - To configure <code>client_authentication_methods</code>, the <code>create:client_credentials</code> scope is required.
89
- * - To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
80
+ * - To configure `client_authentication_methods`, the `create:client_credentials` scope is required.
81
+ * - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256.
90
82
  *
91
- * <div class="alert alert-warning">SSO Integrations created via this endpoint will accept login requests and share user profile information.</div>
83
+ * SSO Integrations created via this endpoint will accept login requests and share user profile information.
92
84
  *
93
85
  * @param {Management.CreateClientRequestContent} request
94
86
  * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -96,6 +88,7 @@ export declare class ClientsClient {
96
88
  * @throws {@link Management.BadRequestError}
97
89
  * @throws {@link Management.UnauthorizedError}
98
90
  * @throws {@link Management.ForbiddenError}
91
+ * @throws {@link Management.NotFoundError}
99
92
  * @throws {@link Management.ConflictError}
100
93
  * @throws {@link Management.TooManyRequestsError}
101
94
  *
@@ -133,16 +126,14 @@ export declare class ClientsClient {
133
126
  * Idempotent registration for Client ID Metadata Document (CIMD) clients.
134
127
  * Uses external_client_id as the unique identifier for upsert operations.
135
128
  *
136
- * <strong>Create:</strong> Returns 201 when a new client is created (requires <code>create:clients</code> scope).
137
- * <strong>Update:</strong> Returns 200 when an existing client is updated (requires <code>update:clients</code> scope).
129
+ * **Create:** Returns 201 when a new client is created (requires `create:clients` scope).
130
+ * **Update:** Returns 200 when an existing client is updated (requires `update:clients` scope).
138
131
  *
139
132
  * This endpoint automatically:
140
- * <ul>
141
- * <li>Fetches and validates the metadata document</li>
142
- * <li>Maps CIMD fields to Auth0 client configuration</li>
143
- * <li>Creates/rotates credentials from the JWKS</li>
144
- * <li>Enforces CIMD security policies (HTTPS-only, no shared secrets)</li>
145
- * </ul>
133
+ * - Fetches and validates the metadata document
134
+ * - Maps CIMD fields to Auth0 client configuration
135
+ * - Creates/rotates credentials from the JWKS
136
+ * - Enforces CIMD security policies (HTTPS-only, no shared secrets)
146
137
  *
147
138
  * @param {Management.RegisterCimdClientRequestContent} request
148
139
  * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -162,36 +153,29 @@ export declare class ClientsClient {
162
153
  private __registerCimdClient;
163
154
  /**
164
155
  * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified.
165
- * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
166
- * <ul>
167
- * <li>
168
- * The following properties can be retrieved with any of the scopes:
169
- * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>.
170
- * </li>
171
- * <li>
172
- * The following properties can only be retrieved with the <code>read:clients</code> or
173
- * <code>read:client_keys</code> scopes:
174
- * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>,
175
- * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>,
176
- * <code>callback_url_template</code>, <code>jwt_configuration</code>,
177
- * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>,
178
- * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>,
179
- * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>,
180
- * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>,
181
- * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>,
182
- * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>,
183
- * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>,
184
- * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>,
185
- * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>,
186
- * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>,
187
- * <code>organization_require_behavior</code>.
188
- * </li>
189
- * <li>
190
- * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes:
191
- * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
192
- * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>.
193
- * </li>
194
- * </ul>
156
+ * For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on).
157
+ *
158
+ * - The following properties can be retrieved with any of the scopes:
159
+ * `client_id`, `app_type`, `name`, and `description`.
160
+ * - The following properties can only be retrieved with the `read:clients` or
161
+ * `read:client_keys` scopes:
162
+ * `callbacks`, `oidc_logout`, `allowed_origins`,
163
+ * `web_origins`, `tenant`, `global`, `config_route`,
164
+ * `callback_url_template`, `jwt_configuration`,
165
+ * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
166
+ * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
167
+ * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
168
+ * `custom_login_page_off`, `sso`, `addons`, `form_template`,
169
+ * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
170
+ * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
171
+ * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
172
+ * `is_token_endpoint_ip_header_trusted`, `initiate_login_uri`, `grant_types`,
173
+ * `refresh_token`, `refresh_token.rotation_type`, `refresh_token.expiration_type`,
174
+ * `refresh_token.leeway`, `refresh_token.token_lifetime`, `refresh_token.policies`, `organization_usage`,
175
+ * `organization_require_behavior`.
176
+ * - The following properties can only be retrieved with the `read:client_keys` or `read:client_credentials` scopes:
177
+ * `encryption_key`, `encryption_key.pub`, `encryption_key.cert`,
178
+ * `client_secret`, `client_authentication_methods` and `signing_key`.
195
179
  *
196
180
  * @param {string} id - ID of the client to retrieve.
197
181
  * @param {Management.GetClientRequestParameters} request
@@ -228,15 +212,15 @@ export declare class ClientsClient {
228
212
  delete(id: string, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<void>;
229
213
  private __delete;
230
214
  /**
231
- * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
215
+ * Updates a client's settings. For more information, read [Applications in Auth0](https://www.auth0.com/docs/get-started/applications) and [Single Sign-On](https://www.auth0.com/docs/authenticate/single-sign-on).
232
216
  *
233
217
  * Notes:
234
218
  * - The `client_secret` and `signing_key` attributes can only be updated with the `update:client_keys` scope.
235
- * - The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
236
- * - When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
237
- * - To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
238
- * - To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
239
- * - To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
219
+ * - The `client_authentication_methods` and `token_endpoint_auth_method` properties are mutually exclusive. Use `client_authentication_methods` to configure the client with Private Key JWT authentication method. Otherwise, use `token_endpoint_auth_method` to configure the client with client secret (basic or post) or with no authentication method (none).
220
+ * - When using `client_authentication_methods` to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
221
+ * - To configure `client_authentication_methods`, the `update:client_credentials` scope is required.
222
+ * - To configure `client_authentication_methods`, the property `jwt_configuration.alg` must be set to RS256.
223
+ * - To change a client's `is_first_party` property to `false`, the `organization_usage` and `organization_require_behavior` properties must be unset.
240
224
  *
241
225
  * @param {string} id - ID of the client to update.
242
226
  * @param {Management.UpdateClientRequestContent} request
@@ -258,7 +242,7 @@ export declare class ClientsClient {
258
242
  *
259
243
  * This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.
260
244
  *
261
- * For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.
245
+ * For more information, read [Rotate Client Secrets](https://www.auth0.com/docs/get-started/applications/rotate-client-secret).
262
246
  *
263
247
  * @param {string} id - ID of the client that will rotate secrets.
264
248
  * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.