auth0 5.1.0 → 5.2.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 (723) hide show
  1. package/README.md +43 -0
  2. package/dist/cjs/management/BaseClient.d.ts +15 -4
  3. package/dist/cjs/management/BaseClient.js +50 -0
  4. package/dist/cjs/management/Client.d.ts +130 -127
  5. package/dist/cjs/management/Client.js +89 -83
  6. package/dist/cjs/management/api/errors/BadRequestError.d.ts +1 -1
  7. package/dist/cjs/management/api/errors/BadRequestError.js +5 -1
  8. package/dist/cjs/management/api/errors/ConflictError.d.ts +1 -1
  9. package/dist/cjs/management/api/errors/ConflictError.js +5 -1
  10. package/dist/cjs/management/api/errors/ContentTooLargeError.d.ts +1 -1
  11. package/dist/cjs/management/api/errors/ContentTooLargeError.js +5 -1
  12. package/dist/cjs/management/api/errors/ForbiddenError.d.ts +1 -1
  13. package/dist/cjs/management/api/errors/ForbiddenError.js +5 -1
  14. package/dist/cjs/management/api/errors/InternalServerError.d.ts +1 -1
  15. package/dist/cjs/management/api/errors/InternalServerError.js +5 -1
  16. package/dist/cjs/management/api/errors/NotFoundError.d.ts +1 -1
  17. package/dist/cjs/management/api/errors/NotFoundError.js +5 -1
  18. package/dist/cjs/management/api/errors/PaymentRequiredError.d.ts +1 -1
  19. package/dist/cjs/management/api/errors/PaymentRequiredError.js +5 -1
  20. package/dist/cjs/management/api/errors/ServiceUnavailableError.d.ts +1 -1
  21. package/dist/cjs/management/api/errors/ServiceUnavailableError.js +5 -1
  22. package/dist/cjs/management/api/errors/TooManyRequestsError.d.ts +1 -1
  23. package/dist/cjs/management/api/errors/TooManyRequestsError.js +5 -1
  24. package/dist/cjs/management/api/errors/UnauthorizedError.d.ts +1 -1
  25. package/dist/cjs/management/api/errors/UnauthorizedError.js +5 -1
  26. package/dist/cjs/management/api/errors/index.d.ts +5 -5
  27. package/dist/cjs/management/api/errors/index.js +5 -5
  28. package/dist/cjs/management/api/index.d.ts +2 -2
  29. package/dist/cjs/management/api/index.js +2 -2
  30. package/dist/cjs/management/api/requests/requests.d.ts +124 -14
  31. package/dist/cjs/management/api/resources/actions/client/Client.d.ts +29 -30
  32. package/dist/cjs/management/api/resources/actions/client/Client.js +53 -140
  33. package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.d.ts +8 -9
  34. package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.js +14 -29
  35. package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -1
  36. package/dist/cjs/management/api/resources/actions/resources/index.js +2 -2
  37. package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.d.ts +11 -12
  38. package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.js +15 -30
  39. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.ts +10 -11
  40. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +22 -49
  41. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +12 -13
  42. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +27 -66
  43. package/dist/cjs/management/api/resources/anomaly/client/Client.d.ts +9 -9
  44. package/dist/cjs/management/api/resources/anomaly/client/Client.js +7 -6
  45. package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.d.ts +10 -11
  46. package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.js +19 -46
  47. package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +21 -21
  48. package/dist/cjs/management/api/resources/attackProtection/client/Client.js +11 -10
  49. package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.d.ts +10 -11
  50. package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.js +19 -46
  51. package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.d.ts +10 -11
  52. package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.js +19 -46
  53. package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.d.ts +10 -11
  54. package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.js +19 -46
  55. package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.d.ts +10 -11
  56. package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.js +19 -46
  57. package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.d.ts +10 -11
  58. package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.js +19 -46
  59. package/dist/cjs/management/api/resources/branding/client/Client.d.ts +19 -20
  60. package/dist/cjs/management/api/resources/branding/client/Client.js +25 -52
  61. package/dist/cjs/management/api/resources/branding/resources/index.d.ts +1 -1
  62. package/dist/cjs/management/api/resources/branding/resources/index.js +2 -2
  63. package/dist/cjs/management/api/resources/branding/resources/phone/client/Client.d.ts +12 -12
  64. package/dist/cjs/management/api/resources/branding/resources/phone/client/Client.js +8 -7
  65. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.ts +18 -19
  66. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +39 -114
  67. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.d.ts +20 -21
  68. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +44 -131
  69. package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.d.ts +12 -13
  70. package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.js +24 -63
  71. package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.d.ts +16 -17
  72. package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.js +34 -97
  73. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -18
  74. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +30 -81
  75. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +8 -9
  76. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +14 -29
  77. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +24 -25
  78. package/dist/cjs/management/api/resources/clients/client/Client.js +46 -121
  79. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.d.ts +8 -9
  80. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +14 -29
  81. package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.d.ts +24 -25
  82. package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.js +63 -126
  83. package/dist/cjs/management/api/resources/clients/resources/index.d.ts +1 -1
  84. package/dist/cjs/management/api/resources/clients/resources/index.js +2 -2
  85. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.d.ts +128 -0
  86. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +501 -0
  87. package/dist/cjs/management/api/resources/connectionProfiles/client/index.d.ts +1 -0
  88. package/dist/cjs/management/api/resources/connectionProfiles/client/index.js +2 -0
  89. package/dist/cjs/management/api/resources/connectionProfiles/index.d.ts +1 -0
  90. package/dist/cjs/management/api/resources/connectionProfiles/index.js +17 -0
  91. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +33 -31
  92. package/dist/cjs/management/api/resources/connections/client/Client.js +51 -121
  93. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.d.ts +10 -11
  94. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +19 -46
  95. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +104 -0
  96. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +387 -0
  97. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/index.d.ts +1 -0
  98. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/index.js +2 -0
  99. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/index.d.ts +2 -0
  100. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/index.js +18 -0
  101. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/index.d.ts +1 -0
  102. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/index.js +37 -0
  103. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.d.ts +31 -0
  104. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.js +125 -0
  105. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.d.ts +1 -0
  106. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.js +2 -0
  107. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.d.ts +1 -0
  108. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.js +17 -0
  109. package/dist/cjs/management/api/resources/connections/resources/index.d.ts +1 -0
  110. package/dist/cjs/management/api/resources/connections/resources/index.js +2 -1
  111. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +10 -11
  112. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +19 -46
  113. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +19 -20
  114. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +35 -98
  115. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.ts +12 -13
  116. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.js +24 -63
  117. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.d.ts +8 -9
  118. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +14 -29
  119. package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +27 -22
  120. package/dist/cjs/management/api/resources/customDomains/client/Client.js +76 -143
  121. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +12 -13
  122. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +27 -66
  123. package/dist/cjs/management/api/resources/emailTemplates/client/Client.d.ts +14 -15
  124. package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +29 -80
  125. package/dist/cjs/management/api/resources/emails/client/Client.d.ts +9 -9
  126. package/dist/cjs/management/api/resources/emails/client/Client.js +7 -6
  127. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.d.ts +14 -15
  128. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +29 -80
  129. package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +24 -25
  130. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +41 -116
  131. package/dist/cjs/management/api/resources/eventStreams/index.d.ts +1 -1
  132. package/dist/cjs/management/api/resources/eventStreams/index.js +1 -1
  133. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +11 -12
  134. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +24 -51
  135. package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.d.ts +11 -12
  136. package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.js +24 -51
  137. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +22 -23
  138. package/dist/cjs/management/api/resources/flows/client/Client.js +39 -102
  139. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +17 -18
  140. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +41 -80
  141. package/dist/cjs/management/api/resources/flows/resources/vault/client/Client.d.ts +9 -9
  142. package/dist/cjs/management/api/resources/flows/resources/vault/client/Client.js +7 -6
  143. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.d.ts +16 -17
  144. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +37 -100
  145. package/dist/cjs/management/api/resources/forms/client/Client.d.ts +16 -17
  146. package/dist/cjs/management/api/resources/forms/client/Client.js +37 -100
  147. package/dist/cjs/management/api/resources/guardian/client/Client.d.ts +15 -15
  148. package/dist/cjs/management/api/resources/guardian/client/Client.js +9 -8
  149. package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.d.ts +12 -13
  150. package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.js +24 -63
  151. package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.d.ts +22 -23
  152. package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +27 -54
  153. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/client/Client.d.ts +9 -9
  154. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/client/Client.js +7 -6
  155. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.d.ts +12 -13
  156. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.js +24 -63
  157. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.d.ts +1 -1
  158. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.js +2 -2
  159. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.ts +22 -23
  160. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +49 -148
  161. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.ts +75 -31
  162. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.js +249 -180
  163. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.ts +18 -19
  164. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.js +39 -114
  165. package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.d.ts +10 -11
  166. package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.js +19 -46
  167. package/dist/cjs/management/api/resources/hooks/client/Client.d.ts +19 -20
  168. package/dist/cjs/management/api/resources/hooks/client/Client.js +38 -101
  169. package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.d.ts +14 -15
  170. package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.js +29 -80
  171. package/dist/cjs/management/api/resources/index.d.ts +13 -12
  172. package/dist/cjs/management/api/resources/index.js +14 -13
  173. package/dist/cjs/management/api/resources/jobs/client/Client.d.ts +20 -21
  174. package/dist/cjs/management/api/resources/jobs/client/Client.js +22 -37
  175. package/dist/cjs/management/api/resources/jobs/index.d.ts +1 -1
  176. package/dist/cjs/management/api/resources/jobs/index.js +1 -1
  177. package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.d.ts +8 -9
  178. package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.js +14 -29
  179. package/dist/cjs/management/api/resources/jobs/resources/errors/index.d.ts +1 -1
  180. package/dist/cjs/management/api/resources/jobs/resources/errors/index.js +1 -1
  181. package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.d.ts +8 -9
  182. package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.js +14 -29
  183. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.d.ts +8 -9
  184. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -29
  185. package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.d.ts +8 -9
  186. package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.js +14 -29
  187. package/dist/cjs/management/api/resources/keys/client/Client.d.ts +15 -15
  188. package/dist/cjs/management/api/resources/keys/client/Client.js +9 -8
  189. package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.d.ts +12 -13
  190. package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.js +24 -63
  191. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.d.ts +20 -21
  192. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +47 -134
  193. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.d.ts +14 -15
  194. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +29 -80
  195. package/dist/cjs/management/api/resources/logStreams/client/Client.d.ts +16 -17
  196. package/dist/cjs/management/api/resources/logStreams/client/Client.js +34 -97
  197. package/dist/cjs/management/api/resources/logs/client/Client.d.ts +10 -11
  198. package/dist/cjs/management/api/resources/logs/client/Client.js +22 -49
  199. package/dist/cjs/management/api/resources/networkAcls/client/Client.d.ts +18 -19
  200. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +42 -117
  201. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +33 -34
  202. package/dist/cjs/management/api/resources/organizations/client/Client.js +44 -119
  203. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.d.ts +13 -14
  204. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +32 -71
  205. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +21 -22
  206. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +52 -115
  207. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +16 -17
  208. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +37 -100
  209. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.d.ts +16 -17
  210. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +43 -94
  211. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +15 -16
  212. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +25 -64
  213. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +15 -16
  214. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +41 -80
  215. package/dist/cjs/management/api/resources/prompts/client/Client.d.ts +19 -20
  216. package/dist/cjs/management/api/resources/prompts/client/Client.js +25 -52
  217. package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.d.ts +10 -11
  218. package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.js +19 -46
  219. package/dist/cjs/management/api/resources/prompts/resources/index.d.ts +1 -1
  220. package/dist/cjs/management/api/resources/prompts/resources/index.js +2 -2
  221. package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.d.ts +10 -11
  222. package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.js +19 -46
  223. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +16 -76
  224. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +37 -147
  225. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +10 -11
  226. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +19 -46
  227. package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +16 -17
  228. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +37 -100
  229. package/dist/cjs/management/api/resources/riskAssessments/client/Client.d.ts +9 -9
  230. package/dist/cjs/management/api/resources/riskAssessments/client/Client.js +7 -6
  231. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.d.ts +13 -14
  232. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.js +20 -47
  233. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.d.ts +10 -11
  234. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.js +19 -46
  235. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +22 -23
  236. package/dist/cjs/management/api/resources/roles/client/Client.js +39 -102
  237. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.d.ts +12 -13
  238. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +27 -66
  239. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +10 -11
  240. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +19 -46
  241. package/dist/cjs/management/api/resources/rules/client/Client.d.ts +16 -17
  242. package/dist/cjs/management/api/resources/rules/client/Client.js +37 -100
  243. package/dist/cjs/management/api/resources/rulesConfigs/client/Client.d.ts +12 -13
  244. package/dist/cjs/management/api/resources/rulesConfigs/client/Client.js +24 -63
  245. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.d.ts +22 -23
  246. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +39 -102
  247. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.ts +10 -11
  248. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.js +19 -46
  249. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.ts +10 -11
  250. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.js +19 -46
  251. package/dist/cjs/management/api/resources/sessions/client/Client.d.ts +14 -15
  252. package/dist/cjs/management/api/resources/sessions/client/Client.js +29 -80
  253. package/dist/cjs/management/api/resources/stats/client/Client.d.ts +10 -11
  254. package/dist/cjs/management/api/resources/stats/client/Client.js +19 -46
  255. package/dist/cjs/management/api/resources/supplementalSignals/client/Client.d.ts +10 -11
  256. package/dist/cjs/management/api/resources/supplementalSignals/client/Client.js +19 -46
  257. package/dist/cjs/management/api/resources/tenants/client/Client.d.ts +9 -9
  258. package/dist/cjs/management/api/resources/tenants/client/Client.js +7 -6
  259. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.d.ts +10 -11
  260. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +19 -46
  261. package/dist/cjs/management/api/resources/tickets/client/Client.d.ts +10 -11
  262. package/dist/cjs/management/api/resources/tickets/client/Client.js +19 -46
  263. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +28 -17
  264. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +46 -97
  265. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +20 -21
  266. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +44 -131
  267. package/dist/cjs/management/api/resources/userBlocks/client/Client.d.ts +14 -15
  268. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +29 -80
  269. package/dist/cjs/management/api/resources/userGrants/client/Client.d.ts +12 -13
  270. package/dist/cjs/management/api/resources/userGrants/client/Client.js +27 -66
  271. package/dist/cjs/management/api/resources/users/client/Client.d.ts +64 -65
  272. package/dist/cjs/management/api/resources/users/client/Client.js +69 -168
  273. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.d.ts +23 -24
  274. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +63 -150
  275. package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.d.ts +8 -9
  276. package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.js +14 -29
  277. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts +8 -9
  278. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +14 -29
  279. package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.d.ts +8 -9
  280. package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.js +14 -29
  281. package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.ts +11 -12
  282. package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.js +24 -51
  283. package/dist/cjs/management/api/resources/users/resources/identities/client/Client.d.ts +11 -12
  284. package/dist/cjs/management/api/resources/users/resources/identities/client/Client.js +24 -51
  285. package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -1
  286. package/dist/cjs/management/api/resources/users/resources/index.js +2 -2
  287. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.d.ts +8 -9
  288. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +17 -32
  289. package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.d.ts +10 -11
  290. package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.js +19 -46
  291. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +8 -9
  292. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +17 -32
  293. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +12 -13
  294. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +27 -66
  295. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +12 -13
  296. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +28 -55
  297. package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.d.ts +8 -9
  298. package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.js +14 -29
  299. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +12 -13
  300. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +27 -66
  301. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +12 -13
  302. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +28 -55
  303. package/dist/cjs/management/api/resources/verifiableCredentials/client/Client.d.ts +9 -9
  304. package/dist/cjs/management/api/resources/verifiableCredentials/client/Client.js +7 -6
  305. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/client/Client.d.ts +9 -9
  306. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/client/Client.js +7 -6
  307. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.ts +16 -17
  308. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +34 -97
  309. package/dist/cjs/management/api/types/types.d.ts +1545 -341
  310. package/dist/cjs/management/api/types/types.js +113 -6
  311. package/dist/cjs/management/auth/BearerAuthProvider.d.ts +16 -0
  312. package/dist/cjs/management/auth/BearerAuthProvider.js +70 -0
  313. package/dist/cjs/management/auth/index.d.ts +1 -0
  314. package/dist/cjs/management/auth/index.js +5 -0
  315. package/dist/cjs/management/core/auth/AuthProvider.d.ts +4 -1
  316. package/dist/cjs/management/core/auth/BearerToken.d.ts +3 -1
  317. package/dist/cjs/management/core/auth/BearerToken.js +7 -6
  318. package/dist/cjs/management/core/auth/NoOpAuthProvider.d.ts +5 -0
  319. package/dist/cjs/management/core/auth/NoOpAuthProvider.js +9 -0
  320. package/dist/cjs/management/core/auth/index.d.ts +1 -0
  321. package/dist/cjs/management/core/auth/index.js +3 -1
  322. package/dist/cjs/management/core/exports.d.ts +2 -1
  323. package/dist/cjs/management/core/exports.js +2 -1
  324. package/dist/cjs/management/core/fetcher/BinaryResponse.d.ts +6 -7
  325. package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +1 -1
  326. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +7 -1
  327. package/dist/cjs/management/core/fetcher/Fetcher.js +202 -8
  328. package/dist/cjs/management/core/fetcher/getErrorResponseBody.js +2 -1
  329. package/dist/cjs/management/core/fetcher/getResponseBody.js +21 -7
  330. package/dist/cjs/management/core/fetcher/makeRequest.d.ts +1 -1
  331. package/dist/cjs/management/core/fetcher/makeRequest.js +2 -4
  332. package/dist/cjs/management/core/fetcher/requestWithRetries.js +3 -12
  333. package/dist/cjs/management/core/fetcher/signals.d.ts +1 -7
  334. package/dist/cjs/management/core/fetcher/signals.js +0 -12
  335. package/dist/cjs/management/core/file/file.js +1 -1
  336. package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +4 -4
  337. package/dist/cjs/management/core/index.d.ts +6 -5
  338. package/dist/cjs/management/core/index.js +7 -6
  339. package/dist/cjs/management/core/logging/exports.d.ts +18 -0
  340. package/dist/cjs/management/core/logging/exports.js +45 -0
  341. package/dist/cjs/management/core/logging/index.d.ts +1 -0
  342. package/dist/cjs/management/core/logging/index.js +17 -0
  343. package/dist/cjs/management/core/logging/logger.d.ts +126 -0
  344. package/dist/cjs/management/core/logging/logger.js +144 -0
  345. package/dist/cjs/management/core/pagination/CustomPager.d.ts +82 -0
  346. package/dist/cjs/management/core/pagination/CustomPager.js +176 -0
  347. package/dist/cjs/management/core/pagination/Page.d.ts +1 -1
  348. package/dist/cjs/management/core/pagination/exports.d.ts +1 -0
  349. package/dist/cjs/management/core/pagination/exports.js +3 -0
  350. package/dist/cjs/management/core/pagination/index.d.ts +1 -0
  351. package/dist/cjs/management/core/pagination/index.js +3 -1
  352. package/dist/cjs/management/core/runtime/runtime.js +11 -10
  353. package/dist/cjs/management/core/url/join.js +3 -4
  354. package/dist/cjs/management/errors/ManagementError.js +5 -1
  355. package/dist/cjs/management/errors/ManagementTimeoutError.js +5 -1
  356. package/dist/cjs/management/errors/handleNonStatusCodeError.d.ts +2 -0
  357. package/dist/cjs/management/errors/handleNonStatusCodeError.js +65 -0
  358. package/dist/cjs/management/version.d.ts +1 -1
  359. package/dist/cjs/management/version.js +1 -1
  360. package/dist/esm/management/BaseClient.d.mts +15 -4
  361. package/dist/esm/management/BaseClient.mjs +15 -1
  362. package/dist/esm/management/Client.d.mts +130 -127
  363. package/dist/esm/management/Client.mjs +90 -84
  364. package/dist/esm/management/api/errors/BadRequestError.d.mts +1 -1
  365. package/dist/esm/management/api/errors/BadRequestError.mjs +5 -1
  366. package/dist/esm/management/api/errors/ConflictError.d.mts +1 -1
  367. package/dist/esm/management/api/errors/ConflictError.mjs +5 -1
  368. package/dist/esm/management/api/errors/ContentTooLargeError.d.mts +1 -1
  369. package/dist/esm/management/api/errors/ContentTooLargeError.mjs +5 -1
  370. package/dist/esm/management/api/errors/ForbiddenError.d.mts +1 -1
  371. package/dist/esm/management/api/errors/ForbiddenError.mjs +5 -1
  372. package/dist/esm/management/api/errors/InternalServerError.d.mts +1 -1
  373. package/dist/esm/management/api/errors/InternalServerError.mjs +5 -1
  374. package/dist/esm/management/api/errors/NotFoundError.d.mts +1 -1
  375. package/dist/esm/management/api/errors/NotFoundError.mjs +5 -1
  376. package/dist/esm/management/api/errors/PaymentRequiredError.d.mts +1 -1
  377. package/dist/esm/management/api/errors/PaymentRequiredError.mjs +5 -1
  378. package/dist/esm/management/api/errors/ServiceUnavailableError.d.mts +1 -1
  379. package/dist/esm/management/api/errors/ServiceUnavailableError.mjs +5 -1
  380. package/dist/esm/management/api/errors/TooManyRequestsError.d.mts +1 -1
  381. package/dist/esm/management/api/errors/TooManyRequestsError.mjs +5 -1
  382. package/dist/esm/management/api/errors/UnauthorizedError.d.mts +1 -1
  383. package/dist/esm/management/api/errors/UnauthorizedError.mjs +5 -1
  384. package/dist/esm/management/api/errors/index.d.mts +5 -5
  385. package/dist/esm/management/api/errors/index.mjs +5 -5
  386. package/dist/esm/management/api/index.d.mts +2 -2
  387. package/dist/esm/management/api/index.mjs +2 -2
  388. package/dist/esm/management/api/requests/requests.d.mts +124 -14
  389. package/dist/esm/management/api/resources/actions/client/Client.d.mts +29 -30
  390. package/dist/esm/management/api/resources/actions/client/Client.mjs +52 -139
  391. package/dist/esm/management/api/resources/actions/resources/executions/client/Client.d.mts +8 -9
  392. package/dist/esm/management/api/resources/actions/resources/executions/client/Client.mjs +13 -28
  393. package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -1
  394. package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -1
  395. package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.d.mts +11 -12
  396. package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.mjs +15 -30
  397. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.mts +10 -11
  398. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +21 -48
  399. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +12 -13
  400. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +26 -65
  401. package/dist/esm/management/api/resources/anomaly/client/Client.d.mts +9 -9
  402. package/dist/esm/management/api/resources/anomaly/client/Client.mjs +6 -5
  403. package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.d.mts +10 -11
  404. package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.mjs +18 -45
  405. package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +21 -21
  406. package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +14 -13
  407. package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.d.mts +10 -11
  408. package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.mjs +18 -45
  409. package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.d.mts +10 -11
  410. package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.mjs +18 -45
  411. package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.d.mts +10 -11
  412. package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.mjs +18 -45
  413. package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.d.mts +10 -11
  414. package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.mjs +18 -45
  415. package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.d.mts +10 -11
  416. package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.mjs +18 -45
  417. package/dist/esm/management/api/resources/branding/client/Client.d.mts +19 -20
  418. package/dist/esm/management/api/resources/branding/client/Client.mjs +24 -51
  419. package/dist/esm/management/api/resources/branding/resources/index.d.mts +1 -1
  420. package/dist/esm/management/api/resources/branding/resources/index.mjs +1 -1
  421. package/dist/esm/management/api/resources/branding/resources/phone/client/Client.d.mts +12 -12
  422. package/dist/esm/management/api/resources/branding/resources/phone/client/Client.mjs +8 -7
  423. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.mts +18 -19
  424. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +38 -113
  425. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.d.mts +20 -21
  426. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +43 -130
  427. package/dist/esm/management/api/resources/branding/resources/templates/client/Client.d.mts +12 -13
  428. package/dist/esm/management/api/resources/branding/resources/templates/client/Client.mjs +23 -62
  429. package/dist/esm/management/api/resources/branding/resources/themes/client/Client.d.mts +16 -17
  430. package/dist/esm/management/api/resources/branding/resources/themes/client/Client.mjs +33 -96
  431. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -18
  432. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +30 -81
  433. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +8 -9
  434. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +13 -28
  435. package/dist/esm/management/api/resources/clients/client/Client.d.mts +24 -25
  436. package/dist/esm/management/api/resources/clients/client/Client.mjs +45 -120
  437. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.d.mts +8 -9
  438. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +13 -28
  439. package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.d.mts +24 -25
  440. package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.mjs +62 -125
  441. package/dist/esm/management/api/resources/clients/resources/index.d.mts +1 -1
  442. package/dist/esm/management/api/resources/clients/resources/index.mjs +1 -1
  443. package/dist/esm/management/api/resources/connectionProfiles/client/Client.d.mts +128 -0
  444. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +464 -0
  445. package/dist/esm/management/api/resources/connectionProfiles/client/index.d.mts +1 -0
  446. package/dist/esm/management/api/resources/connectionProfiles/client/index.mjs +1 -0
  447. package/dist/esm/management/api/resources/connectionProfiles/index.d.mts +1 -0
  448. package/dist/esm/management/api/resources/connectionProfiles/index.mjs +1 -0
  449. package/dist/esm/management/api/resources/connections/client/Client.d.mts +33 -31
  450. package/dist/esm/management/api/resources/connections/client/Client.mjs +51 -121
  451. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.d.mts +10 -11
  452. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +18 -45
  453. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +104 -0
  454. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +350 -0
  455. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/index.d.mts +1 -0
  456. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/index.mjs +1 -0
  457. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/index.d.mts +2 -0
  458. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/index.mjs +2 -0
  459. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/index.d.mts +1 -0
  460. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/index.mjs +1 -0
  461. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.d.mts +31 -0
  462. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.mjs +88 -0
  463. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.d.mts +1 -0
  464. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.mjs +1 -0
  465. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.d.mts +1 -0
  466. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.mjs +1 -0
  467. package/dist/esm/management/api/resources/connections/resources/index.d.mts +1 -0
  468. package/dist/esm/management/api/resources/connections/resources/index.mjs +1 -0
  469. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +10 -11
  470. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +18 -45
  471. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +19 -20
  472. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +35 -98
  473. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.mts +12 -13
  474. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.mjs +23 -62
  475. package/dist/esm/management/api/resources/connections/resources/users/client/Client.d.mts +8 -9
  476. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +13 -28
  477. package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +27 -22
  478. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +75 -142
  479. package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +12 -13
  480. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +26 -65
  481. package/dist/esm/management/api/resources/emailTemplates/client/Client.d.mts +14 -15
  482. package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +28 -79
  483. package/dist/esm/management/api/resources/emails/client/Client.d.mts +9 -9
  484. package/dist/esm/management/api/resources/emails/client/Client.mjs +6 -5
  485. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.d.mts +14 -15
  486. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +28 -79
  487. package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +24 -25
  488. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +42 -117
  489. package/dist/esm/management/api/resources/eventStreams/index.d.mts +1 -1
  490. package/dist/esm/management/api/resources/eventStreams/index.mjs +1 -1
  491. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +11 -12
  492. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +23 -50
  493. package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.d.mts +11 -12
  494. package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.mjs +23 -50
  495. package/dist/esm/management/api/resources/flows/client/Client.d.mts +22 -23
  496. package/dist/esm/management/api/resources/flows/client/Client.mjs +40 -103
  497. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +17 -18
  498. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +40 -79
  499. package/dist/esm/management/api/resources/flows/resources/vault/client/Client.d.mts +9 -9
  500. package/dist/esm/management/api/resources/flows/resources/vault/client/Client.mjs +6 -5
  501. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.d.mts +16 -17
  502. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +36 -99
  503. package/dist/esm/management/api/resources/forms/client/Client.d.mts +16 -17
  504. package/dist/esm/management/api/resources/forms/client/Client.mjs +36 -99
  505. package/dist/esm/management/api/resources/guardian/client/Client.d.mts +15 -15
  506. package/dist/esm/management/api/resources/guardian/client/Client.mjs +10 -9
  507. package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.d.mts +12 -13
  508. package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.mjs +23 -62
  509. package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.d.mts +22 -23
  510. package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +26 -53
  511. package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/client/Client.d.mts +9 -9
  512. package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/client/Client.mjs +6 -5
  513. package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.d.mts +12 -13
  514. package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.mjs +23 -62
  515. package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.d.mts +1 -1
  516. package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.mjs +1 -1
  517. package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.mts +22 -23
  518. package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +48 -147
  519. package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.mts +75 -31
  520. package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.mjs +248 -179
  521. package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.mts +18 -19
  522. package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.mjs +38 -113
  523. package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.d.mts +10 -11
  524. package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.mjs +18 -45
  525. package/dist/esm/management/api/resources/hooks/client/Client.d.mts +19 -20
  526. package/dist/esm/management/api/resources/hooks/client/Client.mjs +38 -101
  527. package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.d.mts +14 -15
  528. package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.mjs +28 -79
  529. package/dist/esm/management/api/resources/index.d.mts +13 -12
  530. package/dist/esm/management/api/resources/index.mjs +13 -12
  531. package/dist/esm/management/api/resources/jobs/client/Client.d.mts +20 -21
  532. package/dist/esm/management/api/resources/jobs/client/Client.mjs +21 -36
  533. package/dist/esm/management/api/resources/jobs/index.d.mts +1 -1
  534. package/dist/esm/management/api/resources/jobs/index.mjs +1 -1
  535. package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.d.mts +8 -9
  536. package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.mjs +13 -28
  537. package/dist/esm/management/api/resources/jobs/resources/errors/index.d.mts +1 -1
  538. package/dist/esm/management/api/resources/jobs/resources/errors/index.mjs +1 -1
  539. package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.d.mts +8 -9
  540. package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.mjs +13 -28
  541. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.d.mts +8 -9
  542. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +12 -27
  543. package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.d.mts +8 -9
  544. package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.mjs +13 -28
  545. package/dist/esm/management/api/resources/keys/client/Client.d.mts +15 -15
  546. package/dist/esm/management/api/resources/keys/client/Client.mjs +10 -9
  547. package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.d.mts +12 -13
  548. package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.mjs +23 -62
  549. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.d.mts +20 -21
  550. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +46 -133
  551. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.d.mts +14 -15
  552. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +28 -79
  553. package/dist/esm/management/api/resources/logStreams/client/Client.d.mts +16 -17
  554. package/dist/esm/management/api/resources/logStreams/client/Client.mjs +33 -96
  555. package/dist/esm/management/api/resources/logs/client/Client.d.mts +10 -11
  556. package/dist/esm/management/api/resources/logs/client/Client.mjs +21 -48
  557. package/dist/esm/management/api/resources/networkAcls/client/Client.d.mts +18 -19
  558. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +41 -116
  559. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +33 -34
  560. package/dist/esm/management/api/resources/organizations/client/Client.mjs +48 -123
  561. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.d.mts +13 -14
  562. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +31 -70
  563. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +21 -22
  564. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +51 -114
  565. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +16 -17
  566. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +36 -99
  567. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.d.mts +16 -17
  568. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +42 -93
  569. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +15 -16
  570. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +25 -64
  571. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +15 -16
  572. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +40 -79
  573. package/dist/esm/management/api/resources/prompts/client/Client.d.mts +19 -20
  574. package/dist/esm/management/api/resources/prompts/client/Client.mjs +24 -51
  575. package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.d.mts +10 -11
  576. package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.mjs +18 -45
  577. package/dist/esm/management/api/resources/prompts/resources/index.d.mts +1 -1
  578. package/dist/esm/management/api/resources/prompts/resources/index.mjs +1 -1
  579. package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.d.mts +10 -11
  580. package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.mjs +18 -45
  581. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +16 -76
  582. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +36 -146
  583. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +10 -11
  584. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +18 -45
  585. package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +16 -17
  586. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +36 -99
  587. package/dist/esm/management/api/resources/riskAssessments/client/Client.d.mts +9 -9
  588. package/dist/esm/management/api/resources/riskAssessments/client/Client.mjs +6 -5
  589. package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.d.mts +13 -14
  590. package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.mjs +20 -47
  591. package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.d.mts +10 -11
  592. package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.mjs +18 -45
  593. package/dist/esm/management/api/resources/roles/client/Client.d.mts +22 -23
  594. package/dist/esm/management/api/resources/roles/client/Client.mjs +40 -103
  595. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.d.mts +12 -13
  596. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +26 -65
  597. package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +10 -11
  598. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +18 -45
  599. package/dist/esm/management/api/resources/rules/client/Client.d.mts +16 -17
  600. package/dist/esm/management/api/resources/rules/client/Client.mjs +36 -99
  601. package/dist/esm/management/api/resources/rulesConfigs/client/Client.d.mts +12 -13
  602. package/dist/esm/management/api/resources/rulesConfigs/client/Client.mjs +23 -62
  603. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.d.mts +22 -23
  604. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +40 -103
  605. package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.mts +10 -11
  606. package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.mjs +18 -45
  607. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.mts +10 -11
  608. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.mjs +18 -45
  609. package/dist/esm/management/api/resources/sessions/client/Client.d.mts +14 -15
  610. package/dist/esm/management/api/resources/sessions/client/Client.mjs +28 -79
  611. package/dist/esm/management/api/resources/stats/client/Client.d.mts +10 -11
  612. package/dist/esm/management/api/resources/stats/client/Client.mjs +18 -45
  613. package/dist/esm/management/api/resources/supplementalSignals/client/Client.d.mts +10 -11
  614. package/dist/esm/management/api/resources/supplementalSignals/client/Client.mjs +18 -45
  615. package/dist/esm/management/api/resources/tenants/client/Client.d.mts +9 -9
  616. package/dist/esm/management/api/resources/tenants/client/Client.mjs +6 -5
  617. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.d.mts +10 -11
  618. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +18 -45
  619. package/dist/esm/management/api/resources/tickets/client/Client.d.mts +10 -11
  620. package/dist/esm/management/api/resources/tickets/client/Client.mjs +18 -45
  621. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +28 -17
  622. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +45 -96
  623. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +20 -21
  624. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +43 -130
  625. package/dist/esm/management/api/resources/userBlocks/client/Client.d.mts +14 -15
  626. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +28 -79
  627. package/dist/esm/management/api/resources/userGrants/client/Client.d.mts +12 -13
  628. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +26 -65
  629. package/dist/esm/management/api/resources/users/client/Client.d.mts +64 -65
  630. package/dist/esm/management/api/resources/users/client/Client.mjs +79 -178
  631. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.d.mts +23 -24
  632. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +62 -149
  633. package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.d.mts +8 -9
  634. package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.mjs +13 -28
  635. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.d.mts +8 -9
  636. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +13 -28
  637. package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.d.mts +8 -9
  638. package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.mjs +13 -28
  639. package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.mts +11 -12
  640. package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.mjs +23 -50
  641. package/dist/esm/management/api/resources/users/resources/identities/client/Client.d.mts +11 -12
  642. package/dist/esm/management/api/resources/users/resources/identities/client/Client.mjs +23 -50
  643. package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -1
  644. package/dist/esm/management/api/resources/users/resources/index.mjs +1 -1
  645. package/dist/esm/management/api/resources/users/resources/logs/client/Client.d.mts +8 -9
  646. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +16 -31
  647. package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.d.mts +10 -11
  648. package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.mjs +18 -45
  649. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +8 -9
  650. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +16 -31
  651. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +12 -13
  652. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +26 -65
  653. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +12 -13
  654. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +27 -54
  655. package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.d.mts +8 -9
  656. package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.mjs +13 -28
  657. package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +12 -13
  658. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +26 -65
  659. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +12 -13
  660. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +27 -54
  661. package/dist/esm/management/api/resources/verifiableCredentials/client/Client.d.mts +9 -9
  662. package/dist/esm/management/api/resources/verifiableCredentials/client/Client.mjs +6 -5
  663. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/client/Client.d.mts +9 -9
  664. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/client/Client.mjs +6 -5
  665. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.mts +16 -17
  666. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +33 -96
  667. package/dist/esm/management/api/types/types.d.mts +1545 -341
  668. package/dist/esm/management/api/types/types.mjs +109 -2
  669. package/dist/esm/management/auth/BearerAuthProvider.d.mts +16 -0
  670. package/dist/esm/management/auth/BearerAuthProvider.mjs +33 -0
  671. package/dist/esm/management/auth/index.d.mts +1 -0
  672. package/dist/esm/management/auth/index.mjs +1 -0
  673. package/dist/esm/management/core/auth/AuthProvider.d.mts +4 -1
  674. package/dist/esm/management/core/auth/BearerToken.d.mts +3 -1
  675. package/dist/esm/management/core/auth/BearerToken.mjs +7 -6
  676. package/dist/esm/management/core/auth/NoOpAuthProvider.d.mts +5 -0
  677. package/dist/esm/management/core/auth/NoOpAuthProvider.mjs +5 -0
  678. package/dist/esm/management/core/auth/index.d.mts +1 -0
  679. package/dist/esm/management/core/auth/index.mjs +1 -0
  680. package/dist/esm/management/core/exports.d.mts +2 -1
  681. package/dist/esm/management/core/exports.mjs +2 -1
  682. package/dist/esm/management/core/fetcher/BinaryResponse.d.mts +6 -7
  683. package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +1 -1
  684. package/dist/esm/management/core/fetcher/Fetcher.d.mts +7 -1
  685. package/dist/esm/management/core/fetcher/Fetcher.mjs +202 -8
  686. package/dist/esm/management/core/fetcher/getErrorResponseBody.mjs +2 -1
  687. package/dist/esm/management/core/fetcher/getResponseBody.mjs +21 -7
  688. package/dist/esm/management/core/fetcher/makeRequest.d.mts +1 -1
  689. package/dist/esm/management/core/fetcher/makeRequest.mjs +2 -4
  690. package/dist/esm/management/core/fetcher/requestWithRetries.mjs +3 -12
  691. package/dist/esm/management/core/fetcher/signals.d.mts +1 -7
  692. package/dist/esm/management/core/fetcher/signals.mjs +0 -12
  693. package/dist/esm/management/core/file/file.mjs +1 -1
  694. package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
  695. package/dist/esm/management/core/index.d.mts +6 -5
  696. package/dist/esm/management/core/index.mjs +6 -5
  697. package/dist/esm/management/core/logging/exports.d.mts +18 -0
  698. package/dist/esm/management/core/logging/exports.mjs +9 -0
  699. package/dist/esm/management/core/logging/index.d.mts +1 -0
  700. package/dist/esm/management/core/logging/index.mjs +1 -0
  701. package/dist/esm/management/core/logging/logger.d.mts +126 -0
  702. package/dist/esm/management/core/logging/logger.mjs +138 -0
  703. package/dist/esm/management/core/pagination/CustomPager.d.mts +82 -0
  704. package/dist/esm/management/core/pagination/CustomPager.mjs +172 -0
  705. package/dist/esm/management/core/pagination/Page.d.mts +1 -1
  706. package/dist/esm/management/core/pagination/exports.d.mts +1 -0
  707. package/dist/esm/management/core/pagination/exports.mjs +1 -1
  708. package/dist/esm/management/core/pagination/index.d.mts +1 -0
  709. package/dist/esm/management/core/pagination/index.mjs +1 -0
  710. package/dist/esm/management/core/runtime/runtime.mjs +11 -10
  711. package/dist/esm/management/core/url/join.mjs +3 -4
  712. package/dist/esm/management/errors/ManagementError.mjs +5 -1
  713. package/dist/esm/management/errors/ManagementTimeoutError.mjs +5 -1
  714. package/dist/esm/management/errors/handleNonStatusCodeError.d.mts +2 -0
  715. package/dist/esm/management/errors/handleNonStatusCodeError.mjs +29 -0
  716. package/dist/esm/management/version.d.mts +1 -1
  717. package/dist/esm/management/version.mjs +1 -1
  718. package/package.json +8 -8
  719. package/reference.md +2386 -1370
  720. package/dist/cjs/management/core/fetcher/ResponseWithBody.d.ts +0 -4
  721. package/dist/cjs/management/core/fetcher/ResponseWithBody.js +0 -6
  722. package/dist/esm/management/core/fetcher/ResponseWithBody.d.mts +0 -4
  723. package/dist/esm/management/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -1,20 +1,20 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
