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
|
@@ -8,34 +8,41 @@ 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
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
import * as Management from "../../../index.mjs";
|
|
18
|
+
import { ClientsClient } from "../resources/clients/client/Client.mjs";
|
|
19
|
+
import { DirectoryProvisioningClient } from "../resources/directoryProvisioning/client/Client.mjs";
|
|
20
|
+
import { KeysClient } from "../resources/keys/client/Client.mjs";
|
|
21
|
+
import { ScimConfigurationClient } from "../resources/scimConfiguration/client/Client.mjs";
|
|
22
|
+
import { UsersClient } from "../resources/users/client/Client.mjs";
|
|
23
|
+
export class ConnectionsClient {
|
|
24
|
+
constructor(options) {
|
|
25
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
23
26
|
}
|
|
24
27
|
get clients() {
|
|
25
28
|
var _a;
|
|
26
|
-
return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new
|
|
29
|
+
return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
|
|
30
|
+
}
|
|
31
|
+
get directoryProvisioning() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._directoryProvisioning) !== null && _a !== void 0 ? _a : (this._directoryProvisioning = new DirectoryProvisioningClient(this._options)));
|
|
27
34
|
}
|
|
28
35
|
get keys() {
|
|
29
36
|
var _a;
|
|
30
|
-
return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new
|
|
37
|
+
return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new KeysClient(this._options)));
|
|
31
38
|
}
|
|
32
39
|
get scimConfiguration() {
|
|
33
40
|
var _a;
|
|
34
|
-
return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new
|
|
41
|
+
return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new ScimConfigurationClient(this._options)));
|
|
35
42
|
}
|
|
36
43
|
get users() {
|
|
37
44
|
var _a;
|
|
38
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
45
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new UsersClient(this._options)));
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections.
|
|
@@ -59,7 +66,7 @@ export class Connections {
|
|
|
59
66
|
* <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.
|
|
60
67
|
*
|
|
61
68
|
* @param {Management.ListConnectionsQueryParameters} request
|
|
62
|
-
* @param {
|
|
69
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
70
|
*
|
|
64
71
|
* @throws {@link Management.BadRequestError}
|
|
65
72
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -104,7 +111,8 @@ export class Connections {
|
|
|
104
111
|
if (includeFields !== undefined) {
|
|
105
112
|
_queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
|
|
106
113
|
}
|
|
107
|
-
|
|
114
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
115
|
+
let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
108
116
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
109
117
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, "connections"),
|
|
110
118
|
method: "GET",
|
|
@@ -114,6 +122,7 @@ export class Connections {
|
|
|
114
122
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
115
123
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
116
124
|
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
125
|
+
logging: this._options.logging,
|
|
117
126
|
});
|
|
118
127
|
if (_response.ok) {
|
|
119
128
|
return {
|
|
@@ -139,21 +148,7 @@ export class Connections {
|
|
|
139
148
|
});
|
|
140
149
|
}
|
|
141
150
|
}
|
|
142
|
-
|
|
143
|
-
case "non-json":
|
|
144
|
-
throw new errors.ManagementError({
|
|
145
|
-
statusCode: _response.error.statusCode,
|
|
146
|
-
body: _response.error.rawBody,
|
|
147
|
-
rawResponse: _response.rawResponse,
|
|
148
|
-
});
|
|
149
|
-
case "timeout":
|
|
150
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /connections.");
|
|
151
|
-
case "unknown":
|
|
152
|
-
throw new errors.ManagementError({
|
|
153
|
-
message: _response.error.errorMessage,
|
|
154
|
-
rawResponse: _response.rawResponse,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
151
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections");
|
|
157
152
|
}));
|
|
158
153
|
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
159
154
|
return new core.Page({
|
|
@@ -171,7 +166,7 @@ export class Connections {
|
|
|
171
166
|
* Creates a new connection according to the JSON object received in <code>body</code>.<br/>
|
|
172
167
|
*
|
|
173
168
|
* @param {Management.CreateConnectionRequestContent} request
|
|
174
|
-
* @param {
|
|
169
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
170
|
*
|
|
176
171
|
* @throws {@link Management.BadRequestError}
|
|
177
172
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -191,7 +186,8 @@ export class Connections {
|
|
|
191
186
|
__create(request, requestOptions) {
|
|
192
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
194
|
-
|
|
189
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
190
|
+
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);
|
|
195
191
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
196
192
|
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, "connections"),
|
|
197
193
|
method: "POST",
|
|
@@ -204,6 +200,7 @@ export class Connections {
|
|
|
204
200
|
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,
|
|
205
201
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
206
202
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
203
|
+
logging: this._options.logging,
|
|
207
204
|
});
|
|
208
205
|
if (_response.ok) {
|
|
209
206
|
return {
|
|
@@ -231,21 +228,7 @@ export class Connections {
|
|
|
231
228
|
});
|
|
232
229
|
}
|
|
233
230
|
}
|
|
234
|
-
|
|
235
|
-
case "non-json":
|
|
236
|
-
throw new errors.ManagementError({
|
|
237
|
-
statusCode: _response.error.statusCode,
|
|
238
|
-
body: _response.error.rawBody,
|
|
239
|
-
rawResponse: _response.rawResponse,
|
|
240
|
-
});
|
|
241
|
-
case "timeout":
|
|
242
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling POST /connections.");
|
|
243
|
-
case "unknown":
|
|
244
|
-
throw new errors.ManagementError({
|
|
245
|
-
message: _response.error.errorMessage,
|
|
246
|
-
rawResponse: _response.rawResponse,
|
|
247
|
-
});
|
|
248
|
-
}
|
|
231
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/connections");
|
|
249
232
|
});
|
|
250
233
|
}
|
|
251
234
|
/**
|
|
@@ -253,7 +236,7 @@ export class Connections {
|
|
|
253
236
|
*
|
|
254
237
|
* @param {string} id - The id of the connection to retrieve
|
|
255
238
|
* @param {Management.GetConnectionRequestParameters} request
|
|
256
|
-
* @param {
|
|
239
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
240
|
*
|
|
258
241
|
* @throws {@link Management.BadRequestError}
|
|
259
242
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -281,7 +264,8 @@ export class Connections {
|
|
|
281
264
|
if (includeFields !== undefined) {
|
|
282
265
|
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
283
266
|
}
|
|
284
|
-
|
|
267
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
268
|
+
let _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
285
269
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
286
270
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, `connections/${core.url.encodePathParam(id)}`),
|
|
287
271
|
method: "GET",
|
|
@@ -291,6 +275,7 @@ export class Connections {
|
|
|
291
275
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
292
276
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
293
277
|
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
278
|
+
logging: this._options.logging,
|
|
294
279
|
});
|
|
295
280
|
if (_response.ok) {
|
|
296
281
|
return {
|
|
@@ -318,28 +303,14 @@ export class Connections {
|
|
|
318
303
|
});
|
|
319
304
|
}
|
|
320
305
|
}
|
|
321
|
-
|
|
322
|
-
case "non-json":
|
|
323
|
-
throw new errors.ManagementError({
|
|
324
|
-
statusCode: _response.error.statusCode,
|
|
325
|
-
body: _response.error.rawBody,
|
|
326
|
-
rawResponse: _response.rawResponse,
|
|
327
|
-
});
|
|
328
|
-
case "timeout":
|
|
329
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /connections/{id}.");
|
|
330
|
-
case "unknown":
|
|
331
|
-
throw new errors.ManagementError({
|
|
332
|
-
message: _response.error.errorMessage,
|
|
333
|
-
rawResponse: _response.rawResponse,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
306
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections/{id}");
|
|
336
307
|
});
|
|
337
308
|
}
|
|
338
309
|
/**
|
|
339
310
|
* Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.
|
|
340
311
|
*
|
|
341
312
|
* @param {string} id - The id of the connection to delete
|
|
342
|
-
* @param {
|
|
313
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
343
314
|
*
|
|
344
315
|
* @throws {@link Management.BadRequestError}
|
|
345
316
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -355,7 +326,8 @@ export class Connections {
|
|
|
355
326
|
__delete(id, requestOptions) {
|
|
356
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
328
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
358
|
-
|
|
329
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
330
|
+
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);
|
|
359
331
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
360
332
|
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, `connections/${core.url.encodePathParam(id)}`),
|
|
361
333
|
method: "DELETE",
|
|
@@ -365,6 +337,7 @@ export class Connections {
|
|
|
365
337
|
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,
|
|
366
338
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
367
339
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
340
|
+
logging: this._options.logging,
|
|
368
341
|
});
|
|
369
342
|
if (_response.ok) {
|
|
370
343
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
@@ -387,21 +360,7 @@ export class Connections {
|
|
|
387
360
|
});
|
|
388
361
|
}
|
|
389
362
|
}
|
|
390
|
-
|
|
391
|
-
case "non-json":
|
|
392
|
-
throw new errors.ManagementError({
|
|
393
|
-
statusCode: _response.error.statusCode,
|
|
394
|
-
body: _response.error.rawBody,
|
|
395
|
-
rawResponse: _response.rawResponse,
|
|
396
|
-
});
|
|
397
|
-
case "timeout":
|
|
398
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling DELETE /connections/{id}.");
|
|
399
|
-
case "unknown":
|
|
400
|
-
throw new errors.ManagementError({
|
|
401
|
-
message: _response.error.errorMessage,
|
|
402
|
-
rawResponse: _response.rawResponse,
|
|
403
|
-
});
|
|
404
|
-
}
|
|
363
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/connections/{id}");
|
|
405
364
|
});
|
|
406
365
|
}
|
|
407
366
|
/**
|
|
@@ -411,7 +370,7 @@ export class Connections {
|
|
|
411
370
|
*
|
|
412
371
|
* @param {string} id - The id of the connection to update
|
|
413
372
|
* @param {Management.UpdateConnectionRequestContent} request
|
|
414
|
-
* @param {
|
|
373
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
415
374
|
*
|
|
416
375
|
* @throws {@link Management.BadRequestError}
|
|
417
376
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -429,7 +388,8 @@ export class Connections {
|
|
|
429
388
|
__update(id_1) {
|
|
430
389
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
431
390
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
432
|
-
|
|
391
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
392
|
+
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);
|
|
433
393
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
434
394
|
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, `connections/${core.url.encodePathParam(id)}`),
|
|
435
395
|
method: "PATCH",
|
|
@@ -442,6 +402,7 @@ export class Connections {
|
|
|
442
402
|
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,
|
|
443
403
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
444
404
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
405
|
+
logging: this._options.logging,
|
|
445
406
|
});
|
|
446
407
|
if (_response.ok) {
|
|
447
408
|
return {
|
|
@@ -471,28 +432,14 @@ export class Connections {
|
|
|
471
432
|
});
|
|
472
433
|
}
|
|
473
434
|
}
|
|
474
|
-
|
|
475
|
-
case "non-json":
|
|
476
|
-
throw new errors.ManagementError({
|
|
477
|
-
statusCode: _response.error.statusCode,
|
|
478
|
-
body: _response.error.rawBody,
|
|
479
|
-
rawResponse: _response.rawResponse,
|
|
480
|
-
});
|
|
481
|
-
case "timeout":
|
|
482
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /connections/{id}.");
|
|
483
|
-
case "unknown":
|
|
484
|
-
throw new errors.ManagementError({
|
|
485
|
-
message: _response.error.errorMessage,
|
|
486
|
-
rawResponse: _response.rawResponse,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
435
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/connections/{id}");
|
|
489
436
|
});
|
|
490
437
|
}
|
|
491
438
|
/**
|
|
492
439
|
* Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message
|
|
493
440
|
*
|
|
494
441
|
* @param {string} id - ID of the connection to check
|
|
495
|
-
* @param {
|
|
442
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
496
443
|
*
|
|
497
444
|
* @throws {@link Management.BadRequestError}
|
|
498
445
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -509,7 +456,8 @@ export class Connections {
|
|
|
509
456
|
__checkStatus(id, requestOptions) {
|
|
510
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
511
458
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
512
|
-
|
|
459
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
460
|
+
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);
|
|
513
461
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
514
462
|
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, `connections/${core.url.encodePathParam(id)}/status`),
|
|
515
463
|
method: "GET",
|
|
@@ -519,6 +467,7 @@ export class Connections {
|
|
|
519
467
|
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,
|
|
520
468
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
521
469
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
470
|
+
logging: this._options.logging,
|
|
522
471
|
});
|
|
523
472
|
if (_response.ok) {
|
|
524
473
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
@@ -543,26 +492,7 @@ export class Connections {
|
|
|
543
492
|
});
|
|
544
493
|
}
|
|
545
494
|
}
|
|
546
|
-
|
|
547
|
-
case "non-json":
|
|
548
|
-
throw new errors.ManagementError({
|
|
549
|
-
statusCode: _response.error.statusCode,
|
|
550
|
-
body: _response.error.rawBody,
|
|
551
|
-
rawResponse: _response.rawResponse,
|
|
552
|
-
});
|
|
553
|
-
case "timeout":
|
|
554
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /connections/{id}/status.");
|
|
555
|
-
case "unknown":
|
|
556
|
-
throw new errors.ManagementError({
|
|
557
|
-
message: _response.error.errorMessage,
|
|
558
|
-
rawResponse: _response.rawResponse,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
_getAuthorizationHeader() {
|
|
564
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
495
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections/{id}/status");
|
|
566
496
|
});
|
|
567
497
|
}
|
|
568
498
|
}
|
|
@@ -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 ClientsClient {
|
|
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 ClientsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ClientsClient.Options>;
|
|
12
|
+
constructor(options: ClientsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled.
|
|
15
15
|
*
|
|
@@ -17,7 +17,7 @@ export declare class Clients {
|
|
|
17
17
|
*
|
|
18
18
|
* @param {string} id - The id of the connection for which enabled clients are to be retrieved
|
|
19
19
|
* @param {Management.GetConnectionEnabledClientsRequestParameters} request
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link Management.BadRequestError}
|
|
23
23
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -31,11 +31,11 @@ export declare class Clients {
|
|
|
31
31
|
* from: "from"
|
|
32
32
|
* })
|
|
33
33
|
*/
|
|
34
|
-
get(id: string, request?: Management.GetConnectionEnabledClientsRequestParameters, requestOptions?:
|
|
34
|
+
get(id: string, request?: Management.GetConnectionEnabledClientsRequestParameters, requestOptions?: ClientsClient.RequestOptions): Promise<core.Page<Management.ConnectionEnabledClient, Management.GetConnectionEnabledClientsResponseContent>>;
|
|
35
35
|
/**
|
|
36
36
|
* @param {string} id - The id of the connection to modify
|
|
37
37
|
* @param {Management.UpdateEnabledClientConnectionsRequestContent} request
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Management.BadRequestError}
|
|
41
41
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -49,7 +49,6 @@ export declare class Clients {
|
|
|
49
49
|
* status: true
|
|
50
50
|
* }])
|
|
51
51
|
*/
|
|
52
|
-
update(id: string, request: Management.UpdateEnabledClientConnectionsRequestContent, requestOptions?:
|
|
52
|
+
update(id: string, request: Management.UpdateEnabledClientConnectionsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
53
53
|
private __update;
|
|
54
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
55
54
|
}
|
|
@@ -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 ClientsClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled.
|
|
@@ -24,7 +26,7 @@ export class Clients {
|
|
|
24
26
|
*
|
|
25
27
|
* @param {string} id - The id of the connection for which enabled clients are to be retrieved
|
|
26
28
|
* @param {Management.GetConnectionEnabledClientsRequestParameters} request
|
|
27
|
-
* @param {
|
|
29
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
30
|
*
|
|
29
31
|
* @throws {@link Management.BadRequestError}
|
|
30
32
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -50,7 +52,8 @@ export class Clients {
|
|
|
50
52
|
if (from_ !== undefined) {
|
|
51
53
|
_queryParams["from"] = from_;
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
+
let _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
57
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
55
58
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, `connections/${core.url.encodePathParam(id)}/clients`),
|
|
56
59
|
method: "GET",
|
|
@@ -60,6 +63,7 @@ export class Clients {
|
|
|
60
63
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
61
64
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
62
65
|
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
66
|
+
logging: this._options.logging,
|
|
63
67
|
});
|
|
64
68
|
if (_response.ok) {
|
|
65
69
|
return {
|
|
@@ -87,21 +91,7 @@ export class Clients {
|
|
|
87
91
|
});
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
|
-
|
|
91
|
-
case "non-json":
|
|
92
|
-
throw new errors.ManagementError({
|
|
93
|
-
statusCode: _response.error.statusCode,
|
|
94
|
-
body: _response.error.rawBody,
|
|
95
|
-
rawResponse: _response.rawResponse,
|
|
96
|
-
});
|
|
97
|
-
case "timeout":
|
|
98
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /connections/{id}/clients.");
|
|
99
|
-
case "unknown":
|
|
100
|
-
throw new errors.ManagementError({
|
|
101
|
-
message: _response.error.errorMessage,
|
|
102
|
-
rawResponse: _response.rawResponse,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
94
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections/{id}/clients");
|
|
105
95
|
}));
|
|
106
96
|
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
107
97
|
return new core.Page({
|
|
@@ -118,7 +108,7 @@ export class Clients {
|
|
|
118
108
|
/**
|
|
119
109
|
* @param {string} id - The id of the connection to modify
|
|
120
110
|
* @param {Management.UpdateEnabledClientConnectionsRequestContent} request
|
|
121
|
-
* @param {
|
|
111
|
+
* @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
112
|
*
|
|
123
113
|
* @throws {@link Management.BadRequestError}
|
|
124
114
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -138,7 +128,8 @@ export class Clients {
|
|
|
138
128
|
__update(id, request, requestOptions) {
|
|
139
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
130
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
141
|
-
|
|
131
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
132
|
+
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);
|
|
142
133
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
143
134
|
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, `connections/${core.url.encodePathParam(id)}/clients`),
|
|
144
135
|
method: "PATCH",
|
|
@@ -151,6 +142,7 @@ export class Clients {
|
|
|
151
142
|
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,
|
|
152
143
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
153
144
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
145
|
+
logging: this._options.logging,
|
|
154
146
|
});
|
|
155
147
|
if (_response.ok) {
|
|
156
148
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
@@ -175,26 +167,7 @@ export class Clients {
|
|
|
175
167
|
});
|
|
176
168
|
}
|
|
177
169
|
}
|
|
178
|
-
|
|
179
|
-
case "non-json":
|
|
180
|
-
throw new errors.ManagementError({
|
|
181
|
-
statusCode: _response.error.statusCode,
|
|
182
|
-
body: _response.error.rawBody,
|
|
183
|
-
rawResponse: _response.rawResponse,
|
|
184
|
-
});
|
|
185
|
-
case "timeout":
|
|
186
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /connections/{id}/clients.");
|
|
187
|
-
case "unknown":
|
|
188
|
-
throw new errors.ManagementError({
|
|
189
|
-
message: _response.error.errorMessage,
|
|
190
|
-
rawResponse: _response.rawResponse,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
_getAuthorizationHeader() {
|
|
196
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
170
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/connections/{id}/clients");
|
|
198
171
|
});
|
|
199
172
|
}
|
|
200
173
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as Management from "../../../../../index.mjs";
|
|
5
|
+
import { SynchronizationsClient } from "../resources/synchronizations/client/Client.mjs";
|
|
6
|
+
export declare namespace DirectoryProvisioningClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class DirectoryProvisioningClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<DirectoryProvisioningClient.Options>;
|
|
13
|
+
protected _synchronizations: SynchronizationsClient | undefined;
|
|
14
|
+
constructor(options: DirectoryProvisioningClient.Options);
|
|
15
|
+
get synchronizations(): SynchronizationsClient;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve the directory provisioning configuration of a connection.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} id - The id of the connection to retrieve its directory provisioning configuration
|
|
20
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link Management.BadRequestError}
|
|
23
|
+
* @throws {@link Management.UnauthorizedError}
|
|
24
|
+
* @throws {@link Management.ForbiddenError}
|
|
25
|
+
* @throws {@link Management.NotFoundError}
|
|
26
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.connections.directoryProvisioning.get("id")
|
|
30
|
+
*/
|
|
31
|
+
get(id: string, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<Management.GetDirectoryProvisioningResponseContent>;
|
|
32
|
+
private __get;
|
|
33
|
+
/**
|
|
34
|
+
* Create a directory provisioning configuration for a connection.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} id - The id of the connection to create its directory provisioning configuration
|
|
37
|
+
* @param {Management.CreateDirectoryProvisioningRequestContent | null} request
|
|
38
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Management.BadRequestError}
|
|
41
|
+
* @throws {@link Management.UnauthorizedError}
|
|
42
|
+
* @throws {@link Management.ForbiddenError}
|
|
43
|
+
* @throws {@link Management.NotFoundError}
|
|
44
|
+
* @throws {@link Management.ConflictError}
|
|
45
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.connections.directoryProvisioning.create("id")
|
|
49
|
+
*/
|
|
50
|
+
create(id: string, request?: Management.CreateDirectoryProvisioningRequestContent | null, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<Management.CreateDirectoryProvisioningResponseContent>;
|
|
51
|
+
private __create;
|
|
52
|
+
/**
|
|
53
|
+
* Delete the directory provisioning configuration of a connection.
|
|
54
|
+
*
|
|
55
|
+
* @param {string} id - The id of the connection to delete its directory provisioning configuration
|
|
56
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Management.BadRequestError}
|
|
59
|
+
* @throws {@link Management.UnauthorizedError}
|
|
60
|
+
* @throws {@link Management.ForbiddenError}
|
|
61
|
+
* @throws {@link Management.NotFoundError}
|
|
62
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.connections.directoryProvisioning.delete("id")
|
|
66
|
+
*/
|
|
67
|
+
delete(id: string, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
68
|
+
private __delete;
|
|
69
|
+
/**
|
|
70
|
+
* Update the directory provisioning configuration of a connection.
|
|
71
|
+
*
|
|
72
|
+
* @param {string} id - The id of the connection to create its directory provisioning configuration
|
|
73
|
+
* @param {Management.UpdateDirectoryProvisioningRequestContent | null} request
|
|
74
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Management.BadRequestError}
|
|
77
|
+
* @throws {@link Management.UnauthorizedError}
|
|
78
|
+
* @throws {@link Management.ForbiddenError}
|
|
79
|
+
* @throws {@link Management.NotFoundError}
|
|
80
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.connections.directoryProvisioning.update("id")
|
|
84
|
+
*/
|
|
85
|
+
update(id: string, request?: Management.UpdateDirectoryProvisioningRequestContent | null, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<Management.UpdateDirectoryProvisioningResponseContent>;
|
|
86
|
+
private __update;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve the directory provisioning default attribute mapping of a connection.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} id - The id of the connection to retrieve its directory provisioning configuration
|
|
91
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link Management.BadRequestError}
|
|
94
|
+
* @throws {@link Management.UnauthorizedError}
|
|
95
|
+
* @throws {@link Management.ForbiddenError}
|
|
96
|
+
* @throws {@link Management.NotFoundError}
|
|
97
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.connections.directoryProvisioning.getDefaultMapping("id")
|
|
101
|
+
*/
|
|
102
|
+
getDefaultMapping(id: string, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<Management.GetDirectoryProvisioningDefaultMappingResponseContent>;
|
|
103
|
+
private __getDefaultMapping;
|
|
104
|
+
}
|