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
|
@@ -43,20 +43,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
46
|
+
exports.PushNotificationClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
48
48
|
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
49
|
-
const Management = __importStar(require("../../../../../../../index.js"));
|
|
50
49
|
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
50
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
51
52
|
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const Management = __importStar(require("../../../../../../../index.js"));
|
|
54
|
+
class PushNotificationClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Retrieve configuration details for the multi-factor authentication APNS provider associated with your tenant.
|
|
58
60
|
*
|
|
59
|
-
* @param {
|
|
61
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
62
|
*
|
|
61
63
|
* @throws {@link Management.BadRequestError}
|
|
62
64
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -71,7 +73,8 @@ class PushNotification {
|
|
|
71
73
|
__getApnsProvider(requestOptions) {
|
|
72
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
75
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
74
|
-
|
|
76
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
77
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
75
78
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
76
79
|
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"),
|
|
77
80
|
method: "GET",
|
|
@@ -81,6 +84,7 @@ class PushNotification {
|
|
|
81
84
|
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,
|
|
82
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
86
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
87
|
+
logging: this._options.logging,
|
|
84
88
|
});
|
|
85
89
|
if (_response.ok) {
|
|
86
90
|
return {
|
|
@@ -104,46 +108,33 @@ class PushNotification {
|
|
|
104
108
|
});
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
|
-
|
|
108
|
-
case "non-json":
|
|
109
|
-
throw new errors.ManagementError({
|
|
110
|
-
statusCode: _response.error.statusCode,
|
|
111
|
-
body: _response.error.rawBody,
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
});
|
|
114
|
-
case "timeout":
|
|
115
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/providers/apns.");
|
|
116
|
-
case "unknown":
|
|
117
|
-
throw new errors.ManagementError({
|
|
118
|
-
message: _response.error.errorMessage,
|
|
119
|
-
rawResponse: _response.rawResponse,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
111
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/providers/apns");
|
|
122
112
|
});
|
|
123
113
|
}
|
|
124
114
|
/**
|
|
125
|
-
*
|
|
115
|
+
* Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.
|
|
126
116
|
*
|
|
127
117
|
* @param {Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent} request
|
|
128
|
-
* @param {
|
|
118
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
119
|
*
|
|
130
120
|
* @throws {@link Management.BadRequestError}
|
|
131
121
|
* @throws {@link Management.UnauthorizedError}
|
|
132
122
|
* @throws {@link Management.ForbiddenError}
|
|
133
123
|
*
|
|
134
124
|
* @example
|
|
135
|
-
* await client.guardian.factors.pushNotification.setApnsProvider(
|
|
125
|
+
* await client.guardian.factors.pushNotification.setApnsProvider()
|
|
136
126
|
*/
|
|
137
|
-
setApnsProvider(request, requestOptions) {
|
|
127
|
+
setApnsProvider(request = {}, requestOptions) {
|
|
138
128
|
return core.HttpResponsePromise.fromPromise(this.__setApnsProvider(request, requestOptions));
|
|
139
129
|
}
|
|
140
|
-
__setApnsProvider(
|
|
141
|
-
return __awaiter(this,
|
|
130
|
+
__setApnsProvider() {
|
|
131
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
142
132
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
143
|
-
|
|
133
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
134
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
144
135
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
145
136
|
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"),
|
|
146
|
-
method: "
|
|
137
|
+
method: "PUT",
|
|
147
138
|
headers: _headers,
|
|
148
139
|
contentType: "application/json",
|
|
149
140
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -153,6 +144,7 @@ class PushNotification {
|
|
|
153
144
|
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,
|
|
154
145
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
146
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
147
|
+
logging: this._options.logging,
|
|
156
148
|
});
|
|
157
149
|
if (_response.ok) {
|
|
158
150
|
return {
|
|
@@ -176,46 +168,93 @@ class PushNotification {
|
|
|
176
168
|
});
|
|
177
169
|
}
|
|
178
170
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
171
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/apns");
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.
|
|
176
|
+
*
|
|
177
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent} request
|
|
178
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
|
+
*
|
|
180
|
+
* @throws {@link Management.BadRequestError}
|
|
181
|
+
* @throws {@link Management.UnauthorizedError}
|
|
182
|
+
* @throws {@link Management.ForbiddenError}
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* await client.guardian.factors.pushNotification.updateApnsProvider()
|
|
186
|
+
*/
|
|
187
|
+
updateApnsProvider(request = {}, requestOptions) {
|
|
188
|
+
return core.HttpResponsePromise.fromPromise(this.__updateApnsProvider(request, requestOptions));
|
|
189
|
+
}
|
|
190
|
+
__updateApnsProvider() {
|
|
191
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
192
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
193
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
194
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
195
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
196
|
+
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"),
|
|
197
|
+
method: "PATCH",
|
|
198
|
+
headers: _headers,
|
|
199
|
+
contentType: "application/json",
|
|
200
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
201
|
+
requestType: "json",
|
|
202
|
+
body: request,
|
|
203
|
+
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,
|
|
204
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
205
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
206
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
207
|
+
logging: this._options.logging,
|
|
208
|
+
});
|
|
209
|
+
if (_response.ok) {
|
|
210
|
+
return {
|
|
211
|
+
data: _response.body,
|
|
212
|
+
rawResponse: _response.rawResponse,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
if (_response.error.reason === "status-code") {
|
|
216
|
+
switch (_response.error.statusCode) {
|
|
217
|
+
case 400:
|
|
218
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
219
|
+
case 401:
|
|
220
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
221
|
+
case 403:
|
|
222
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
223
|
+
default:
|
|
224
|
+
throw new errors.ManagementError({
|
|
225
|
+
statusCode: _response.error.statusCode,
|
|
226
|
+
body: _response.error.body,
|
|
227
|
+
rawResponse: _response.rawResponse,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
193
230
|
}
|
|
231
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/apns");
|
|
194
232
|
});
|
|
195
233
|
}
|
|
196
234
|
/**
|
|
197
|
-
*
|
|
235
|
+
* Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.
|
|
198
236
|
*
|
|
199
237
|
* @param {Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent} request
|
|
200
|
-
* @param {
|
|
238
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
239
|
*
|
|
202
240
|
* @throws {@link Management.BadRequestError}
|
|
203
241
|
* @throws {@link Management.UnauthorizedError}
|
|
204
242
|
* @throws {@link Management.ForbiddenError}
|
|
205
243
|
*
|
|
206
244
|
* @example
|
|
207
|
-
* await client.guardian.factors.pushNotification.setFcmProvider(
|
|
245
|
+
* await client.guardian.factors.pushNotification.setFcmProvider()
|
|
208
246
|
*/
|
|
209
|
-
setFcmProvider(request, requestOptions) {
|
|
247
|
+
setFcmProvider(request = {}, requestOptions) {
|
|
210
248
|
return core.HttpResponsePromise.fromPromise(this.__setFcmProvider(request, requestOptions));
|
|
211
249
|
}
|
|
212
|
-
__setFcmProvider(
|
|
213
|
-
return __awaiter(this,
|
|
250
|
+
__setFcmProvider() {
|
|
251
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
214
252
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
215
|
-
|
|
253
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
254
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
216
255
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
217
256
|
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"),
|
|
218
|
-
method: "
|
|
257
|
+
method: "PUT",
|
|
219
258
|
headers: _headers,
|
|
220
259
|
contentType: "application/json",
|
|
221
260
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -225,6 +264,7 @@ class PushNotification {
|
|
|
225
264
|
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,
|
|
226
265
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
227
266
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
267
|
+
logging: this._options.logging,
|
|
228
268
|
});
|
|
229
269
|
if (_response.ok) {
|
|
230
270
|
return {
|
|
@@ -248,46 +288,93 @@ class PushNotification {
|
|
|
248
288
|
});
|
|
249
289
|
}
|
|
250
290
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
291
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/fcm");
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.
|
|
296
|
+
*
|
|
297
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent} request
|
|
298
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
|
+
*
|
|
300
|
+
* @throws {@link Management.BadRequestError}
|
|
301
|
+
* @throws {@link Management.UnauthorizedError}
|
|
302
|
+
* @throws {@link Management.ForbiddenError}
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* await client.guardian.factors.pushNotification.updateFcmProvider()
|
|
306
|
+
*/
|
|
307
|
+
updateFcmProvider(request = {}, requestOptions) {
|
|
308
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFcmProvider(request, requestOptions));
|
|
309
|
+
}
|
|
310
|
+
__updateFcmProvider() {
|
|
311
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
312
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
313
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
314
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
315
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
316
|
+
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"),
|
|
317
|
+
method: "PATCH",
|
|
318
|
+
headers: _headers,
|
|
319
|
+
contentType: "application/json",
|
|
320
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
321
|
+
requestType: "json",
|
|
322
|
+
body: request,
|
|
323
|
+
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,
|
|
324
|
+
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,
|
|
325
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
326
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
327
|
+
logging: this._options.logging,
|
|
328
|
+
});
|
|
329
|
+
if (_response.ok) {
|
|
330
|
+
return {
|
|
331
|
+
data: _response.body,
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
if (_response.error.reason === "status-code") {
|
|
336
|
+
switch (_response.error.statusCode) {
|
|
337
|
+
case 400:
|
|
338
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
339
|
+
case 401:
|
|
340
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
341
|
+
case 403:
|
|
342
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
343
|
+
default:
|
|
344
|
+
throw new errors.ManagementError({
|
|
345
|
+
statusCode: _response.error.statusCode,
|
|
346
|
+
body: _response.error.body,
|
|
347
|
+
rawResponse: _response.rawResponse,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
265
350
|
}
|
|
351
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/fcm");
|
|
266
352
|
});
|
|
267
353
|
}
|
|
268
354
|
/**
|
|
269
|
-
*
|
|
355
|
+
* Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
|
|
270
356
|
*
|
|
271
357
|
* @param {Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent} request
|
|
272
|
-
* @param {
|
|
358
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
273
359
|
*
|
|
274
360
|
* @throws {@link Management.BadRequestError}
|
|
275
361
|
* @throws {@link Management.UnauthorizedError}
|
|
276
362
|
* @throws {@link Management.ForbiddenError}
|
|
277
363
|
*
|
|
278
364
|
* @example
|
|
279
|
-
* await client.guardian.factors.pushNotification.setFcmv1Provider(
|
|
365
|
+
* await client.guardian.factors.pushNotification.setFcmv1Provider()
|
|
280
366
|
*/
|
|
281
|
-
setFcmv1Provider(request, requestOptions) {
|
|
367
|
+
setFcmv1Provider(request = {}, requestOptions) {
|
|
282
368
|
return core.HttpResponsePromise.fromPromise(this.__setFcmv1Provider(request, requestOptions));
|
|
283
369
|
}
|
|
284
|
-
__setFcmv1Provider(
|
|
285
|
-
return __awaiter(this,
|
|
370
|
+
__setFcmv1Provider() {
|
|
371
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
286
372
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
287
|
-
|
|
373
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
374
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
288
375
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
289
376
|
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"),
|
|
290
|
-
method: "
|
|
377
|
+
method: "PUT",
|
|
291
378
|
headers: _headers,
|
|
292
379
|
contentType: "application/json",
|
|
293
380
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -297,6 +384,7 @@ class PushNotification {
|
|
|
297
384
|
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,
|
|
298
385
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
299
386
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
387
|
+
logging: this._options.logging,
|
|
300
388
|
});
|
|
301
389
|
if (_response.ok) {
|
|
302
390
|
return {
|
|
@@ -320,27 +408,73 @@ class PushNotification {
|
|
|
320
408
|
});
|
|
321
409
|
}
|
|
322
410
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
411
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/fcmv1");
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
|
|
416
|
+
*
|
|
417
|
+
* @param {Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent} request
|
|
418
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
419
|
+
*
|
|
420
|
+
* @throws {@link Management.BadRequestError}
|
|
421
|
+
* @throws {@link Management.UnauthorizedError}
|
|
422
|
+
* @throws {@link Management.ForbiddenError}
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* await client.guardian.factors.pushNotification.updateFcmv1Provider()
|
|
426
|
+
*/
|
|
427
|
+
updateFcmv1Provider(request = {}, requestOptions) {
|
|
428
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFcmv1Provider(request, requestOptions));
|
|
429
|
+
}
|
|
430
|
+
__updateFcmv1Provider() {
|
|
431
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
432
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
433
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
434
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
435
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
436
|
+
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"),
|
|
437
|
+
method: "PATCH",
|
|
438
|
+
headers: _headers,
|
|
439
|
+
contentType: "application/json",
|
|
440
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
441
|
+
requestType: "json",
|
|
442
|
+
body: request,
|
|
443
|
+
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,
|
|
444
|
+
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,
|
|
445
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
446
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
447
|
+
logging: this._options.logging,
|
|
448
|
+
});
|
|
449
|
+
if (_response.ok) {
|
|
450
|
+
return {
|
|
451
|
+
data: _response.body,
|
|
452
|
+
rawResponse: _response.rawResponse,
|
|
453
|
+
};
|
|
337
454
|
}
|
|
455
|
+
if (_response.error.reason === "status-code") {
|
|
456
|
+
switch (_response.error.statusCode) {
|
|
457
|
+
case 400:
|
|
458
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
459
|
+
case 401:
|
|
460
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
461
|
+
case 403:
|
|
462
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
463
|
+
default:
|
|
464
|
+
throw new errors.ManagementError({
|
|
465
|
+
statusCode: _response.error.statusCode,
|
|
466
|
+
body: _response.error.body,
|
|
467
|
+
rawResponse: _response.rawResponse,
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/fcmv1");
|
|
338
472
|
});
|
|
339
473
|
}
|
|
340
474
|
/**
|
|
341
475
|
* 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>.
|
|
342
476
|
*
|
|
343
|
-
* @param {
|
|
477
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
478
|
*
|
|
345
479
|
* @throws {@link Management.BadRequestError}
|
|
346
480
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -355,7 +489,8 @@ class PushNotification {
|
|
|
355
489
|
__getSnsProvider(requestOptions) {
|
|
356
490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
491
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
358
|
-
|
|
492
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
493
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
359
494
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
360
495
|
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"),
|
|
361
496
|
method: "GET",
|
|
@@ -365,6 +500,7 @@ class PushNotification {
|
|
|
365
500
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
366
501
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
367
502
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
503
|
+
logging: this._options.logging,
|
|
368
504
|
});
|
|
369
505
|
if (_response.ok) {
|
|
370
506
|
return {
|
|
@@ -388,28 +524,14 @@ class PushNotification {
|
|
|
388
524
|
});
|
|
389
525
|
}
|
|
390
526
|
}
|
|
391
|
-
|
|
392
|
-
case "non-json":
|
|
393
|
-
throw new errors.ManagementError({
|
|
394
|
-
statusCode: _response.error.statusCode,
|
|
395
|
-
body: _response.error.rawBody,
|
|
396
|
-
rawResponse: _response.rawResponse,
|
|
397
|
-
});
|
|
398
|
-
case "timeout":
|
|
399
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/providers/sns.");
|
|
400
|
-
case "unknown":
|
|
401
|
-
throw new errors.ManagementError({
|
|
402
|
-
message: _response.error.errorMessage,
|
|
403
|
-
rawResponse: _response.rawResponse,
|
|
404
|
-
});
|
|
405
|
-
}
|
|
527
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/providers/sns");
|
|
406
528
|
});
|
|
407
529
|
}
|
|
408
530
|
/**
|
|
409
531
|
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
410
532
|
*
|
|
411
533
|
* @param {Management.SetGuardianFactorsProviderPushNotificationSnsRequestContent} request
|
|
412
|
-
* @param {
|
|
534
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
413
535
|
*
|
|
414
536
|
* @throws {@link Management.BadRequestError}
|
|
415
537
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -424,7 +546,8 @@ class PushNotification {
|
|
|
424
546
|
__setSnsProvider() {
|
|
425
547
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
426
548
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
427
|
-
|
|
549
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
550
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
428
551
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
429
552
|
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"),
|
|
430
553
|
method: "PUT",
|
|
@@ -437,6 +560,7 @@ class PushNotification {
|
|
|
437
560
|
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,
|
|
438
561
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
439
562
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
563
|
+
logging: this._options.logging,
|
|
440
564
|
});
|
|
441
565
|
if (_response.ok) {
|
|
442
566
|
return {
|
|
@@ -460,28 +584,14 @@ class PushNotification {
|
|
|
460
584
|
});
|
|
461
585
|
}
|
|
462
586
|
}
|
|
463
|
-
|
|
464
|
-
case "non-json":
|
|
465
|
-
throw new errors.ManagementError({
|
|
466
|
-
statusCode: _response.error.statusCode,
|
|
467
|
-
body: _response.error.rawBody,
|
|
468
|
-
rawResponse: _response.rawResponse,
|
|
469
|
-
});
|
|
470
|
-
case "timeout":
|
|
471
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/push-notification/providers/sns.");
|
|
472
|
-
case "unknown":
|
|
473
|
-
throw new errors.ManagementError({
|
|
474
|
-
message: _response.error.errorMessage,
|
|
475
|
-
rawResponse: _response.rawResponse,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
587
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/providers/sns");
|
|
478
588
|
});
|
|
479
589
|
}
|
|
480
590
|
/**
|
|
481
591
|
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
482
592
|
*
|
|
483
593
|
* @param {Management.UpdateGuardianFactorsProviderPushNotificationSnsRequestContent} request
|
|
484
|
-
* @param {
|
|
594
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
485
595
|
*
|
|
486
596
|
* @throws {@link Management.BadRequestError}
|
|
487
597
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -496,7 +606,8 @@ class PushNotification {
|
|
|
496
606
|
__updateSnsProvider() {
|
|
497
607
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
498
608
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
499
|
-
|
|
609
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
610
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
500
611
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
501
612
|
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"),
|
|
502
613
|
method: "PATCH",
|
|
@@ -509,6 +620,7 @@ class PushNotification {
|
|
|
509
620
|
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,
|
|
510
621
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
511
622
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
623
|
+
logging: this._options.logging,
|
|
512
624
|
});
|
|
513
625
|
if (_response.ok) {
|
|
514
626
|
return {
|
|
@@ -532,27 +644,13 @@ class PushNotification {
|
|
|
532
644
|
});
|
|
533
645
|
}
|
|
534
646
|
}
|
|
535
|
-
|
|
536
|
-
case "non-json":
|
|
537
|
-
throw new errors.ManagementError({
|
|
538
|
-
statusCode: _response.error.statusCode,
|
|
539
|
-
body: _response.error.rawBody,
|
|
540
|
-
rawResponse: _response.rawResponse,
|
|
541
|
-
});
|
|
542
|
-
case "timeout":
|
|
543
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PATCH /guardian/factors/push-notification/providers/sns.");
|
|
544
|
-
case "unknown":
|
|
545
|
-
throw new errors.ManagementError({
|
|
546
|
-
message: _response.error.errorMessage,
|
|
547
|
-
rawResponse: _response.rawResponse,
|
|
548
|
-
});
|
|
549
|
-
}
|
|
647
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/guardian/factors/push-notification/providers/sns");
|
|
550
648
|
});
|
|
551
649
|
}
|
|
552
650
|
/**
|
|
553
651
|
* 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>.
|
|
554
652
|
*
|
|
555
|
-
* @param {
|
|
653
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
556
654
|
*
|
|
557
655
|
* @throws {@link Management.BadRequestError}
|
|
558
656
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -567,7 +665,8 @@ class PushNotification {
|
|
|
567
665
|
__getSelectedProvider(requestOptions) {
|
|
568
666
|
return __awaiter(this, void 0, void 0, function* () {
|
|
569
667
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
570
|
-
|
|
668
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
669
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
571
670
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
572
671
|
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"),
|
|
573
672
|
method: "GET",
|
|
@@ -577,6 +676,7 @@ class PushNotification {
|
|
|
577
676
|
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,
|
|
578
677
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
579
678
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
679
|
+
logging: this._options.logging,
|
|
580
680
|
});
|
|
581
681
|
if (_response.ok) {
|
|
582
682
|
return {
|
|
@@ -600,28 +700,14 @@ class PushNotification {
|
|
|
600
700
|
});
|
|
601
701
|
}
|
|
602
702
|
}
|
|
603
|
-
|
|
604
|
-
case "non-json":
|
|
605
|
-
throw new errors.ManagementError({
|
|
606
|
-
statusCode: _response.error.statusCode,
|
|
607
|
-
body: _response.error.rawBody,
|
|
608
|
-
rawResponse: _response.rawResponse,
|
|
609
|
-
});
|
|
610
|
-
case "timeout":
|
|
611
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling GET /guardian/factors/push-notification/selected-provider.");
|
|
612
|
-
case "unknown":
|
|
613
|
-
throw new errors.ManagementError({
|
|
614
|
-
message: _response.error.errorMessage,
|
|
615
|
-
rawResponse: _response.rawResponse,
|
|
616
|
-
});
|
|
617
|
-
}
|
|
703
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/guardian/factors/push-notification/selected-provider");
|
|
618
704
|
});
|
|
619
705
|
}
|
|
620
706
|
/**
|
|
621
707
|
* 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>.
|
|
622
708
|
*
|
|
623
709
|
* @param {Management.SetGuardianFactorsProviderPushNotificationRequestContent} request
|
|
624
|
-
* @param {
|
|
710
|
+
* @param {PushNotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
625
711
|
*
|
|
626
712
|
* @throws {@link Management.BadRequestError}
|
|
627
713
|
* @throws {@link Management.UnauthorizedError}
|
|
@@ -638,7 +724,8 @@ class PushNotification {
|
|
|
638
724
|
__setProvider(request, requestOptions) {
|
|
639
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
640
726
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
641
|
-
|
|
727
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
728
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
642
729
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
643
730
|
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"),
|
|
644
731
|
method: "PUT",
|
|
@@ -651,6 +738,7 @@ class PushNotification {
|
|
|
651
738
|
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,
|
|
652
739
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
653
740
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
741
|
+
logging: this._options.logging,
|
|
654
742
|
});
|
|
655
743
|
if (_response.ok) {
|
|
656
744
|
return {
|
|
@@ -674,27 +762,8 @@ class PushNotification {
|
|
|
674
762
|
});
|
|
675
763
|
}
|
|
676
764
|
}
|
|
677
|
-
|
|
678
|
-
case "non-json":
|
|
679
|
-
throw new errors.ManagementError({
|
|
680
|
-
statusCode: _response.error.statusCode,
|
|
681
|
-
body: _response.error.rawBody,
|
|
682
|
-
rawResponse: _response.rawResponse,
|
|
683
|
-
});
|
|
684
|
-
case "timeout":
|
|
685
|
-
throw new errors.ManagementTimeoutError("Timeout exceeded when calling PUT /guardian/factors/push-notification/selected-provider.");
|
|
686
|
-
case "unknown":
|
|
687
|
-
throw new errors.ManagementError({
|
|
688
|
-
message: _response.error.errorMessage,
|
|
689
|
-
rawResponse: _response.rawResponse,
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
_getAuthorizationHeader() {
|
|
695
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
696
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
765
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/guardian/factors/push-notification/selected-provider");
|
|
697
766
|
});
|
|
698
767
|
}
|
|
699
768
|
}
|
|
700
|
-
exports.
|
|
769
|
+
exports.PushNotificationClient = PushNotificationClient;
|