2
3
  import * as core from "../../../../../../core/index.mjs";
3
4
  import * as Management from "../../../../../index.mjs";
4
- export declare namespace Blocks {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace BlocksClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class Blocks {
11
- protected readonly _options: Blocks.Options;
12
- constructor(_options: Blocks.Options);
10
+ export declare class BlocksClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<BlocksClient.Options>;
12
+ constructor(options: BlocksClient.Options);
13
13
  /**
14
14
  * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts.
15
15
  *
16
16
  * @param {Management.AnomalyIpFormat} id - IP address to check.
17
- * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
17
+ * @param {BlocksClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link Management.BadRequestError}
20
20
  * @throws {@link Management.UnauthorizedError}
@@ -25,13 +25,13 @@ export declare class Blocks {
25
25
  * @example
26
26
  * await client.anomaly.blocks.checkIp("id")
27
27
  */
28
- checkIp(id: Management.AnomalyIpFormat, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<void>;
28
+ checkIp(id: Management.AnomalyIpFormat, requestOptions?: BlocksClient.RequestOptions): core.HttpResponsePromise<void>;
29
29
  private __checkIp;
30
30
  /**
31
31
  * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address.
32
32
  *
33
33
  * @param {Management.AnomalyIpFormat} id - IP address to unblock.
34
- * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
34
+ * @param {BlocksClient.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
36
36
  * @throws {@link Management.BadRequestError}
37
37
  * @throws {@link Management.UnauthorizedError}
@@ -41,7 +41,6 @@ export declare class Blocks {
41
41
  * @example
42
42
  * await client.anomaly.blocks.unblockIp("id")
43
43
  */
44
- unblockIp(id: Management.AnomalyIpFormat, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<void>;
44
+ unblockIp(id: Management.AnomalyIpFormat, requestOptions?: BlocksClient.RequestOptions): core.HttpResponsePromise<void>;
45
45
  private __unblockIp;
46
- protected _getAuthorizationHeader(): Promise<string>;
47
46
  }
@@ -8,20 +8,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as environments from "../../../../../../environments.mjs";
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
12
  import * as core from "../../../../../../core/index.mjs";
13
- import * as Management from "../../../../../index.mjs";
14
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
15
16
  import * as errors from "../../../../../../errors/index.mjs";
16
- export class Blocks {
17
- constructor(_options) {
18
- this._options = _options;
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class BlocksClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
19
21
  }
20
22
  /**
21
23
  * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts.
22
24
  *
23
25
  * @param {Management.AnomalyIpFormat} id - IP address to check.
24
- * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
26
+ * @param {BlocksClient.RequestOptions} requestOptions - Request-specific configuration.
25
27
  *
26
28
  * @throws {@link Management.BadRequestError}
27
29
  * @throws {@link Management.UnauthorizedError}
@@ -38,7 +40,8 @@ export class Blocks {
38
40
  __checkIp(id, requestOptions) {
39
41
  return __awaiter(this, void 0, void 0, function* () {
40
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
41
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
44
+ 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);
42
45
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
43
46
  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, `anomaly/blocks/ips/${core.url.encodePathParam(id)}`),
44
47
  method: "GET",
@@ -48,6 +51,7 @@ export class Blocks {
48
51
  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,
49
52
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
50
53
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
54
+ logging: this._options.logging,
51
55
  });
52
56
  if (_response.ok) {
53
57
  return { data: undefined, rawResponse: _response.rawResponse };
@@ -72,28 +76,14 @@ export class Blocks {
72
76
  });
73
77
  }
74
78
  }
75
- switch (_response.error.reason) {
76
- case "non-json":
77
- throw new errors.ManagementError({
78
- statusCode: _response.error.statusCode,
79
- body: _response.error.rawBody,
80
- rawResponse: _response.rawResponse,
81
- });
82
- case "timeout":
83
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /anomaly/blocks/ips/{id}.");
84
- case "unknown":
85
- throw new errors.ManagementError({
86
- message: _response.error.errorMessage,
87
- rawResponse: _response.rawResponse,
88
- });
89
- }
79
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/anomaly/blocks/ips/{id}");
90
80
  });
91
81
  }
92
82
  /**
93
83
  * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address.
94
84
  *
95
85
  * @param {Management.AnomalyIpFormat} id - IP address to unblock.
96
- * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
86
+ * @param {BlocksClient.RequestOptions} requestOptions - Request-specific configuration.
97
87
  *
98
88
  * @throws {@link Management.BadRequestError}
99
89
  * @throws {@link Management.UnauthorizedError}
@@ -109,7 +99,8 @@ export class Blocks {
109
99
  __unblockIp(id, requestOptions) {
110
100
  return __awaiter(this, void 0, void 0, function* () {
111
101
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
112
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
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);
113
104
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
114
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, `anomaly/blocks/ips/${core.url.encodePathParam(id)}`),
115
106
  method: "DELETE",
@@ -119,6 +110,7 @@ export class Blocks {
119
110
  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,
120
111
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
121
112
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
113
+ logging: this._options.logging,
122
114
  });
123
115
  if (_response.ok) {
124
116
  return { data: undefined, rawResponse: _response.rawResponse };
@@ -141,26 +133,7 @@ export class Blocks {
141
133
  });
142
134
  }
143
135
  }
144
- switch (_response.error.reason) {
145
- case "non-json":
146
- throw new errors.ManagementError({
147
- statusCode: _response.error.statusCode,
148
- body: _response.error.rawBody,
149
- rawResponse: _response.rawResponse,
150
- });
151
- case "timeout":
152
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling DELETE /anomaly/blocks/ips/{id}.");
153
- case "unknown":
154
- throw new errors.ManagementError({
155
- message: _response.error.errorMessage,
156
- rawResponse: _response.rawResponse,
157
- });
158
- }
159
- });
160
- }
161
- _getAuthorizationHeader() {
162
- return __awaiter(this, void 0, void 0, function* () {
163
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
136
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/anomaly/blocks/ips/{id}");
164
137
  });
165
138
  }
166
139
  }
@@ -1,24 +1,24 @@
1
1
  import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
- import { BotDetection } from "../resources/botDetection/client/Client.mjs";
3
- import { BreachedPasswordDetection } from "../resources/breachedPasswordDetection/client/Client.mjs";
4
- import { BruteForceProtection } from "../resources/bruteForceProtection/client/Client.mjs";
5
- import { Captcha } from "../resources/captcha/client/Client.mjs";
6
- import { SuspiciousIpThrottling } from "../resources/suspiciousIpThrottling/client/Client.mjs";
7
- export declare namespace AttackProtection {
8
- interface Options extends BaseClientOptions {
9
- }
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import { BotDetectionClient } from "../resources/botDetection/client/Client.mjs";
4
+ import { BreachedPasswordDetectionClient } from "../resources/breachedPasswordDetection/client/Client.mjs";
5
+ import { BruteForceProtectionClient } from "../resources/bruteForceProtection/client/Client.mjs";
6
+ import { CaptchaClient } from "../resources/captcha/client/Client.mjs";
7
+ import { SuspiciousIpThrottlingClient } from "../resources/suspiciousIpThrottling/client/Client.mjs";
8
+ export declare namespace AttackProtectionClient {
9
+ type Options = BaseClientOptions;
10
10
  }
11
- export declare class AttackProtection {
12
- protected readonly _options: AttackProtection.Options;
13
- protected _botDetection: BotDetection | undefined;
14
- protected _breachedPasswordDetection: BreachedPasswordDetection | undefined;
15
- protected _bruteForceProtection: BruteForceProtection | undefined;
16
- protected _captcha: Captcha | undefined;
17
- protected _suspiciousIpThrottling: SuspiciousIpThrottling | undefined;
18
- constructor(_options: AttackProtection.Options);
19
- get botDetection(): BotDetection;
20
- get breachedPasswordDetection(): BreachedPasswordDetection;
21
- get bruteForceProtection(): BruteForceProtection;
22
- get captcha(): Captcha;
23
- get suspiciousIpThrottling(): SuspiciousIpThrottling;
11
+ export declare class AttackProtectionClient {
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<AttackProtectionClient.Options>;
13
+ protected _botDetection: BotDetectionClient | undefined;
14
+ protected _breachedPasswordDetection: BreachedPasswordDetectionClient | undefined;
15
+ protected _bruteForceProtection: BruteForceProtectionClient | undefined;
16
+ protected _captcha: CaptchaClient | undefined;
17
+ protected _suspiciousIpThrottling: SuspiciousIpThrottlingClient | undefined;
18
+ constructor(options: AttackProtectionClient.Options);
19
+ get botDetection(): BotDetectionClient;
20
+ get breachedPasswordDetection(): BreachedPasswordDetectionClient;
21
+ get bruteForceProtection(): BruteForceProtectionClient;
22
+ get captcha(): CaptchaClient;
23
+ get suspiciousIpThrottling(): SuspiciousIpThrottlingClient;
24
24
  }
@@ -1,31 +1,32 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import { BotDetection } from "../resources/botDetection/client/Client.mjs";
3
- import { BreachedPasswordDetection } from "../resources/breachedPasswordDetection/client/Client.mjs";
4
- import { BruteForceProtection } from "../resources/bruteForceProtection/client/Client.mjs";
5
- import { Captcha } from "../resources/captcha/client/Client.mjs";
6
- import { SuspiciousIpThrottling } from "../resources/suspiciousIpThrottling/client/Client.mjs";
7
- export class AttackProtection {
8
- constructor(_options) {
9
- this._options = _options;
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import { BotDetectionClient } from "../resources/botDetection/client/Client.mjs";
4
+ import { BreachedPasswordDetectionClient } from "../resources/breachedPasswordDetection/client/Client.mjs";
5
+ import { BruteForceProtectionClient } from "../resources/bruteForceProtection/client/Client.mjs";
6
+ import { CaptchaClient } from "../resources/captcha/client/Client.mjs";
7
+ import { SuspiciousIpThrottlingClient } from "../resources/suspiciousIpThrottling/client/Client.mjs";
8
+ export class AttackProtectionClient {
9
+ constructor(options) {
10
+ this._options = normalizeClientOptionsWithAuth(options);
10
11
  }
11
12
  get botDetection() {
12
13
  var _a;
13
- return ((_a = this._botDetection) !== null && _a !== void 0 ? _a : (this._botDetection = new BotDetection(this._options)));
14
+ return ((_a = this._botDetection) !== null && _a !== void 0 ? _a : (this._botDetection = new BotDetectionClient(this._options)));
14
15
  }
15
16
  get breachedPasswordDetection() {
16
17
  var _a;
17
- return ((_a = this._breachedPasswordDetection) !== null && _a !== void 0 ? _a : (this._breachedPasswordDetection = new BreachedPasswordDetection(this._options)));
18
+ return ((_a = this._breachedPasswordDetection) !== null && _a !== void 0 ? _a : (this._breachedPasswordDetection = new BreachedPasswordDetectionClient(this._options)));
18
19
  }
19
20
  get bruteForceProtection() {
20
21
  var _a;
21
- return ((_a = this._bruteForceProtection) !== null && _a !== void 0 ? _a : (this._bruteForceProtection = new BruteForceProtection(this._options)));
22
+ return ((_a = this._bruteForceProtection) !== null && _a !== void 0 ? _a : (this._bruteForceProtection = new BruteForceProtectionClient(this._options)));
22
23
  }
23
24
  get captcha() {
24
25
  var _a;
25
- return ((_a = this._captcha) !== null && _a !== void 0 ? _a : (this._captcha = new Captcha(this._options)));
26
+ return ((_a = this._captcha) !== null && _a !== void 0 ? _a : (this._captcha = new CaptchaClient(this._options)));
26
27
  }
27
28
  get suspiciousIpThrottling() {
28
29
  var _a;
29
- return ((_a = this._suspiciousIpThrottling) !== null && _a !== void 0 ? _a : (this._suspiciousIpThrottling = new SuspiciousIpThrottling(this._options)));
30
+ return ((_a = this._suspiciousIpThrottling) !== null && _a !== void 0 ? _a : (this._suspiciousIpThrottling = new SuspiciousIpThrottlingClient(this._options)));
30
31
  }
31
32
  }
@@ -1,19 +1,19 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
2
3
  import * as core from "../../../../../../core/index.mjs";
3
4
  import * as Management from "../../../../../index.mjs";
4
- export declare namespace BotDetection {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace BotDetectionClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class BotDetection {
11
- protected readonly _options: BotDetection.Options;
12
- constructor(_options: BotDetection.Options);
10
+ export declare class BotDetectionClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<BotDetectionClient.Options>;
12
+ constructor(options: BotDetectionClient.Options);
13
13
  /**
14
14
  * Get the Bot Detection configuration of your tenant.
15
15
  *
16
- * @param {BotDetection.RequestOptions} requestOptions - Request-specific configuration.
16
+ * @param {BotDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
18
18
  * @throws {@link Management.UnauthorizedError}
19
19
  * @throws {@link Management.ForbiddenError}
@@ -23,13 +23,13 @@ export declare class BotDetection {
23
23
  * @example
24
24
  * await client.attackProtection.botDetection.get()
25
25
  */
26
- get(requestOptions?: BotDetection.RequestOptions): core.HttpResponsePromise<Management.GetBotDetectionSettingsResponseContent>;
26
+ get(requestOptions?: BotDetectionClient.RequestOptions): core.HttpResponsePromise<Management.GetBotDetectionSettingsResponseContent>;
27
27
  private __get;
28
28
  /**
29
29
  * Update the Bot Detection configuration of your tenant.
30
30
  *
31
31
  * @param {Management.UpdateBotDetectionSettingsRequestContent} request
32
- * @param {BotDetection.RequestOptions} requestOptions - Request-specific configuration.
32
+ * @param {BotDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @throws {@link Management.BadRequestError}
35
35
  * @throws {@link Management.UnauthorizedError}
@@ -40,7 +40,6 @@ export declare class BotDetection {
40
40
  * @example
41
41
  * await client.attackProtection.botDetection.update()
42
42
  */
43
- update(request?: Management.UpdateBotDetectionSettingsRequestContent, requestOptions?: BotDetection.RequestOptions): core.HttpResponsePromise<Management.UpdateBotDetectionSettingsResponseContent>;
43
+ update(request?: Management.UpdateBotDetectionSettingsRequestContent, requestOptions?: BotDetectionClient.RequestOptions): core.HttpResponsePromise<Management.UpdateBotDetectionSettingsResponseContent>;
44
44
  private __update;
45
- protected _getAuthorizationHeader(): Promise<string>;
46
45
  }
@@ -8,19 +8,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as environments from "../../../../../../environments.mjs";
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
12
  import * as core from "../../../../../../core/index.mjs";
13
- import * as Management from "../../../../../index.mjs";
14
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
15
16
  import * as errors from "../../../../../../errors/index.mjs";
16
- export class BotDetection {
17
- constructor(_options) {
18
- this._options = _options;
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class BotDetectionClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
19
21
  }
20
22
  /**
21
23
  * Get the Bot Detection configuration of your tenant.
22
24
  *
23
- * @param {BotDetection.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {BotDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
24
26
  *
25
27
  * @throws {@link Management.UnauthorizedError}
26
28
  * @throws {@link Management.ForbiddenError}
@@ -36,7 +38,8 @@ export class BotDetection {
36
38
  __get(requestOptions) {
37
39
  return __awaiter(this, void 0, void 0, function* () {
38
40
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
39
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
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);
40
43
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
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/bot-detection"),
42
45
  method: "GET",
@@ -46,6 +49,7 @@ export class BotDetection {
46
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,
47
50
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
51
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
52
+ logging: this._options.logging,
49
53
  });
50
54
  if (_response.ok) {
51
55
  return {
@@ -71,28 +75,14 @@ export class BotDetection {
71
75
  });
72
76
  }
73
77
  }
74
- switch (_response.error.reason) {
75
- case "non-json":
76
- throw new errors.ManagementError({
77
- statusCode: _response.error.statusCode,
78
- body: _response.error.rawBody,
79
- rawResponse: _response.rawResponse,
80
- });
81
- case "timeout":
82
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /attack-protection/bot-detection.");
83
- case "unknown":
84
- throw new errors.ManagementError({
85
- message: _response.error.errorMessage,
86
- rawResponse: _response.rawResponse,
87
- });
88
- }
78
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/attack-protection/bot-detection");
89
79
  });
90
80
  }
91
81
  /**
92
82
  * Update the Bot Detection configuration of your tenant.
93
83
  *
94
84
  * @param {Management.UpdateBotDetectionSettingsRequestContent} request
95
- * @param {BotDetection.RequestOptions} requestOptions - Request-specific configuration.
85
+ * @param {BotDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
96
86
  *
97
87
  * @throws {@link Management.BadRequestError}
98
88
  * @throws {@link Management.UnauthorizedError}
@@ -109,7 +99,8 @@ export class BotDetection {
109
99
  __update() {
110
100
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
111
101
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
112
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
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);
113
104
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
114
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/bot-detection"),
115
106
  method: "PATCH",
@@ -122,6 +113,7 @@ export class BotDetection {
122
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,
123
114
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
124
115
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
116
+ logging: this._options.logging,
125
117
  });
126
118
  if (_response.ok) {
127
119
  return {
@@ -149,26 +141,7 @@ export class BotDetection {
149
141
  });
150
142
  }
151
143
  }
152
- switch (_response.error.reason) {
153
- case "non-json":
154
- throw new errors.ManagementError({
155
- statusCode: _response.error.statusCode,
156
- body: _response.error.rawBody,
157
- rawResponse: _response.rawResponse,
158
- });
159
- case "timeout":
160
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /attack-protection/bot-detection.");
161
- case "unknown":
162
- throw new errors.ManagementError({
163
- message: _response.error.errorMessage,
164
- rawResponse: _response.rawResponse,
165
- });
166
- }
167
- });
168
- }
169
- _getAuthorizationHeader() {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
144
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/attack-protection/bot-detection");
172
145
  });
173
146
  }
174
147
  }
@@ -1,19 +1,19 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
2
3
  import * as core from "../../../../../../core/index.mjs";
3
4
  import * as Management from "../../../../../index.mjs";
4
- export declare namespace BreachedPasswordDetection {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace BreachedPasswordDetectionClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class BreachedPasswordDetection {
11
- protected readonly _options: BreachedPasswordDetection.Options;
12
- constructor(_options: BreachedPasswordDetection.Options);
10
+ export declare class BreachedPasswordDetectionClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<BreachedPasswordDetectionClient.Options>;
12
+ constructor(options: BreachedPasswordDetectionClient.Options);
13
13
  /**
14
14
  * Retrieve details of the Breached Password Detection configuration of your tenant.
15
15
  *
16
- * @param {BreachedPasswordDetection.RequestOptions} requestOptions - Request-specific configuration.
16
+ * @param {BreachedPasswordDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
18
18
  * @throws {@link Management.UnauthorizedError}
19
19
  * @throws {@link Management.ForbiddenError}
@@ -22,13 +22,13 @@ export declare class BreachedPasswordDetection {
22
22
  * @example
23
23
  * await client.attackProtection.breachedPasswordDetection.get()
24
24
  */
25
- get(requestOptions?: BreachedPasswordDetection.RequestOptions): core.HttpResponsePromise<Management.GetBreachedPasswordDetectionSettingsResponseContent>;
25
+ get(requestOptions?: BreachedPasswordDetectionClient.RequestOptions): core.HttpResponsePromise<Management.GetBreachedPasswordDetectionSettingsResponseContent>;
26
26
  private __get;
27
27
  /**
28
28
  * Update details of the Breached Password Detection configuration of your tenant.
29
29
  *
30
30
  * @param {Management.UpdateBreachedPasswordDetectionSettingsRequestContent} request
31
- * @param {BreachedPasswordDetection.RequestOptions} requestOptions - Request-specific configuration.
31
+ * @param {BreachedPasswordDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Management.BadRequestError}
34
34
  * @throws {@link Management.UnauthorizedError}
@@ -38,7 +38,6 @@ export declare class BreachedPasswordDetection {
38
38
  * @example
39
39
  * await client.attackProtection.breachedPasswordDetection.update()
40
40
  */
41
- update(request?: Management.UpdateBreachedPasswordDetectionSettingsRequestContent, requestOptions?: BreachedPasswordDetection.RequestOptions): core.HttpResponsePromise<Management.UpdateBreachedPasswordDetectionSettingsResponseContent>;
41
+ update(request?: Management.UpdateBreachedPasswordDetectionSettingsRequestContent, requestOptions?: BreachedPasswordDetectionClient.RequestOptions): core.HttpResponsePromise<Management.UpdateBreachedPasswordDetectionSettingsResponseContent>;
42
42
  private __update;
43
- protected _getAuthorizationHeader(): Promise<string>;
44
43
  }
@@ -8,19 +8,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as environments from "../../../../../../environments.mjs";
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
12
  import * as core from "../../../../../../core/index.mjs";
13
- import * as Management from "../../../../../index.mjs";
14
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
15
16
  import * as errors from "../../../../../../errors/index.mjs";
16
- export class BreachedPasswordDetection {
17
- constructor(_options) {
18
- this._options = _options;
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class BreachedPasswordDetectionClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
19
21
  }
20
22
  /**
21
23
  * Retrieve details of the Breached Password Detection configuration of your tenant.
22
24
  *
23
- * @param {BreachedPasswordDetection.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {BreachedPasswordDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
24
26
  *
25
27
  * @throws {@link Management.UnauthorizedError}
26
28
  * @throws {@link Management.ForbiddenError}
@@ -35,7 +37,8 @@ export class BreachedPasswordDetection {
35
37
  __get(requestOptions) {
36
38
  return __awaiter(this, void 0, void 0, function* () {
37
39
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
38
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
41
+ 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);
39
42
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
40
43
  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/breached-password-detection"),
41
44
  method: "GET",
@@ -45,6 +48,7 @@ export class BreachedPasswordDetection {
45
48
  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,
46
49
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
47
50
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
51
+ logging: this._options.logging,
48
52
  });
49
53
  if (_response.ok) {
50
54
  return {
@@ -68,28 +72,14 @@ export class BreachedPasswordDetection {
68
72
  });
69
73
  }
70
74
  }
71
- switch (_response.error.reason) {
72
- case "non-json":
73
- throw new errors.ManagementError({
74
- statusCode: _response.error.statusCode,
75
- body: _response.error.rawBody,
76
- rawResponse: _response.rawResponse,
77
- });
78
- case "timeout":
79
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /attack-protection/breached-password-detection.");
80
- case "unknown":
81
- throw new errors.ManagementError({
82
- message: _response.error.errorMessage,
83
- rawResponse: _response.rawResponse,
84
- });
85
- }
75
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/attack-protection/breached-password-detection");
86
76
  });
87
77
  }
88
78
  /**
89
79
  * Update details of the Breached Password Detection configuration of your tenant.
90
80
  *
91
81
  * @param {Management.UpdateBreachedPasswordDetectionSettingsRequestContent} request
92
- * @param {BreachedPasswordDetection.RequestOptions} requestOptions - Request-specific configuration.
82
+ * @param {BreachedPasswordDetectionClient.RequestOptions} requestOptions - Request-specific configuration.
93
83
  *
94
84
  * @throws {@link Management.BadRequestError}
95
85
  * @throws {@link Management.UnauthorizedError}
@@ -105,7 +95,8 @@ export class BreachedPasswordDetection {
105
95
  __update() {
106
96
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
107
97
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
108
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
98
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
99
+ 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);
109
100
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
110
101
  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/breached-password-detection"),
111
102
  method: "PATCH",
@@ -118,6 +109,7 @@ export class BreachedPasswordDetection {
118
109
  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,
119
110
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
120
111
  fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
112
+ logging: this._options.logging,
121
113
  });
122
114
  if (_response.ok) {
123
115
  return {
@@ -143,26 +135,7 @@ export class BreachedPasswordDetection {
143
135
  });
144
136
  }
145
137
  }
146
- switch (_response.error.reason) {
147
- case "non-json":
148
- throw new errors.ManagementError({
149
- statusCode: _response.error.statusCode,
150
- body: _response.error.rawBody,
151
- rawResponse: _response.rawResponse,
152
- });
153
- case "timeout":
154
- throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /attack-protection/breached-password-detection.");
155
- case "unknown":
156
- throw new errors.ManagementError({
157
- message: _response.error.errorMessage,
158
- rawResponse: _response.rawResponse,
159
- });
160
- }
161
- });
162
- }
163
- _getAuthorizationHeader() {
164
- return __awaiter(this, void 0, void 0, function* () {
165
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
138
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/attack-protection/breached-password-detection");
166
139
  });
167
140
  }
168
141
  }