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.
- package/README.md +43 -0
- package/dist/cjs/management/BaseClient.d.ts +15 -4
- package/dist/cjs/management/BaseClient.js +50 -0
- package/dist/cjs/management/Client.d.ts +130 -127
- package/dist/cjs/management/Client.js +89 -83
- package/dist/cjs/management/api/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/management/api/errors/BadRequestError.js +5 -1
- package/dist/cjs/management/api/errors/ConflictError.d.ts +1 -1
- package/dist/cjs/management/api/errors/ConflictError.js +5 -1
- package/dist/cjs/management/api/errors/ContentTooLargeError.d.ts +1 -1
- package/dist/cjs/management/api/errors/ContentTooLargeError.js +5 -1
- package/dist/cjs/management/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/management/api/errors/ForbiddenError.js +5 -1
- package/dist/cjs/management/api/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/management/api/errors/InternalServerError.js +5 -1
- package/dist/cjs/management/api/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/management/api/errors/NotFoundError.js +5 -1
- package/dist/cjs/management/api/errors/PaymentRequiredError.d.ts +1 -1
- package/dist/cjs/management/api/errors/PaymentRequiredError.js +5 -1
- package/dist/cjs/management/api/errors/ServiceUnavailableError.d.ts +1 -1
- package/dist/cjs/management/api/errors/ServiceUnavailableError.js +5 -1
- package/dist/cjs/management/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/cjs/management/api/errors/TooManyRequestsError.js +5 -1
- package/dist/cjs/management/api/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/management/api/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/management/api/errors/index.d.ts +5 -5
- package/dist/cjs/management/api/errors/index.js +5 -5
- package/dist/cjs/management/api/index.d.ts +2 -2
- package/dist/cjs/management/api/index.js +2 -2
- package/dist/cjs/management/api/requests/requests.d.ts +124 -14
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +29 -30
- package/dist/cjs/management/api/resources/actions/client/Client.js +53 -140
- package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/actions/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.d.ts +11 -12
- package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.js +15 -30
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +22 -49
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/anomaly/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/anomaly/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +21 -21
- package/dist/cjs/management/api/resources/attackProtection/client/Client.js +11 -10
- package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/branding/client/Client.d.ts +19 -20
- package/dist/cjs/management/api/resources/branding/client/Client.js +25 -52
- package/dist/cjs/management/api/resources/branding/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/branding/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/branding/resources/phone/client/Client.d.ts +12 -12
- package/dist/cjs/management/api/resources/branding/resources/phone/client/Client.js +8 -7
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.ts +18 -19
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +39 -114
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.d.ts +20 -21
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +44 -131
- package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.js +34 -97
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -18
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +30 -81
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +24 -25
- package/dist/cjs/management/api/resources/clients/client/Client.js +46 -121
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.d.ts +24 -25
- package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.js +63 -126
- package/dist/cjs/management/api/resources/clients/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/clients/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/connectionProfiles/client/Client.d.ts +128 -0
- package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +501 -0
- package/dist/cjs/management/api/resources/connectionProfiles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connectionProfiles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/connectionProfiles/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connectionProfiles/index.js +17 -0
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +33 -31
- package/dist/cjs/management/api/resources/connections/client/Client.js +51 -121
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +104 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +387 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/index.js +2 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/index.js +18 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.d.ts +31 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.js +125 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.js +2 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.js +17 -0
- package/dist/cjs/management/api/resources/connections/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +19 -20
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +35 -98
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/connections/resources/users/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +27 -22
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +76 -143
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/emailTemplates/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/emails/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/emails/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +24 -25
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +41 -116
- package/dist/cjs/management/api/resources/eventStreams/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/eventStreams/index.js +1 -1
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +11 -12
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +24 -51
- package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.d.ts +11 -12
- package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.js +24 -51
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +22 -23
- package/dist/cjs/management/api/resources/flows/client/Client.js +39 -102
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +17 -18
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +41 -80
- package/dist/cjs/management/api/resources/flows/resources/vault/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/flows/resources/vault/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +37 -100
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/forms/client/Client.js +37 -100
- package/dist/cjs/management/api/resources/guardian/client/Client.d.ts +15 -15
- package/dist/cjs/management/api/resources/guardian/client/Client.js +9 -8
- package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.d.ts +22 -23
- package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +27 -54
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.ts +22 -23
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +49 -148
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.ts +75 -31
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.js +249 -180
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.ts +18 -19
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.js +39 -114
- package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/hooks/client/Client.d.ts +19 -20
- package/dist/cjs/management/api/resources/hooks/client/Client.js +38 -101
- package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/index.d.ts +13 -12
- package/dist/cjs/management/api/resources/index.js +14 -13
- package/dist/cjs/management/api/resources/jobs/client/Client.d.ts +20 -21
- package/dist/cjs/management/api/resources/jobs/client/Client.js +22 -37
- package/dist/cjs/management/api/resources/jobs/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/jobs/index.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/jobs/resources/errors/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/errors/index.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/keys/client/Client.d.ts +15 -15
- package/dist/cjs/management/api/resources/keys/client/Client.js +9 -8
- package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.d.ts +20 -21
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +47 -134
- package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/logStreams/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/logStreams/client/Client.js +34 -97
- package/dist/cjs/management/api/resources/logs/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/logs/client/Client.js +22 -49
- package/dist/cjs/management/api/resources/networkAcls/client/Client.d.ts +18 -19
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +42 -117
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +33 -34
- package/dist/cjs/management/api/resources/organizations/client/Client.js +44 -119
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.d.ts +13 -14
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +32 -71
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +21 -22
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +52 -115
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +37 -100
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +43 -94
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +15 -16
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +25 -64
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +15 -16
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +41 -80
- package/dist/cjs/management/api/resources/prompts/client/Client.d.ts +19 -20
- package/dist/cjs/management/api/resources/prompts/client/Client.js +25 -52
- package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/prompts/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/prompts/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +16 -76
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +37 -147
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +37 -100
- package/dist/cjs/management/api/resources/riskAssessments/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/riskAssessments/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.d.ts +13 -14
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.js +20 -47
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +22 -23
- package/dist/cjs/management/api/resources/roles/client/Client.js +39 -102
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/rules/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/rules/client/Client.js +37 -100
- package/dist/cjs/management/api/resources/rulesConfigs/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/rulesConfigs/client/Client.js +24 -63
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.d.ts +22 -23
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +39 -102
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/sessions/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/sessions/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/stats/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/stats/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/supplementalSignals/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/supplementalSignals/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/tenants/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/tenants/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/tickets/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/tickets/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +28 -17
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +46 -97
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +20 -21
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +44 -131
- package/dist/cjs/management/api/resources/userBlocks/client/Client.d.ts +14 -15
- package/dist/cjs/management/api/resources/userBlocks/client/Client.js +29 -80
- package/dist/cjs/management/api/resources/userGrants/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/userGrants/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/users/client/Client.d.ts +64 -65
- package/dist/cjs/management/api/resources/users/client/Client.js +69 -168
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.d.ts +23 -24
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +63 -150
- package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.ts +11 -12
- package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.js +24 -51
- package/dist/cjs/management/api/resources/users/resources/identities/client/Client.d.ts +11 -12
- package/dist/cjs/management/api/resources/users/resources/identities/client/Client.js +24 -51
- package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/users/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.d.ts +10 -11
- package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.js +19 -46
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +17 -32
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +28 -55
- package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.d.ts +8 -9
- package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.js +14 -29
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +27 -66
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +12 -13
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +28 -55
- package/dist/cjs/management/api/resources/verifiableCredentials/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/verifiableCredentials/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/client/Client.d.ts +9 -9
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/client/Client.js +7 -6
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.ts +16 -17
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +34 -97
- package/dist/cjs/management/api/types/types.d.ts +1545 -341
- package/dist/cjs/management/api/types/types.js +113 -6
- package/dist/cjs/management/auth/BearerAuthProvider.d.ts +16 -0
- package/dist/cjs/management/auth/BearerAuthProvider.js +70 -0
- package/dist/cjs/management/auth/index.d.ts +1 -0
- package/dist/cjs/management/auth/index.js +5 -0
- package/dist/cjs/management/core/auth/AuthProvider.d.ts +4 -1
- package/dist/cjs/management/core/auth/BearerToken.d.ts +3 -1
- package/dist/cjs/management/core/auth/BearerToken.js +7 -6
- package/dist/cjs/management/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/management/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/management/core/auth/index.d.ts +1 -0
- package/dist/cjs/management/core/auth/index.js +3 -1
- package/dist/cjs/management/core/exports.d.ts +2 -1
- package/dist/cjs/management/core/exports.js +2 -1
- package/dist/cjs/management/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +1 -1
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +7 -1
- package/dist/cjs/management/core/fetcher/Fetcher.js +202 -8
- package/dist/cjs/management/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/management/core/fetcher/getResponseBody.js +21 -7
- package/dist/cjs/management/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/management/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/management/core/fetcher/requestWithRetries.js +3 -12
- package/dist/cjs/management/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/management/core/fetcher/signals.js +0 -12
- package/dist/cjs/management/core/file/file.js +1 -1
- package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +4 -4
- package/dist/cjs/management/core/index.d.ts +6 -5
- package/dist/cjs/management/core/index.js +7 -6
- package/dist/cjs/management/core/logging/exports.d.ts +18 -0
- package/dist/cjs/management/core/logging/exports.js +45 -0
- package/dist/cjs/management/core/logging/index.d.ts +1 -0
- package/dist/cjs/management/core/logging/index.js +17 -0
- package/dist/cjs/management/core/logging/logger.d.ts +126 -0
- package/dist/cjs/management/core/logging/logger.js +144 -0
- package/dist/cjs/management/core/pagination/CustomPager.d.ts +82 -0
- package/dist/cjs/management/core/pagination/CustomPager.js +176 -0
- package/dist/cjs/management/core/pagination/Page.d.ts +1 -1
- package/dist/cjs/management/core/pagination/exports.d.ts +1 -0
- package/dist/cjs/management/core/pagination/exports.js +3 -0
- package/dist/cjs/management/core/pagination/index.d.ts +1 -0
- package/dist/cjs/management/core/pagination/index.js +3 -1
- package/dist/cjs/management/core/runtime/runtime.js +11 -10
- package/dist/cjs/management/core/url/join.js +3 -4
- package/dist/cjs/management/errors/ManagementError.js +5 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.js +5 -1
- package/dist/cjs/management/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/management/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/BaseClient.d.mts +15 -4
- package/dist/esm/management/BaseClient.mjs +15 -1
- package/dist/esm/management/Client.d.mts +130 -127
- package/dist/esm/management/Client.mjs +90 -84
- package/dist/esm/management/api/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/management/api/errors/BadRequestError.mjs +5 -1
- package/dist/esm/management/api/errors/ConflictError.d.mts +1 -1
- package/dist/esm/management/api/errors/ConflictError.mjs +5 -1
- package/dist/esm/management/api/errors/ContentTooLargeError.d.mts +1 -1
- package/dist/esm/management/api/errors/ContentTooLargeError.mjs +5 -1
- package/dist/esm/management/api/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/management/api/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/management/api/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/management/api/errors/InternalServerError.mjs +5 -1
- package/dist/esm/management/api/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/management/api/errors/NotFoundError.mjs +5 -1
- package/dist/esm/management/api/errors/PaymentRequiredError.d.mts +1 -1
- package/dist/esm/management/api/errors/PaymentRequiredError.mjs +5 -1
- package/dist/esm/management/api/errors/ServiceUnavailableError.d.mts +1 -1
- package/dist/esm/management/api/errors/ServiceUnavailableError.mjs +5 -1
- package/dist/esm/management/api/errors/TooManyRequestsError.d.mts +1 -1
- package/dist/esm/management/api/errors/TooManyRequestsError.mjs +5 -1
- package/dist/esm/management/api/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/management/api/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/management/api/errors/index.d.mts +5 -5
- package/dist/esm/management/api/errors/index.mjs +5 -5
- package/dist/esm/management/api/index.d.mts +2 -2
- package/dist/esm/management/api/index.mjs +2 -2
- package/dist/esm/management/api/requests/requests.d.mts +124 -14
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +29 -30
- package/dist/esm/management/api/resources/actions/client/Client.mjs +52 -139
- package/dist/esm/management/api/resources/actions/resources/executions/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/actions/resources/executions/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.d.mts +11 -12
- package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.mjs +15 -30
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +21 -48
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/anomaly/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/anomaly/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +21 -21
- package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +14 -13
- package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/branding/client/Client.d.mts +19 -20
- package/dist/esm/management/api/resources/branding/client/Client.mjs +24 -51
- package/dist/esm/management/api/resources/branding/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/branding/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/branding/resources/phone/client/Client.d.mts +12 -12
- package/dist/esm/management/api/resources/branding/resources/phone/client/Client.mjs +8 -7
- package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.d.mts +18 -19
- package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +38 -113
- package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.d.mts +20 -21
- package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +43 -130
- package/dist/esm/management/api/resources/branding/resources/templates/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/branding/resources/templates/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/branding/resources/themes/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/branding/resources/themes/client/Client.mjs +33 -96
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -18
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +30 -81
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +24 -25
- package/dist/esm/management/api/resources/clients/client/Client.mjs +45 -120
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.d.mts +24 -25
- package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.mjs +62 -125
- package/dist/esm/management/api/resources/clients/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/clients/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/connectionProfiles/client/Client.d.mts +128 -0
- package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +464 -0
- package/dist/esm/management/api/resources/connectionProfiles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connectionProfiles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/connectionProfiles/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connectionProfiles/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +33 -31
- package/dist/esm/management/api/resources/connections/client/Client.mjs +51 -121
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +104 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +350 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/index.d.mts +2 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/index.mjs +2 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.d.mts +31 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.mjs +88 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +19 -20
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +35 -98
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/connections/resources/users/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +27 -22
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +75 -142
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/emailTemplates/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/emails/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/emails/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/emails/resources/provider/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +24 -25
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +42 -117
- package/dist/esm/management/api/resources/eventStreams/index.d.mts +1 -1
- package/dist/esm/management/api/resources/eventStreams/index.mjs +1 -1
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +11 -12
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +23 -50
- package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.d.mts +11 -12
- package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.mjs +23 -50
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +22 -23
- package/dist/esm/management/api/resources/flows/client/Client.mjs +40 -103
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +17 -18
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +40 -79
- package/dist/esm/management/api/resources/flows/resources/vault/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/flows/resources/vault/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +36 -99
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/forms/client/Client.mjs +36 -99
- package/dist/esm/management/api/resources/guardian/client/Client.d.mts +15 -15
- package/dist/esm/management/api/resources/guardian/client/Client.mjs +10 -9
- package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.d.mts +22 -23
- package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +26 -53
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.mts +22 -23
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +48 -147
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.mts +75 -31
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.mjs +248 -179
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.d.mts +18 -19
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.mjs +38 -113
- package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/hooks/client/Client.d.mts +19 -20
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +38 -101
- package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/index.d.mts +13 -12
- package/dist/esm/management/api/resources/index.mjs +13 -12
- package/dist/esm/management/api/resources/jobs/client/Client.d.mts +20 -21
- package/dist/esm/management/api/resources/jobs/client/Client.mjs +21 -36
- package/dist/esm/management/api/resources/jobs/index.d.mts +1 -1
- package/dist/esm/management/api/resources/jobs/index.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/jobs/resources/errors/index.d.mts +1 -1
- package/dist/esm/management/api/resources/jobs/resources/errors/index.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +12 -27
- package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/keys/client/Client.d.mts +15 -15
- package/dist/esm/management/api/resources/keys/client/Client.mjs +10 -9
- package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.d.mts +20 -21
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +46 -133
- package/dist/esm/management/api/resources/keys/resources/signing/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/logStreams/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/logStreams/client/Client.mjs +33 -96
- package/dist/esm/management/api/resources/logs/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/logs/client/Client.mjs +21 -48
- package/dist/esm/management/api/resources/networkAcls/client/Client.d.mts +18 -19
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +41 -116
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +33 -34
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +48 -123
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.d.mts +13 -14
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +31 -70
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +21 -22
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +51 -114
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +36 -99
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +42 -93
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +15 -16
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +25 -64
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +15 -16
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +40 -79
- package/dist/esm/management/api/resources/prompts/client/Client.d.mts +19 -20
- package/dist/esm/management/api/resources/prompts/client/Client.mjs +24 -51
- package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/prompts/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/prompts/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +16 -76
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +36 -146
- package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +36 -99
- package/dist/esm/management/api/resources/riskAssessments/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/riskAssessments/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.d.mts +13 -14
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.mjs +20 -47
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +22 -23
- package/dist/esm/management/api/resources/roles/client/Client.mjs +40 -103
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/rules/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/rules/client/Client.mjs +36 -99
- package/dist/esm/management/api/resources/rulesConfigs/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/rulesConfigs/client/Client.mjs +23 -62
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.d.mts +22 -23
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +40 -103
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/sessions/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/sessions/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/stats/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/stats/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/supplementalSignals/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/supplementalSignals/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/tenants/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/tenants/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/tickets/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/tickets/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +28 -17
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +45 -96
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +20 -21
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +43 -130
- package/dist/esm/management/api/resources/userBlocks/client/Client.d.mts +14 -15
- package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +28 -79
- package/dist/esm/management/api/resources/userGrants/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/userGrants/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/users/client/Client.d.mts +64 -65
- package/dist/esm/management/api/resources/users/client/Client.mjs +79 -178
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.d.mts +23 -24
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +62 -149
- package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.d.mts +11 -12
- package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.mjs +23 -50
- package/dist/esm/management/api/resources/users/resources/identities/client/Client.d.mts +11 -12
- package/dist/esm/management/api/resources/users/resources/identities/client/Client.mjs +23 -50
- package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/users/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +16 -31
- package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.d.mts +10 -11
- package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.mjs +18 -45
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +16 -31
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +27 -54
- package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.d.mts +8 -9
- package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.mjs +13 -28
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +26 -65
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +12 -13
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +27 -54
- package/dist/esm/management/api/resources/verifiableCredentials/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/verifiableCredentials/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/client/Client.d.mts +9 -9
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/client/Client.mjs +6 -5
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.mts +16 -17
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +33 -96
- package/dist/esm/management/api/types/types.d.mts +1545 -341
- package/dist/esm/management/api/types/types.mjs +109 -2
- package/dist/esm/management/auth/BearerAuthProvider.d.mts +16 -0
- package/dist/esm/management/auth/BearerAuthProvider.mjs +33 -0
- package/dist/esm/management/auth/index.d.mts +1 -0
- package/dist/esm/management/auth/index.mjs +1 -0
- package/dist/esm/management/core/auth/AuthProvider.d.mts +4 -1
- package/dist/esm/management/core/auth/BearerToken.d.mts +3 -1
- package/dist/esm/management/core/auth/BearerToken.mjs +7 -6
- package/dist/esm/management/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/management/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/management/core/auth/index.d.mts +1 -0
- package/dist/esm/management/core/auth/index.mjs +1 -0
- package/dist/esm/management/core/exports.d.mts +2 -1
- package/dist/esm/management/core/exports.mjs +2 -1
- package/dist/esm/management/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +1 -1
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +7 -1
- package/dist/esm/management/core/fetcher/Fetcher.mjs +202 -8
- package/dist/esm/management/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/management/core/fetcher/getResponseBody.mjs +21 -7
- package/dist/esm/management/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/management/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/management/core/fetcher/requestWithRetries.mjs +3 -12
- package/dist/esm/management/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/management/core/fetcher/signals.mjs +0 -12
- package/dist/esm/management/core/file/file.mjs +1 -1
- package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
- package/dist/esm/management/core/index.d.mts +6 -5
- package/dist/esm/management/core/index.mjs +6 -5
- package/dist/esm/management/core/logging/exports.d.mts +18 -0
- package/dist/esm/management/core/logging/exports.mjs +9 -0
- package/dist/esm/management/core/logging/index.d.mts +1 -0
- package/dist/esm/management/core/logging/index.mjs +1 -0
- package/dist/esm/management/core/logging/logger.d.mts +126 -0
- package/dist/esm/management/core/logging/logger.mjs +138 -0
- package/dist/esm/management/core/pagination/CustomPager.d.mts +82 -0
- package/dist/esm/management/core/pagination/CustomPager.mjs +172 -0
- package/dist/esm/management/core/pagination/Page.d.mts +1 -1
- package/dist/esm/management/core/pagination/exports.d.mts +1 -0
- package/dist/esm/management/core/pagination/exports.mjs +1 -1
- package/dist/esm/management/core/pagination/index.d.mts +1 -0
- package/dist/esm/management/core/pagination/index.mjs +1 -0
- package/dist/esm/management/core/runtime/runtime.mjs +11 -10
- package/dist/esm/management/core/url/join.mjs +3 -4
- package/dist/esm/management/errors/ManagementError.mjs +5 -1
- package/dist/esm/management/errors/ManagementTimeoutError.mjs +5 -1
- package/dist/esm/management/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/management/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +8 -8
- package/reference.md +2386 -1370
- package/dist/cjs/management/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/management/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/management/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/management/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
export declare namespace SmsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class SmsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SmsClient.Options>;
|
|
12
|
+
constructor(options: SmsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required).
|
|
15
15
|
*
|
|
16
16
|
* A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
|
|
17
17
|
*
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
19
|
*
|
|
20
20
|
* @throws {@link Management.BadRequestError}
|
|
21
21
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -24,7 +24,7 @@ export declare class Sms {
|
|
|
24
24
|
* @example
|
|
25
25
|
* await client.guardian.factors.sms.getTwilioProvider()
|
|
26
26
|
*/
|
|
27
|
-
getTwilioProvider(requestOptions?:
|
|
27
|
+
getTwilioProvider(requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianFactorsProviderSmsTwilioResponseContent>;
|
|
28
28
|
private __getTwilioProvider;
|
|
29
29
|
/**
|
|
30
30
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint.
|
|
@@ -32,7 +32,7 @@ export declare class Sms {
|
|
|
32
32
|
* <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
|
|
33
33
|
*
|
|
34
34
|
* @param {Management.SetGuardianFactorsProviderSmsTwilioRequestContent} request
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @throws {@link Management.BadRequestError}
|
|
38
38
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -41,14 +41,14 @@ export declare class Sms {
|
|
|
41
41
|
* @example
|
|
42
42
|
* await client.guardian.factors.sms.setTwilioProvider()
|
|
43
43
|
*/
|
|
44
|
-
setTwilioProvider(request?: Management.SetGuardianFactorsProviderSmsTwilioRequestContent, requestOptions?:
|
|
44
|
+
setTwilioProvider(request?: Management.SetGuardianFactorsProviderSmsTwilioRequestContent, requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.SetGuardianFactorsProviderSmsTwilioResponseContent>;
|
|
45
45
|
private __setTwilioProvider;
|
|
46
46
|
/**
|
|
47
47
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead.
|
|
48
48
|
*
|
|
49
49
|
* <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
|
|
50
50
|
*
|
|
51
|
-
* @param {
|
|
51
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
52
|
*
|
|
53
53
|
* @throws {@link Management.BadRequestError}
|
|
54
54
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -57,7 +57,7 @@ export declare class Sms {
|
|
|
57
57
|
* @example
|
|
58
58
|
* await client.guardian.factors.sms.getSelectedProvider()
|
|
59
59
|
*/
|
|
60
|
-
getSelectedProvider(requestOptions?:
|
|
60
|
+
getSelectedProvider(requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianFactorsProviderSmsResponseContent>;
|
|
61
61
|
private __getSelectedProvider;
|
|
62
62
|
/**
|
|
63
63
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead.
|
|
@@ -65,7 +65,7 @@ export declare class Sms {
|
|
|
65
65
|
* <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
|
|
66
66
|
*
|
|
67
67
|
* @param {Management.SetGuardianFactorsProviderSmsRequestContent} request
|
|
68
|
-
* @param {
|
|
68
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link Management.BadRequestError}
|
|
71
71
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -76,14 +76,14 @@ export declare class Sms {
|
|
|
76
76
|
* provider: "auth0"
|
|
77
77
|
* })
|
|
78
78
|
*/
|
|
79
|
-
setProvider(request: Management.SetGuardianFactorsProviderSmsRequestContent, requestOptions?:
|
|
79
|
+
setProvider(request: Management.SetGuardianFactorsProviderSmsRequestContent, requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.SetGuardianFactorsProviderSmsResponseContent>;
|
|
80
80
|
private __setProvider;
|
|
81
81
|
/**
|
|
82
82
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead.
|
|
83
83
|
*
|
|
84
84
|
* <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
|
|
85
85
|
*
|
|
86
|
-
* @param {
|
|
86
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
87
|
*
|
|
88
88
|
* @throws {@link Management.BadRequestError}
|
|
89
89
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -92,7 +92,7 @@ export declare class Sms {
|
|
|
92
92
|
* @example
|
|
93
93
|
* await client.guardian.factors.sms.getTemplates()
|
|
94
94
|
*/
|
|
95
|
-
getTemplates(requestOptions?:
|
|
95
|
+
getTemplates(requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianFactorSmsTemplatesResponseContent>;
|
|
96
96
|
private __getTemplates;
|
|
97
97
|
/**
|
|
98
98
|
* This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead.
|
|
@@ -100,7 +100,7 @@ export declare class Sms {
|
|
|
100
100
|
* <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
|
|
101
101
|
*
|
|
102
102
|
* @param {Management.SetGuardianFactorSmsTemplatesRequestContent} request
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
104
|
*
|
|
105
105
|
* @throws {@link Management.BadRequestError}
|
|
106
106
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -112,7 +112,6 @@ export declare class Sms {
|
|
|
112
112
|
* verification_message: "verification_message"
|
|
113
113
|
* })
|
|
114
114
|
*/
|
|
115
|
-
setTemplates(request: Management.SetGuardianFactorSmsTemplatesRequestContent, requestOptions?:
|
|
115
|
+
setTemplates(request: Management.SetGuardianFactorSmsTemplatesRequestContent, requestOptions?: SmsClient.RequestOptions): core.HttpResponsePromise<Management.SetGuardianFactorSmsTemplatesResponseContent>;
|
|
116
116
|
private __setTemplates;
|
|
117
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
118
117
|
}
|
package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.mjs
CHANGED
|
@@ -8,21 +8,23 @@ 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
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
12
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import * as Management from "../../../../../../../index.mjs";
|
|
18
|
+
export class SmsClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required).
|
|
22
24
|
*
|
|
23
25
|
* A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
|
|
24
26
|
*
|
|
25
|
-
* @param {
|
|
27
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
28
|
*
|
|
27
29
|
* @throws {@link Management.BadRequestError}
|
|
28
30
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -37,7 +39,8 @@ export class Sms {
|
|
|
37
39
|
__getTwilioProvider(requestOptions) {
|
|
38
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
41
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
40
|
-
|
|
42
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
43
|
+
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);
|
|
41
44
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
45
|
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, "guardian/factors/sms/providers/twilio"),
|
|
43
46
|
method: "GET",
|
|
@@ -47,6 +50,7 @@ export class Sms {
|
|
|
47
50
|
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,
|
|
48
51
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
49
52
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
53
|
+
logging: this._options.logging,
|
|
50
54
|
});
|
|
51
55
|
if (_response.ok) {
|
|
52
56
|
return {
|
|
@@ -70,21 +74,7 @@ export class Sms {
|
|
|
70
74
|
});
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
|
-
|
|
74
|
-
case "non-json":
|
|
75
|
-
throw new errors.ManagementError({
|
|
76
|
-
statusCode: _response.error.statusCode,
|
|
77
|
-
body: _response.error.rawBody,
|
|
78
|
-
rawResponse: _response.rawResponse,
|
|
79
|
-
});
|
|
80
|
-
case "timeout":
|
|
81
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/sms/providers/twilio.");
|
|
82
|
-
case "unknown":
|
|
83
|
-
throw new errors.ManagementError({
|
|
84
|
-
message: _response.error.errorMessage,
|
|
85
|
-
rawResponse: _response.rawResponse,
|
|
86
|
-
});
|
|
87
|
-
}
|
|
77
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/sms/providers/twilio");
|
|
88
78
|
});
|
|
89
79
|
}
|
|
90
80
|
/**
|
|
@@ -93,7 +83,7 @@ export class Sms {
|
|
|
93
83
|
* <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
|
|
94
84
|
*
|
|
95
85
|
* @param {Management.SetGuardianFactorsProviderSmsTwilioRequestContent} request
|
|
96
|
-
* @param {
|
|
86
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
87
|
*
|
|
98
88
|
* @throws {@link Management.BadRequestError}
|
|
99
89
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -108,7 +98,8 @@ export class Sms {
|
|
|
108
98
|
__setTwilioProvider() {
|
|
109
99
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
110
100
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
111
|
-
|
|
101
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
102
|
+
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);
|
|
112
103
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
113
104
|
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, "guardian/factors/sms/providers/twilio"),
|
|
114
105
|
method: "PUT",
|
|
@@ -121,6 +112,7 @@ export class Sms {
|
|
|
121
112
|
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,
|
|
122
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
123
114
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
115
|
+
logging: this._options.logging,
|
|
124
116
|
});
|
|
125
117
|
if (_response.ok) {
|
|
126
118
|
return {
|
|
@@ -144,21 +136,7 @@ export class Sms {
|
|
|
144
136
|
});
|
|
145
137
|
}
|
|
146
138
|
}
|
|
147
|
-
|
|
148
|
-
case "non-json":
|
|
149
|
-
throw new errors.ManagementError({
|
|
150
|
-
statusCode: _response.error.statusCode,
|
|
151
|
-
body: _response.error.rawBody,
|
|
152
|
-
rawResponse: _response.rawResponse,
|
|
153
|
-
});
|
|
154
|
-
case "timeout":
|
|
155
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/sms/providers/twilio.");
|
|
156
|
-
case "unknown":
|
|
157
|
-
throw new errors.ManagementError({
|
|
158
|
-
message: _response.error.errorMessage,
|
|
159
|
-
rawResponse: _response.rawResponse,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
139
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/sms/providers/twilio");
|
|
162
140
|
});
|
|
163
141
|
}
|
|
164
142
|
/**
|
|
@@ -166,7 +144,7 @@ export class Sms {
|
|
|
166
144
|
*
|
|
167
145
|
* <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
|
|
168
146
|
*
|
|
169
|
-
* @param {
|
|
147
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
170
148
|
*
|
|
171
149
|
* @throws {@link Management.BadRequestError}
|
|
172
150
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -181,7 +159,8 @@ export class Sms {
|
|
|
181
159
|
__getSelectedProvider(requestOptions) {
|
|
182
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
161
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
184
|
-
|
|
162
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
163
|
+
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);
|
|
185
164
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
186
165
|
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, "guardian/factors/sms/selected-provider"),
|
|
187
166
|
method: "GET",
|
|
@@ -191,6 +170,7 @@ export class Sms {
|
|
|
191
170
|
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,
|
|
192
171
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
193
172
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
173
|
+
logging: this._options.logging,
|
|
194
174
|
});
|
|
195
175
|
if (_response.ok) {
|
|
196
176
|
return {
|
|
@@ -214,21 +194,7 @@ export class Sms {
|
|
|
214
194
|
});
|
|
215
195
|
}
|
|
216
196
|
}
|
|
217
|
-
|
|
218
|
-
case "non-json":
|
|
219
|
-
throw new errors.ManagementError({
|
|
220
|
-
statusCode: _response.error.statusCode,
|
|
221
|
-
body: _response.error.rawBody,
|
|
222
|
-
rawResponse: _response.rawResponse,
|
|
223
|
-
});
|
|
224
|
-
case "timeout":
|
|
225
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/sms/selected-provider.");
|
|
226
|
-
case "unknown":
|
|
227
|
-
throw new errors.ManagementError({
|
|
228
|
-
message: _response.error.errorMessage,
|
|
229
|
-
rawResponse: _response.rawResponse,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
197
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/sms/selected-provider");
|
|
232
198
|
});
|
|
233
199
|
}
|
|
234
200
|
/**
|
|
@@ -237,7 +203,7 @@ export class Sms {
|
|
|
237
203
|
* <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
|
|
238
204
|
*
|
|
239
205
|
* @param {Management.SetGuardianFactorsProviderSmsRequestContent} request
|
|
240
|
-
* @param {
|
|
206
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
241
207
|
*
|
|
242
208
|
* @throws {@link Management.BadRequestError}
|
|
243
209
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -254,7 +220,8 @@ export class Sms {
|
|
|
254
220
|
__setProvider(request, requestOptions) {
|
|
255
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
222
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
257
|
-
|
|
223
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
224
|
+
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);
|
|
258
225
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
259
226
|
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, "guardian/factors/sms/selected-provider"),
|
|
260
227
|
method: "PUT",
|
|
@@ -267,6 +234,7 @@ export class Sms {
|
|
|
267
234
|
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,
|
|
268
235
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
269
236
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
237
|
+
logging: this._options.logging,
|
|
270
238
|
});
|
|
271
239
|
if (_response.ok) {
|
|
272
240
|
return {
|
|
@@ -290,21 +258,7 @@ export class Sms {
|
|
|
290
258
|
});
|
|
291
259
|
}
|
|
292
260
|
}
|
|
293
|
-
|
|
294
|
-
case "non-json":
|
|
295
|
-
throw new errors.ManagementError({
|
|
296
|
-
statusCode: _response.error.statusCode,
|
|
297
|
-
body: _response.error.rawBody,
|
|
298
|
-
rawResponse: _response.rawResponse,
|
|
299
|
-
});
|
|
300
|
-
case "timeout":
|
|
301
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/sms/selected-provider.");
|
|
302
|
-
case "unknown":
|
|
303
|
-
throw new errors.ManagementError({
|
|
304
|
-
message: _response.error.errorMessage,
|
|
305
|
-
rawResponse: _response.rawResponse,
|
|
306
|
-
});
|
|
307
|
-
}
|
|
261
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/sms/selected-provider");
|
|
308
262
|
});
|
|
309
263
|
}
|
|
310
264
|
/**
|
|
@@ -312,7 +266,7 @@ export class Sms {
|
|
|
312
266
|
*
|
|
313
267
|
* <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
|
|
314
268
|
*
|
|
315
|
-
* @param {
|
|
269
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
316
270
|
*
|
|
317
271
|
* @throws {@link Management.BadRequestError}
|
|
318
272
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -327,7 +281,8 @@ export class Sms {
|
|
|
327
281
|
__getTemplates(requestOptions) {
|
|
328
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
329
283
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
330
|
-
|
|
284
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
285
|
+
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);
|
|
331
286
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
332
287
|
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, "guardian/factors/sms/templates"),
|
|
333
288
|
method: "GET",
|
|
@@ -337,6 +292,7 @@ export class Sms {
|
|
|
337
292
|
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,
|
|
338
293
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
339
294
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
295
|
+
logging: this._options.logging,
|
|
340
296
|
});
|
|
341
297
|
if (_response.ok) {
|
|
342
298
|
return {
|
|
@@ -360,21 +316,7 @@ export class Sms {
|
|
|
360
316
|
});
|
|
361
317
|
}
|
|
362
318
|
}
|
|
363
|
-
|
|
364
|
-
case "non-json":
|
|
365
|
-
throw new errors.ManagementError({
|
|
366
|
-
statusCode: _response.error.statusCode,
|
|
367
|
-
body: _response.error.rawBody,
|
|
368
|
-
rawResponse: _response.rawResponse,
|
|
369
|
-
});
|
|
370
|
-
case "timeout":
|
|
371
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/sms/templates.");
|
|
372
|
-
case "unknown":
|
|
373
|
-
throw new errors.ManagementError({
|
|
374
|
-
message: _response.error.errorMessage,
|
|
375
|
-
rawResponse: _response.rawResponse,
|
|
376
|
-
});
|
|
377
|
-
}
|
|
319
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/sms/templates");
|
|
378
320
|
});
|
|
379
321
|
}
|
|
380
322
|
/**
|
|
@@ -383,7 +325,7 @@ export class Sms {
|
|
|
383
325
|
* <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
|
|
384
326
|
*
|
|
385
327
|
* @param {Management.SetGuardianFactorSmsTemplatesRequestContent} request
|
|
386
|
-
* @param {
|
|
328
|
+
* @param {SmsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
387
329
|
*
|
|
388
330
|
* @throws {@link Management.BadRequestError}
|
|
389
331
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -401,7 +343,8 @@ export class Sms {
|
|
|
401
343
|
__setTemplates(request, requestOptions) {
|
|
402
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
345
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
404
|
-
|
|
346
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
347
|
+
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);
|
|
405
348
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
406
349
|
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, "guardian/factors/sms/templates"),
|
|
407
350
|
method: "PUT",
|
|
@@ -414,6 +357,7 @@ export class Sms {
|
|
|
414
357
|
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,
|
|
415
358
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
416
359
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
360
|
+
logging: this._options.logging,
|
|
417
361
|
});
|
|
418
362
|
if (_response.ok) {
|
|
419
363
|
return {
|
|
@@ -437,26 +381,7 @@ export class Sms {
|
|
|
437
381
|
});
|
|
438
382
|
}
|
|
439
383
|
}
|
|
440
|
-
|
|
441
|
-
case "non-json":
|
|
442
|
-
throw new errors.ManagementError({
|
|
443
|
-
statusCode: _response.error.statusCode,
|
|
444
|
-
body: _response.error.rawBody,
|
|
445
|
-
rawResponse: _response.rawResponse,
|
|
446
|
-
});
|
|
447
|
-
case "timeout":
|
|
448
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/sms/templates.");
|
|
449
|
-
case "unknown":
|
|
450
|
-
throw new errors.ManagementError({
|
|
451
|
-
message: _response.error.errorMessage,
|
|
452
|
-
rawResponse: _response.rawResponse,
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
_getAuthorizationHeader() {
|
|
458
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
459
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
384
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/sms/templates");
|
|
460
385
|
});
|
|
461
386
|
}
|
|
462
387
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
export declare namespace PoliciesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class PoliciesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PoliciesClient.Options>;
|
|
12
|
+
constructor(options: PoliciesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant.
|
|
15
15
|
*
|
|
@@ -21,7 +21,7 @@ export declare class Policies {
|
|
|
21
21
|
*
|
|
22
22
|
* <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.
|
|
23
23
|
*
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @throws {@link Management.BadRequestError}
|
|
27
27
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -30,7 +30,7 @@ export declare class Policies {
|
|
|
30
30
|
* @example
|
|
31
31
|
* await client.guardian.policies.list()
|
|
32
32
|
*/
|
|
33
|
-
list(requestOptions?:
|
|
33
|
+
list(requestOptions?: PoliciesClient.RequestOptions): core.HttpResponsePromise<Management.ListGuardianPoliciesResponseContent>;
|
|
34
34
|
private __list;
|
|
35
35
|
/**
|
|
36
36
|
* Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant.
|
|
@@ -44,7 +44,7 @@ export declare class Policies {
|
|
|
44
44
|
* <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.
|
|
45
45
|
*
|
|
46
46
|
* @param {Management.SetGuardianPoliciesRequestContent} request
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link Management.BadRequestError}
|
|
50
50
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -53,7 +53,6 @@ export declare class Policies {
|
|
|
53
53
|
* @example
|
|
54
54
|
* await client.guardian.policies.set(["all-applications"])
|
|
55
55
|
*/
|
|
56
|
-
set(request: Management.SetGuardianPoliciesRequestContent, requestOptions?:
|
|
56
|
+
set(request: Management.SetGuardianPoliciesRequestContent, requestOptions?: PoliciesClient.RequestOptions): core.HttpResponsePromise<Management.SetGuardianPoliciesResponseContent>;
|
|
57
57
|
private __set;
|
|
58
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
59
58
|
}
|
|
@@ -8,14 +8,16 @@ 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
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
12
|
import * as core from "../../../../../../core/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import * as Management from "../../../../../index.mjs";
|
|
18
|
+
export class PoliciesClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant.
|
|
@@ -28,7 +30,7 @@ export class Policies {
|
|
|
28
30
|
*
|
|
29
31
|
* <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.
|
|
30
32
|
*
|
|
31
|
-
* @param {
|
|
33
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
34
|
*
|
|
33
35
|
* @throws {@link Management.BadRequestError}
|
|
34
36
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -43,7 +45,8 @@ export class Policies {
|
|
|
43
45
|
__list(requestOptions) {
|
|
44
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
47
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46
|
-
|
|
48
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
49
|
+
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);
|
|
47
50
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
48
51
|
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, "guardian/policies"),
|
|
49
52
|
method: "GET",
|
|
@@ -53,6 +56,7 @@ export class Policies {
|
|
|
53
56
|
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,
|
|
54
57
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
55
58
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
59
|
+
logging: this._options.logging,
|
|
56
60
|
});
|
|
57
61
|
if (_response.ok) {
|
|
58
62
|
return {
|
|
@@ -76,21 +80,7 @@ export class Policies {
|
|
|
76
80
|
});
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
|
-
|
|
80
|
-
case "non-json":
|
|
81
|
-
throw new errors.ManagementError({
|
|
82
|
-
statusCode: _response.error.statusCode,
|
|
83
|
-
body: _response.error.rawBody,
|
|
84
|
-
rawResponse: _response.rawResponse,
|
|
85
|
-
});
|
|
86
|
-
case "timeout":
|
|
87
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/policies.");
|
|
88
|
-
case "unknown":
|
|
89
|
-
throw new errors.ManagementError({
|
|
90
|
-
message: _response.error.errorMessage,
|
|
91
|
-
rawResponse: _response.rawResponse,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
83
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/policies");
|
|
94
84
|
});
|
|
95
85
|
}
|
|
96
86
|
/**
|
|
@@ -105,7 +95,7 @@ export class Policies {
|
|
|
105
95
|
* <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.
|
|
106
96
|
*
|
|
107
97
|
* @param {Management.SetGuardianPoliciesRequestContent} request
|
|
108
|
-
* @param {
|
|
98
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
99
|
*
|
|
110
100
|
* @throws {@link Management.BadRequestError}
|
|
111
101
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -120,7 +110,8 @@ export class Policies {
|
|
|
120
110
|
__set(request, requestOptions) {
|
|
121
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
112
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
123
|
-
|
|
113
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
114
|
+
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);
|
|
124
115
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
116
|
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, "guardian/policies"),
|
|
126
117
|
method: "PUT",
|
|
@@ -133,6 +124,7 @@ export class Policies {
|
|
|
133
124
|
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,
|
|
134
125
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
135
126
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
127
|
+
logging: this._options.logging,
|
|
136
128
|
});
|
|
137
129
|
if (_response.ok) {
|
|
138
130
|
return {
|
|
@@ -156,26 +148,7 @@ export class Policies {
|
|
|
156
148
|
});
|
|
157
149
|
}
|
|
158
150
|
}
|
|
159
|
-
|
|
160
|
-
case "non-json":
|
|
161
|
-
throw new errors.ManagementError({
|
|
162
|
-
statusCode: _response.error.statusCode,
|
|
163
|
-
body: _response.error.rawBody,
|
|
164
|
-
rawResponse: _response.rawResponse,
|
|
165
|
-
});
|
|
166
|
-
case "timeout":
|
|
167
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/policies.");
|
|
168
|
-
case "unknown":
|
|
169
|
-
throw new errors.ManagementError({
|
|
170
|
-
message: _response.error.errorMessage,
|
|
171
|
-
rawResponse: _response.rawResponse,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
_getAuthorizationHeader() {
|
|
177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
151
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/policies");
|
|
179
152
|
});
|
|
180
153
|
}
|
|
181
154
|
}
|