auth0 5.1.0 → 5.3.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/LICENSE +1 -1
- 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 +133 -127
- package/dist/cjs/management/Client.js +94 -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/PreconditionFailedError.d.ts +5 -0
- package/dist/cjs/management/api/errors/PreconditionFailedError.js +54 -0
- 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 +6 -5
- package/dist/cjs/management/api/errors/index.js +6 -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 +307 -22
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +32 -30
- package/dist/cjs/management/api/resources/actions/client/Client.js +57 -139
- 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 +2 -1
- package/dist/cjs/management/api/resources/actions/resources/index.js +3 -2
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.d.ts +149 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +569 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/index.js +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/index.js +18 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +66 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +252 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.js +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.js +17 -0
- 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 +34 -18
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +90 -80
- 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 +38 -32
- package/dist/cjs/management/api/resources/connections/client/Client.js +56 -122
- 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 +122 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +467 -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 +13 -13
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +29 -67
- 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 -26
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +95 -161
- 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/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/index.js +1 -0
- 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/executions/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/index.js +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +17 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +4 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +7 -0
- package/dist/cjs/management/api/resources/flows/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/index.js +4 -0
- 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/flows/types/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/types/index.js +17 -0
- package/dist/cjs/management/api/resources/flows/types/types.d.ts +4 -0
- package/dist/cjs/management/api/resources/flows/types/types.js +7 -0
- 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/groups/client/Client.d.ts +56 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +224 -0
- package/dist/cjs/management/api/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/groups/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/groups/index.js +18 -0
- package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +148 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/index.js +2 -0
- package/dist/cjs/management/api/resources/groups/resources/members/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/members/index.js +17 -0
- 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 +15 -12
- package/dist/cjs/management/api/resources/index.js +16 -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 +40 -22
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +116 -114
- 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 +28 -11
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +84 -44
- 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 +23 -23
- package/dist/cjs/management/api/resources/roles/client/Client.js +42 -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 +30 -18
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +49 -99
- 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 +67 -65
- package/dist/cjs/management/api/resources/users/client/Client.js +80 -174
- 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/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +148 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/index.js +17 -0
- 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 +2 -1
- package/dist/cjs/management/api/resources/users/resources/index.js +3 -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 +13071 -8452
- package/dist/cjs/management/api/types/types.js +1822 -11
- 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 +133 -127
- package/dist/esm/management/Client.mjs +95 -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/PreconditionFailedError.d.mts +5 -0
- package/dist/esm/management/api/errors/PreconditionFailedError.mjs +17 -0
- 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 +6 -5
- package/dist/esm/management/api/errors/index.mjs +6 -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 +307 -22
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +32 -30
- package/dist/esm/management/api/resources/actions/client/Client.mjs +57 -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 +2 -1
- package/dist/esm/management/api/resources/actions/resources/index.mjs +2 -1
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.d.mts +149 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +532 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/index.d.mts +2 -0
- package/dist/esm/management/api/resources/actions/resources/modules/index.mjs +2 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +66 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +215 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.mjs +1 -0
- 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 +34 -18
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +90 -80
- 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 +38 -32
- package/dist/esm/management/api/resources/connections/client/Client.mjs +56 -122
- 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 +122 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +430 -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 +13 -13
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +28 -66
- 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 -26
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +96 -162
- 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/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/index.mjs +1 -0
- 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/executions/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +4 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +4 -0
- package/dist/esm/management/api/resources/flows/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/index.mjs +1 -0
- 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/flows/types/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/types/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/types/types.d.mts +4 -0
- package/dist/esm/management/api/resources/flows/types/types.mjs +4 -0
- 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/groups/client/Client.d.mts +56 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +187 -0
- package/dist/esm/management/api/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/index.d.mts +2 -0
- package/dist/esm/management/api/resources/groups/index.mjs +2 -0
- package/dist/esm/management/api/resources/groups/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +111 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/index.mjs +1 -0
- 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 +15 -12
- package/dist/esm/management/api/resources/index.mjs +15 -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 +40 -22
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +115 -113
- 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 +28 -11
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +83 -43
- 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 +23 -23
- package/dist/esm/management/api/resources/roles/client/Client.mjs +43 -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 +30 -18
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +48 -98
- 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 +67 -65
- package/dist/esm/management/api/resources/users/client/Client.mjs +84 -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/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +111 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/index.mjs +1 -0
- 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 +2 -1
- package/dist/esm/management/api/resources/users/resources/index.mjs +2 -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 +13071 -8452
- package/dist/esm/management/api/types/types.mjs +1812 -7
- 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 +5152 -2775
- 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,19 +8,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import
|
|
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 PushNotificationClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant.
|
|
22
24
|
*
|
|
23
|
-
* @param {
|
|
25
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
26
|
*
|
|
25
27
|
* @throws {@link Management.BadRequestError}
|
|
26
28
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -35,7 +37,8 @@ export class PushNotification {
|
|
|
35
37
|
__getApnsProvider(requestOptions) {
|
|
36
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
38
|
-
|
|
40
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
41
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
39
42
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
40
43
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/apns"),
|
|
41
44
|
method: "GET",
|
|
@@ -45,6 +48,7 @@ export class PushNotification {
|
|
|
45
48
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
46
49
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
47
50
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
51
|
+
logging: this._options.logging,
|
|
48
52
|
});
|
|
49
53
|
if (_response.ok) {
|
|
50
54
|
return {
|
|
@@ -68,46 +72,33 @@ export class PushNotification {
|
|
|
68
72
|
});
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
|
-
|
|
72
|
-
case "non-json":
|
|
73
|
-
throw new errors.ManagementError({
|
|
74
|
-
statusCode: _response.error.statusCode,
|
|
75
|
-
body: _response.error.rawBody,
|
|
76
|
-
rawResponse: _response.rawResponse,
|
|
77
|
-
});
|
|
78
|
-
case "timeout":
|
|
79
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/providers/apns.");
|
|
80
|
-
case "unknown":
|
|
81
|
-
throw new errors.ManagementError({
|
|
82
|
-
message: _response.error.errorMessage,
|
|
83
|
-
rawResponse: _response.rawResponse,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
75
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/providers/apns");
|
|
86
76
|
});
|
|
87
77
|
}
|
|
88
78
|
/**
|
|
89
|
-
*
|
|
79
|
+
* Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.
|
|
90
80
|
*
|
|
91
81
|
* @param {Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent} request
|
|
92
|
-
* @param {
|
|
82
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
83
|
*
|
|
94
84
|
* @throws {@link Management.BadRequestError}
|
|
95
85
|
* @throws {@link Management.UnauthorizedError}
|
|
96
86
|
* @throws {@link Management.ForbiddenError}
|
|
97
87
|
*
|
|
98
88
|
* @example
|
|
99
|
-
* await client.guardian.factors.pushNotification.setApnsProvider(
|
|
89
|
+
* await client.guardian.factors.pushNotification.setApnsProvider()
|
|
100
90
|
*/
|
|
101
|
-
setApnsProvider(request, requestOptions) {
|
|
91
|
+
setApnsProvider(request = {}, requestOptions) {
|
|
102
92
|
return core.HttpResponsePromise.fromPromise(this.__setApnsProvider(request, requestOptions));
|
|
103
93
|
}
|
|
104
|
-
__setApnsProvider(
|
|
105
|
-
return __awaiter(this,
|
|
94
|
+
__setApnsProvider() {
|
|
95
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
106
96
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
107
|
-
|
|
97
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
+
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);
|
|
108
99
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
109
100
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/apns"),
|
|
110
|
-
method: "
|
|
101
|
+
method: "PUT",
|
|
111
102
|
headers: _headers,
|
|
112
103
|
contentType: "application/json",
|
|
113
104
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -117,6 +108,7 @@ export class PushNotification {
|
|
|
117
108
|
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,
|
|
118
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
119
110
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
111
|
+
logging: this._options.logging,
|
|
120
112
|
});
|
|
121
113
|
if (_response.ok) {
|
|
122
114
|
return {
|
|
@@ -140,46 +132,93 @@ export class PushNotification {
|
|
|
140
132
|
});
|
|
141
133
|
}
|
|
142
134
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
135
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/apns");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.
|
|
140
|
+
*
|
|
141
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent} request
|
|
142
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link Management.BadRequestError}
|
|
145
|
+
* @throws {@link Management.UnauthorizedError}
|
|
146
|
+
* @throws {@link Management.ForbiddenError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.guardian.factors.pushNotification.updateApnsProvider()
|
|
150
|
+
*/
|
|
151
|
+
updateApnsProvider(request = {}, requestOptions) {
|
|
152
|
+
return core.HttpResponsePromise.fromPromise(this.__updateApnsProvider(request, requestOptions));
|
|
153
|
+
}
|
|
154
|
+
__updateApnsProvider() {
|
|
155
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
156
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
157
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
158
|
+
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);
|
|
159
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
160
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/apns"),
|
|
161
|
+
method: "PATCH",
|
|
162
|
+
headers: _headers,
|
|
163
|
+
contentType: "application/json",
|
|
164
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
165
|
+
requestType: "json",
|
|
166
|
+
body: request,
|
|
167
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
168
|
+
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,
|
|
169
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
170
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
171
|
+
logging: this._options.logging,
|
|
172
|
+
});
|
|
173
|
+
if (_response.ok) {
|
|
174
|
+
return {
|
|
175
|
+
data: _response.body,
|
|
176
|
+
rawResponse: _response.rawResponse,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (_response.error.reason === "status-code") {
|
|
180
|
+
switch (_response.error.statusCode) {
|
|
181
|
+
case 400:
|
|
182
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 401:
|
|
184
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 403:
|
|
186
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
187
|
+
default:
|
|
188
|
+
throw new errors.ManagementError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.body,
|
|
191
|
+
rawResponse: _response.rawResponse,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
157
194
|
}
|
|
195
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/apns");
|
|
158
196
|
});
|
|
159
197
|
}
|
|
160
198
|
/**
|
|
161
|
-
*
|
|
199
|
+
* Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.
|
|
162
200
|
*
|
|
163
201
|
* @param {Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent} request
|
|
164
|
-
* @param {
|
|
202
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
203
|
*
|
|
166
204
|
* @throws {@link Management.BadRequestError}
|
|
167
205
|
* @throws {@link Management.UnauthorizedError}
|
|
168
206
|
* @throws {@link Management.ForbiddenError}
|
|
169
207
|
*
|
|
170
208
|
* @example
|
|
171
|
-
* await client.guardian.factors.pushNotification.setFcmProvider(
|
|
209
|
+
* await client.guardian.factors.pushNotification.setFcmProvider()
|
|
172
210
|
*/
|
|
173
|
-
setFcmProvider(request, requestOptions) {
|
|
211
|
+
setFcmProvider(request = {}, requestOptions) {
|
|
174
212
|
return core.HttpResponsePromise.fromPromise(this.__setFcmProvider(request, requestOptions));
|
|
175
213
|
}
|
|
176
|
-
__setFcmProvider(
|
|
177
|
-
return __awaiter(this,
|
|
214
|
+
__setFcmProvider() {
|
|
215
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
178
216
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
179
|
-
|
|
217
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
218
|
+
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);
|
|
180
219
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
181
220
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/fcm"),
|
|
182
|
-
method: "
|
|
221
|
+
method: "PUT",
|
|
183
222
|
headers: _headers,
|
|
184
223
|
contentType: "application/json",
|
|
185
224
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -189,6 +228,7 @@ export class PushNotification {
|
|
|
189
228
|
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,
|
|
190
229
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
191
230
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
231
|
+
logging: this._options.logging,
|
|
192
232
|
});
|
|
193
233
|
if (_response.ok) {
|
|
194
234
|
return {
|
|
@@ -212,46 +252,93 @@ export class PushNotification {
|
|
|
212
252
|
});
|
|
213
253
|
}
|
|
214
254
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
255
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/fcm");
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.
|
|
260
|
+
*
|
|
261
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent} request
|
|
262
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link Management.BadRequestError}
|
|
265
|
+
* @throws {@link Management.UnauthorizedError}
|
|
266
|
+
* @throws {@link Management.ForbiddenError}
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* await client.guardian.factors.pushNotification.updateFcmProvider()
|
|
270
|
+
*/
|
|
271
|
+
updateFcmProvider(request = {}, requestOptions) {
|
|
272
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFcmProvider(request, requestOptions));
|
|
273
|
+
}
|
|
274
|
+
__updateFcmProvider() {
|
|
275
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
276
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
277
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
278
|
+
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);
|
|
279
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
280
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/fcm"),
|
|
281
|
+
method: "PATCH",
|
|
282
|
+
headers: _headers,
|
|
283
|
+
contentType: "application/json",
|
|
284
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
285
|
+
requestType: "json",
|
|
286
|
+
body: request,
|
|
287
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
288
|
+
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,
|
|
289
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
290
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
291
|
+
logging: this._options.logging,
|
|
292
|
+
});
|
|
293
|
+
if (_response.ok) {
|
|
294
|
+
return {
|
|
295
|
+
data: _response.body,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
if (_response.error.reason === "status-code") {
|
|
300
|
+
switch (_response.error.statusCode) {
|
|
301
|
+
case 400:
|
|
302
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
303
|
+
case 401:
|
|
304
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
305
|
+
case 403:
|
|
306
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
307
|
+
default:
|
|
308
|
+
throw new errors.ManagementError({
|
|
309
|
+
statusCode: _response.error.statusCode,
|
|
310
|
+
body: _response.error.body,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
229
314
|
}
|
|
315
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/fcm");
|
|
230
316
|
});
|
|
231
317
|
}
|
|
232
318
|
/**
|
|
233
|
-
*
|
|
319
|
+
* Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
|
|
234
320
|
*
|
|
235
321
|
* @param {Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent} request
|
|
236
|
-
* @param {
|
|
322
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
323
|
*
|
|
238
324
|
* @throws {@link Management.BadRequestError}
|
|
239
325
|
* @throws {@link Management.UnauthorizedError}
|
|
240
326
|
* @throws {@link Management.ForbiddenError}
|
|
241
327
|
*
|
|
242
328
|
* @example
|
|
243
|
-
* await client.guardian.factors.pushNotification.setFcmv1Provider(
|
|
329
|
+
* await client.guardian.factors.pushNotification.setFcmv1Provider()
|
|
244
330
|
*/
|
|
245
|
-
setFcmv1Provider(request, requestOptions) {
|
|
331
|
+
setFcmv1Provider(request = {}, requestOptions) {
|
|
246
332
|
return core.HttpResponsePromise.fromPromise(this.__setFcmv1Provider(request, requestOptions));
|
|
247
333
|
}
|
|
248
|
-
__setFcmv1Provider(
|
|
249
|
-
return __awaiter(this,
|
|
334
|
+
__setFcmv1Provider() {
|
|
335
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
250
336
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
251
|
-
|
|
337
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
338
|
+
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);
|
|
252
339
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
253
340
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/fcmv1"),
|
|
254
|
-
method: "
|
|
341
|
+
method: "PUT",
|
|
255
342
|
headers: _headers,
|
|
256
343
|
contentType: "application/json",
|
|
257
344
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -261,6 +348,7 @@ export class PushNotification {
|
|
|
261
348
|
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,
|
|
262
349
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
263
350
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
351
|
+
logging: this._options.logging,
|
|
264
352
|
});
|
|
265
353
|
if (_response.ok) {
|
|
266
354
|
return {
|
|
@@ -284,27 +372,73 @@ export class PushNotification {
|
|
|
284
372
|
});
|
|
285
373
|
}
|
|
286
374
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
375
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/fcmv1");
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
|
|
380
|
+
*
|
|
381
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent} request
|
|
382
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
383
|
+
*
|
|
384
|
+
* @throws {@link Management.BadRequestError}
|
|
385
|
+
* @throws {@link Management.UnauthorizedError}
|
|
386
|
+
* @throws {@link Management.ForbiddenError}
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* await client.guardian.factors.pushNotification.updateFcmv1Provider()
|
|
390
|
+
*/
|
|
391
|
+
updateFcmv1Provider(request = {}, requestOptions) {
|
|
392
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFcmv1Provider(request, requestOptions));
|
|
393
|
+
}
|
|
394
|
+
__updateFcmv1Provider() {
|
|
395
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
396
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
397
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
398
|
+
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);
|
|
399
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
400
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/fcmv1"),
|
|
401
|
+
method: "PATCH",
|
|
402
|
+
headers: _headers,
|
|
403
|
+
contentType: "application/json",
|
|
404
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
405
|
+
requestType: "json",
|
|
406
|
+
body: request,
|
|
407
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
408
|
+
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,
|
|
409
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
410
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
411
|
+
logging: this._options.logging,
|
|
412
|
+
});
|
|
413
|
+
if (_response.ok) {
|
|
414
|
+
return {
|
|
415
|
+
data: _response.body,
|
|
416
|
+
rawResponse: _response.rawResponse,
|
|
417
|
+
};
|
|
301
418
|
}
|
|
419
|
+
if (_response.error.reason === "status-code") {
|
|
420
|
+
switch (_response.error.statusCode) {
|
|
421
|
+
case 400:
|
|
422
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 401:
|
|
424
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
425
|
+
case 403:
|
|
426
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
427
|
+
default:
|
|
428
|
+
throw new errors.ManagementError({
|
|
429
|
+
statusCode: _response.error.statusCode,
|
|
430
|
+
body: _response.error.body,
|
|
431
|
+
rawResponse: _response.rawResponse,
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/fcmv1");
|
|
302
436
|
});
|
|
303
437
|
}
|
|
304
438
|
/**
|
|
305
439
|
* Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>.
|
|
306
440
|
*
|
|
307
|
-
* @param {
|
|
441
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
308
442
|
*
|
|
309
443
|
* @throws {@link Management.BadRequestError}
|
|
310
444
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -319,7 +453,8 @@ export class PushNotification {
|
|
|
319
453
|
__getSnsProvider(requestOptions) {
|
|
320
454
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
455
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
322
|
-
|
|
456
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
457
|
+
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);
|
|
323
458
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
324
459
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/sns"),
|
|
325
460
|
method: "GET",
|
|
@@ -329,6 +464,7 @@ export class PushNotification {
|
|
|
329
464
|
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,
|
|
330
465
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
331
466
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
467
|
+
logging: this._options.logging,
|
|
332
468
|
});
|
|
333
469
|
if (_response.ok) {
|
|
334
470
|
return {
|
|
@@ -352,28 +488,14 @@ export class PushNotification {
|
|
|
352
488
|
});
|
|
353
489
|
}
|
|
354
490
|
}
|
|
355
|
-
|
|
356
|
-
case "non-json":
|
|
357
|
-
throw new errors.ManagementError({
|
|
358
|
-
statusCode: _response.error.statusCode,
|
|
359
|
-
body: _response.error.rawBody,
|
|
360
|
-
rawResponse: _response.rawResponse,
|
|
361
|
-
});
|
|
362
|
-
case "timeout":
|
|
363
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/providers/sns.");
|
|
364
|
-
case "unknown":
|
|
365
|
-
throw new errors.ManagementError({
|
|
366
|
-
message: _response.error.errorMessage,
|
|
367
|
-
rawResponse: _response.rawResponse,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
491
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/providers/sns");
|
|
370
492
|
});
|
|
371
493
|
}
|
|
372
494
|
/**
|
|
373
495
|
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
374
496
|
*
|
|
375
497
|
* @param {Management.SetGuardianFactorsProviderPushNotificationSnsRequestContent} request
|
|
376
|
-
* @param {
|
|
498
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
377
499
|
*
|
|
378
500
|
* @throws {@link Management.BadRequestError}
|
|
379
501
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -388,7 +510,8 @@ export class PushNotification {
|
|
|
388
510
|
__setSnsProvider() {
|
|
389
511
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
390
512
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
391
|
-
|
|
513
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
514
|
+
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);
|
|
392
515
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
393
516
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/sns"),
|
|
394
517
|
method: "PUT",
|
|
@@ -401,6 +524,7 @@ export class PushNotification {
|
|
|
401
524
|
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,
|
|
402
525
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
403
526
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
527
|
+
logging: this._options.logging,
|
|
404
528
|
});
|
|
405
529
|
if (_response.ok) {
|
|
406
530
|
return {
|
|
@@ -424,28 +548,14 @@ export class PushNotification {
|
|
|
424
548
|
});
|
|
425
549
|
}
|
|
426
550
|
}
|
|
427
|
-
|
|
428
|
-
case "non-json":
|
|
429
|
-
throw new errors.ManagementError({
|
|
430
|
-
statusCode: _response.error.statusCode,
|
|
431
|
-
body: _response.error.rawBody,
|
|
432
|
-
rawResponse: _response.rawResponse,
|
|
433
|
-
});
|
|
434
|
-
case "timeout":
|
|
435
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/push-notification/providers/sns.");
|
|
436
|
-
case "unknown":
|
|
437
|
-
throw new errors.ManagementError({
|
|
438
|
-
message: _response.error.errorMessage,
|
|
439
|
-
rawResponse: _response.rawResponse,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
551
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/sns");
|
|
442
552
|
});
|
|
443
553
|
}
|
|
444
554
|
/**
|
|
445
555
|
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
446
556
|
*
|
|
447
557
|
* @param {Management.UpdateGuardianFactorsProviderPushNotificationSnsRequestContent} request
|
|
448
|
-
* @param {
|
|
558
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
449
559
|
*
|
|
450
560
|
* @throws {@link Management.BadRequestError}
|
|
451
561
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -460,7 +570,8 @@ export class PushNotification {
|
|
|
460
570
|
__updateSnsProvider() {
|
|
461
571
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
462
572
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
463
|
-
|
|
573
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
574
|
+
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);
|
|
464
575
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
465
576
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/providers/sns"),
|
|
466
577
|
method: "PATCH",
|
|
@@ -473,6 +584,7 @@ export class PushNotification {
|
|
|
473
584
|
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,
|
|
474
585
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
475
586
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
587
|
+
logging: this._options.logging,
|
|
476
588
|
});
|
|
477
589
|
if (_response.ok) {
|
|
478
590
|
return {
|
|
@@ -496,27 +608,13 @@ export class PushNotification {
|
|
|
496
608
|
});
|
|
497
609
|
}
|
|
498
610
|
}
|
|
499
|
-
|
|
500
|
-
case "non-json":
|
|
501
|
-
throw new errors.ManagementError({
|
|
502
|
-
statusCode: _response.error.statusCode,
|
|
503
|
-
body: _response.error.rawBody,
|
|
504
|
-
rawResponse: _response.rawResponse,
|
|
505
|
-
});
|
|
506
|
-
case "timeout":
|
|
507
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /guardian/factors/push-notification/providers/sns.");
|
|
508
|
-
case "unknown":
|
|
509
|
-
throw new errors.ManagementError({
|
|
510
|
-
message: _response.error.errorMessage,
|
|
511
|
-
rawResponse: _response.rawResponse,
|
|
512
|
-
});
|
|
513
|
-
}
|
|
611
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/sns");
|
|
514
612
|
});
|
|
515
613
|
}
|
|
516
614
|
/**
|
|
517
615
|
* Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>.
|
|
518
616
|
*
|
|
519
|
-
* @param {
|
|
617
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
520
618
|
*
|
|
521
619
|
* @throws {@link Management.BadRequestError}
|
|
522
620
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -531,7 +629,8 @@ export class PushNotification {
|
|
|
531
629
|
__getSelectedProvider(requestOptions) {
|
|
532
630
|
return __awaiter(this, void 0, void 0, function* () {
|
|
533
631
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
534
|
-
|
|
632
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
633
|
+
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);
|
|
535
634
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
536
635
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/selected-provider"),
|
|
537
636
|
method: "GET",
|
|
@@ -541,6 +640,7 @@ export class PushNotification {
|
|
|
541
640
|
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,
|
|
542
641
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
543
642
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
643
|
+
logging: this._options.logging,
|
|
544
644
|
});
|
|
545
645
|
if (_response.ok) {
|
|
546
646
|
return {
|
|
@@ -564,28 +664,14 @@ export class PushNotification {
|
|
|
564
664
|
});
|
|
565
665
|
}
|
|
566
666
|
}
|
|
567
|
-
|
|
568
|
-
case "non-json":
|
|
569
|
-
throw new errors.ManagementError({
|
|
570
|
-
statusCode: _response.error.statusCode,
|
|
571
|
-
body: _response.error.rawBody,
|
|
572
|
-
rawResponse: _response.rawResponse,
|
|
573
|
-
});
|
|
574
|
-
case "timeout":
|
|
575
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/selected-provider.");
|
|
576
|
-
case "unknown":
|
|
577
|
-
throw new errors.ManagementError({
|
|
578
|
-
message: _response.error.errorMessage,
|
|
579
|
-
rawResponse: _response.rawResponse,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
667
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/selected-provider");
|
|
582
668
|
});
|
|
583
669
|
}
|
|
584
670
|
/**
|
|
585
671
|
* Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>.
|
|
586
672
|
*
|
|
587
673
|
* @param {Management.SetGuardianFactorsProviderPushNotificationRequestContent} request
|
|
588
|
-
* @param {
|
|
674
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
589
675
|
*
|
|
590
676
|
* @throws {@link Management.BadRequestError}
|
|
591
677
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -602,7 +688,8 @@ export class PushNotification {
|
|
|
602
688
|
__setProvider(request, requestOptions) {
|
|
603
689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
690
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
605
|
-
|
|
691
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
692
|
+
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);
|
|
606
693
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
607
694
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "guardian/factors/push-notification/selected-provider"),
|
|
608
695
|
method: "PUT",
|
|
@@ -615,6 +702,7 @@ export class PushNotification {
|
|
|
615
702
|
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,
|
|
616
703
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
617
704
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
705
|
+
logging: this._options.logging,
|
|
618
706
|
});
|
|
619
707
|
if (_response.ok) {
|
|
620
708
|
return {
|
|
@@ -638,26 +726,7 @@ export class PushNotification {
|
|
|
638
726
|
});
|
|
639
727
|
}
|
|
640
728
|
}
|
|
641
|
-
|
|
642
|
-
case "non-json":
|
|
643
|
-
throw new errors.ManagementError({
|
|
644
|
-
statusCode: _response.error.statusCode,
|
|
645
|
-
body: _response.error.rawBody,
|
|
646
|
-
rawResponse: _response.rawResponse,
|
|
647
|
-
});
|
|
648
|
-
case "timeout":
|
|
649
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/push-notification/selected-provider.");
|
|
650
|
-
case "unknown":
|
|
651
|
-
throw new errors.ManagementError({
|
|
652
|
-
message: _response.error.errorMessage,
|
|
653
|
-
rawResponse: _response.rawResponse,
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
_getAuthorizationHeader() {
|
|
659
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
729
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/selected-provider");
|
|
661
730
|
});
|
|
662
731
|
}
|
|
663
732
|
}
|