auth0 5.10.0 → 5.11.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/dist/cjs/management/BaseClient.d.ts +3 -0
- package/dist/cjs/management/BaseClient.js +15 -0
- package/dist/cjs/management/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +41 -36
- package/dist/cjs/management/api/requests/requests.d.ts +259 -0
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/actions/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.d.ts +16 -16
- package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.js +16 -16
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +12 -3
- package/dist/cjs/management/api/resources/clients/client/Client.js +12 -3
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +17 -19
- package/dist/cjs/management/api/resources/connections/client/Client.js +17 -19
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +19 -12
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +19 -12
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +3 -3
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +5 -0
- package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/groups/resources/roles/client/Client.d.ts +71 -0
- package/dist/cjs/management/api/resources/groups/resources/roles/client/Client.js +270 -0
- package/dist/cjs/management/api/resources/groups/resources/roles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/roles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/groups/resources/roles/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/roles/index.js +17 -0
- package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.d.ts +2 -5
- package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.js +2 -5
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.ts +3 -3
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.d.ts +10 -12
- package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.js +10 -12
- package/dist/cjs/management/api/resources/hooks/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/hooks/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/logs/client/Client.d.ts +17 -20
- package/dist/cjs/management/api/resources/logs/client/Client.js +17 -20
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +14 -13
- package/dist/cjs/management/api/resources/organizations/client/Client.js +20 -17
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/organizations/resources/groups/client/Client.d.ts +35 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/client/Client.js +146 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/index.js +18 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/Client.d.ts +74 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/Client.js +273 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/groups/resources/roles/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +9 -12
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -14
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.d.ts +36 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.js +147 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/index.js +18 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/Client.d.ts +12 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/Client.js +16 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/index.js +18 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.js +144 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/rateLimitPolicies/client/Client.d.ts +102 -0
- package/dist/cjs/management/api/resources/rateLimitPolicies/client/Client.js +397 -0
- package/dist/cjs/management/api/resources/rateLimitPolicies/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/rateLimitPolicies/client/index.js +2 -0
- package/dist/cjs/management/api/resources/rateLimitPolicies/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/rateLimitPolicies/index.js +17 -0
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +9 -6
- package/dist/cjs/management/api/resources/roles/client/Client.js +15 -10
- package/dist/cjs/management/api/resources/roles/resources/groups/client/Client.d.ts +71 -0
- package/dist/cjs/management/api/resources/roles/resources/groups/client/Client.js +270 -0
- package/dist/cjs/management/api/resources/roles/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/roles/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/roles/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/roles/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/roles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/roles/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +11 -13
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -13
- package/dist/cjs/management/api/resources/rules/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/rules/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/userBlocks/client/Client.d.ts +6 -6
- package/dist/cjs/management/api/resources/userBlocks/client/Client.js +6 -6
- package/dist/cjs/management/api/resources/users/client/Client.d.ts +82 -51
- package/dist/cjs/management/api/resources/users/client/Client.js +110 -75
- package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/client/Client.d.ts +37 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/client/Client.js +151 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/index.js +18 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/client/Client.d.ts +12 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/client/Client.js +16 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/index.js +18 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/Client.d.ts +35 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/Client.js +148 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/index.js +17 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/Client.d.ts +35 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/Client.js +146 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/index.js +18 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/client/Client.d.ts +12 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/client/Client.js +16 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/index.js +18 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.ts +33 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.js +143 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/identities/client/Client.d.ts +26 -25
- package/dist/cjs/management/api/resources/users/resources/identities/client/Client.js +26 -25
- package/dist/cjs/management/api/resources/users/resources/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/index.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +4 -4
- package/dist/cjs/management/api/types/types.d.ts +412 -51
- package/dist/cjs/management/api/types/types.js +94 -4
- package/dist/cjs/management/core/auth/AuthProvider.d.ts +1 -0
- package/dist/cjs/management/core/auth/AuthProvider.js +7 -0
- package/dist/cjs/management/core/auth/index.d.ts +1 -1
- package/dist/cjs/management/core/auth/index.js +3 -1
- package/dist/cjs/management/core/fetcher/requestWithRetries.js +4 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/BaseClient.d.mts +3 -0
- package/dist/esm/management/BaseClient.mjs +15 -0
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/requests/requests.d.mts +259 -0
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/actions/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/branding/resources/templates/client/Client.d.mts +16 -16
- package/dist/esm/management/api/resources/branding/resources/templates/client/Client.mjs +16 -16
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +12 -3
- package/dist/esm/management/api/resources/clients/client/Client.mjs +12 -3
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +17 -19
- package/dist/esm/management/api/resources/connections/client/Client.mjs +17 -19
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +19 -12
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +19 -12
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +3 -3
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +5 -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/roles/client/Client.d.mts +71 -0
- package/dist/esm/management/api/resources/groups/resources/roles/client/Client.mjs +233 -0
- package/dist/esm/management/api/resources/groups/resources/roles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/roles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/resources/roles/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/roles/index.mjs +1 -0
- package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.d.mts +2 -5
- package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.mjs +2 -5
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.d.mts +3 -3
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.d.mts +10 -12
- package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.mjs +10 -12
- package/dist/esm/management/api/resources/hooks/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/logs/client/Client.d.mts +17 -20
- package/dist/esm/management/api/resources/logs/client/Client.mjs +17 -20
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +14 -13
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +16 -13
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/organizations/resources/groups/client/Client.d.mts +35 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/client/Client.mjs +109 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/index.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/index.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/Client.d.mts +74 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/Client.mjs +236 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/groups/resources/roles/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +9 -12
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +11 -12
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.d.mts +36 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/Client.mjs +110 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/index.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/index.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/Client.d.mts +12 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/Client.mjs +12 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/index.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/index.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/Client.mjs +107 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/effectiveRoles/resources/sources/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/rateLimitPolicies/client/Client.d.mts +102 -0
- package/dist/esm/management/api/resources/rateLimitPolicies/client/Client.mjs +360 -0
- package/dist/esm/management/api/resources/rateLimitPolicies/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/rateLimitPolicies/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/rateLimitPolicies/index.d.mts +1 -0
- package/dist/esm/management/api/resources/rateLimitPolicies/index.mjs +1 -0
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +9 -6
- package/dist/esm/management/api/resources/roles/client/Client.mjs +11 -6
- package/dist/esm/management/api/resources/roles/resources/groups/client/Client.d.mts +71 -0
- package/dist/esm/management/api/resources/roles/resources/groups/client/Client.mjs +233 -0
- package/dist/esm/management/api/resources/roles/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/roles/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/roles/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/roles/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/roles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/roles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +11 -13
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -13
- package/dist/esm/management/api/resources/rules/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/rules/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/userBlocks/client/Client.d.mts +6 -6
- package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +6 -6
- package/dist/esm/management/api/resources/users/client/Client.d.mts +82 -51
- package/dist/esm/management/api/resources/users/client/Client.mjs +86 -51
- package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/client/Client.d.mts +37 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/client/Client.mjs +114 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/index.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/index.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/client/Client.d.mts +12 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/client/Client.mjs +12 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/index.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/index.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/Client.d.mts +35 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/Client.mjs +111 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectivePermissions/resources/sources/resources/roles/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/Client.d.mts +35 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/Client.mjs +109 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/index.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/index.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/client/Client.d.mts +12 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/client/Client.mjs +12 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/index.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/index.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.d.mts +33 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/Client.mjs +106 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/effectiveRoles/resources/sources/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/identities/client/Client.d.mts +26 -25
- package/dist/esm/management/api/resources/users/resources/identities/client/Client.mjs +26 -25
- package/dist/esm/management/api/resources/users/resources/index.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/index.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +4 -4
- package/dist/esm/management/api/types/types.d.mts +412 -51
- package/dist/esm/management/api/types/types.mjs +91 -1
- package/dist/esm/management/core/auth/AuthProvider.d.mts +1 -0
- package/dist/esm/management/core/auth/AuthProvider.mjs +6 -1
- package/dist/esm/management/core/auth/index.d.mts +1 -1
- package/dist/esm/management/core/auth/index.mjs +1 -0
- package/dist/esm/management/core/fetcher/requestWithRetries.mjs +4 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +3 -3
- package/reference.md +3564 -1868
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.actions = void 0;
|
|
39
|
+
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.rateLimitPolicies = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions/index.js"));
|
|
41
41
|
exports.anomaly = __importStar(require("./anomaly/index.js"));
|
|
42
42
|
exports.attackProtection = __importStar(require("./attackProtection/index.js"));
|
|
@@ -64,6 +64,7 @@ exports.logStreams = __importStar(require("./logStreams/index.js"));
|
|
|
64
64
|
exports.networkAcls = __importStar(require("./networkAcls/index.js"));
|
|
65
65
|
exports.organizations = __importStar(require("./organizations/index.js"));
|
|
66
66
|
exports.prompts = __importStar(require("./prompts/index.js"));
|
|
67
|
+
exports.rateLimitPolicies = __importStar(require("./rateLimitPolicies/index.js"));
|
|
67
68
|
exports.refreshTokens = __importStar(require("./refreshTokens/index.js"));
|
|
68
69
|
exports.resourceServers = __importStar(require("./resourceServers/index.js"));
|
|
69
70
|
exports.riskAssessments = __importStar(require("./riskAssessments/index.js"));
|
package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class VerificationEmailClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<VerificationEmailClient.Options>;
|
|
12
12
|
constructor(options: VerificationEmailClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Send an email to the specified user that asks them to click a link to
|
|
14
|
+
* Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email).
|
|
15
15
|
*
|
|
16
16
|
* Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent.
|
|
17
17
|
*
|
|
@@ -56,7 +56,7 @@ class VerificationEmailClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Send an email to the specified user that asks them to click a link to
|
|
59
|
+
* Send an email to the specified user that asks them to click a link to [verify their email address](https://auth0.com/docs/email/custom#verification-email).
|
|
60
60
|
*
|
|
61
61
|
* Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent.
|
|
62
62
|
*
|
|
@@ -13,33 +13,30 @@ export declare class LogsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified).
|
|
15
15
|
*
|
|
16
|
-
* Set custom search criteria using the
|
|
16
|
+
* Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_).
|
|
17
17
|
*
|
|
18
|
-
* For more information on all possible event types, their respective acronyms, and descriptions, see
|
|
18
|
+
* For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes).
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* **To set custom search criteria, use the following parameters:**
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li>
|
|
30
|
-
* </ul>
|
|
22
|
+
* - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax)
|
|
23
|
+
* - **page:** Page index of the results to return. First page is 0.
|
|
24
|
+
* - **per_page:** Number of results per page.
|
|
25
|
+
* - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
|
|
26
|
+
* - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
|
|
27
|
+
* - **include_fields:** Whether specified fields are to be included (true) or excluded (false).
|
|
28
|
+
* - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination)
|
|
31
29
|
*
|
|
32
|
-
* For more information on the list of fields that can be used in
|
|
30
|
+
* For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields).
|
|
33
31
|
*
|
|
34
|
-
* Auth0
|
|
32
|
+
* Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint).
|
|
35
33
|
*
|
|
36
|
-
*
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li>
|
|
39
|
-
* <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li>
|
|
40
|
-
* </ul>
|
|
34
|
+
* **To search from a checkpoint log ID, use the following parameters:**
|
|
41
35
|
*
|
|
42
|
-
*
|
|
36
|
+
* - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored.
|
|
37
|
+
* - **take:** Number of entries to retrieve when using the `from` parameter.
|
|
38
|
+
*
|
|
39
|
+
* **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed.
|
|
43
40
|
*
|
|
44
41
|
* @param {Management.ListLogsRequestParameters} request
|
|
45
42
|
* @param {LogsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -58,33 +58,30 @@ class LogsClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified).
|
|
60
60
|
*
|
|
61
|
-
* Set custom search criteria using the
|
|
61
|
+
* Set custom search criteria using the `q` parameter, or search from a specific log ID (_"search from checkpoint"_).
|
|
62
62
|
*
|
|
63
|
-
* For more information on all possible event types, their respective acronyms, and descriptions, see
|
|
63
|
+
* For more information on all possible event types, their respective acronyms, and descriptions, see [Log Event Type Codes](https://auth0.com/docs/logs/log-event-type-codes).
|
|
64
64
|
*
|
|
65
|
-
*
|
|
65
|
+
* **To set custom search criteria, use the following parameters:**
|
|
66
66
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li>
|
|
75
|
-
* </ul>
|
|
67
|
+
* - **q:** Search Criteria using [Query String Syntax](https://auth0.com/docs/logs/log-search-query-syntax)
|
|
68
|
+
* - **page:** Page index of the results to return. First page is 0.
|
|
69
|
+
* - **per_page:** Number of results per page.
|
|
70
|
+
* - **sort:** Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
|
|
71
|
+
* - **fields:** Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
|
|
72
|
+
* - **include_fields:** Whether specified fields are to be included (true) or excluded (false).
|
|
73
|
+
* - **include_totals:** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). **Deprecated:** this field is deprecated and should be removed from use. See [Search Engine V3 Breaking Changes](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination)
|
|
76
74
|
*
|
|
77
|
-
* For more information on the list of fields that can be used in
|
|
75
|
+
* For more information on the list of fields that can be used in `fields` and `sort`, see [Searchable Fields](https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields).
|
|
78
76
|
*
|
|
79
|
-
* Auth0
|
|
77
|
+
* Auth0 [limits the number of logs](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations) you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the [get logs by checkpoint method](https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint).
|
|
80
78
|
*
|
|
81
|
-
*
|
|
82
|
-
* <ul>
|
|
83
|
-
* <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li>
|
|
84
|
-
* <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li>
|
|
85
|
-
* </ul>
|
|
79
|
+
* **To search from a checkpoint log ID, use the following parameters:**
|
|
86
80
|
*
|
|
87
|
-
*
|
|
81
|
+
* - **from:** Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the `take` parameter. If you use `from` at the same time as `q`, `from` takes precedence and `q` is ignored.
|
|
82
|
+
* - **take:** Number of entries to retrieve when using the `from` parameter.
|
|
83
|
+
*
|
|
84
|
+
* **Important:** When fetching logs from a checkpoint log ID, any parameter other than `from` and `take` will be ignored, and date ordering is not guaranteed.
|
|
88
85
|
*
|
|
89
86
|
* @param {Management.ListLogsRequestParameters} request
|
|
90
87
|
* @param {LogsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6,6 +6,7 @@ import { ClientGrantsClient } from "../resources/clientGrants/client/Client.js";
|
|
|
6
6
|
import { ConnectionsClient } from "../resources/connections/client/Client.js";
|
|
7
7
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.js";
|
|
8
8
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.js";
|
|
9
|
+
import { GroupsClient } from "../resources/groups/client/Client.js";
|
|
9
10
|
import { InvitationsClient } from "../resources/invitations/client/Client.js";
|
|
10
11
|
import { MembersClient } from "../resources/members/client/Client.js";
|
|
11
12
|
export declare namespace OrganizationsClient {
|
|
@@ -21,6 +22,7 @@ export declare class OrganizationsClient {
|
|
|
21
22
|
protected _enabledConnections: EnabledConnectionsClient | undefined;
|
|
22
23
|
protected _invitations: InvitationsClient | undefined;
|
|
23
24
|
protected _members: MembersClient | undefined;
|
|
25
|
+
protected _groups: GroupsClient | undefined;
|
|
24
26
|
constructor(options: OrganizationsClient.Options);
|
|
25
27
|
get clientGrants(): ClientGrantsClient;
|
|
26
28
|
get connections(): ConnectionsClient;
|
|
@@ -28,26 +30,25 @@ export declare class OrganizationsClient {
|
|
|
28
30
|
get enabledConnections(): EnabledConnectionsClient;
|
|
29
31
|
get invitations(): InvitationsClient;
|
|
30
32
|
get members(): MembersClient;
|
|
33
|
+
get groups(): GroupsClient;
|
|
31
34
|
/**
|
|
32
35
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
33
36
|
*
|
|
34
37
|
* This endpoint supports two types of pagination:
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* </ul>
|
|
38
|
+
*
|
|
39
|
+
* - Offset pagination
|
|
40
|
+
* - Checkpoint pagination
|
|
39
41
|
*
|
|
40
42
|
* Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.
|
|
41
43
|
*
|
|
42
|
-
*
|
|
44
|
+
* **Checkpoint Pagination**
|
|
43
45
|
*
|
|
44
46
|
* To search by checkpoint, use the following parameters:
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li><code>from</code>: Optional id from which to start selection.</li>
|
|
47
|
-
* <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li>
|
|
48
|
-
* </ul>
|
|
49
47
|
*
|
|
50
|
-
*
|
|
48
|
+
* - `from`: Optional id from which to start selection.
|
|
49
|
+
* - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50.
|
|
50
|
+
*
|
|
51
|
+
* **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
|
|
51
52
|
*
|
|
52
53
|
* @param {Management.ListOrganizationsRequestParameters} request
|
|
53
54
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -66,7 +67,7 @@ export declare class OrganizationsClient {
|
|
|
66
67
|
*/
|
|
67
68
|
list(request?: Management.ListOrganizationsRequestParameters, requestOptions?: OrganizationsClient.RequestOptions): Promise<core.Page<Management.Organization, Management.ListOrganizationsPaginatedResponseContent>>;
|
|
68
69
|
/**
|
|
69
|
-
* Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review
|
|
70
|
+
* Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization).
|
|
70
71
|
*
|
|
71
72
|
* @param {Management.CreateOrganizationRequestContent} request
|
|
72
73
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -119,7 +120,7 @@ export declare class OrganizationsClient {
|
|
|
119
120
|
/**
|
|
120
121
|
* Remove an Organization from your tenant. This action cannot be undone.
|
|
121
122
|
*
|
|
122
|
-
*
|
|
123
|
+
* **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant.
|
|
123
124
|
*
|
|
124
125
|
* @param {string} id - Organization identifier.
|
|
125
126
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -136,7 +137,7 @@ export declare class OrganizationsClient {
|
|
|
136
137
|
delete(id: string, requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
137
138
|
private __delete;
|
|
138
139
|
/**
|
|
139
|
-
* Update the details of a specific
|
|
140
|
+
* Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata.
|
|
140
141
|
*
|
|
141
142
|
* @param {string} id - ID of the organization to update.
|
|
142
143
|
* @param {Management.UpdateOrganizationRequestContent} request
|
|
@@ -55,8 +55,9 @@ const Client_js_1 = require("../resources/clientGrants/client/Client.js");
|
|
|
55
55
|
const Client_js_2 = require("../resources/connections/client/Client.js");
|
|
56
56
|
const Client_js_3 = require("../resources/discoveryDomains/client/Client.js");
|
|
57
57
|
const Client_js_4 = require("../resources/enabledConnections/client/Client.js");
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
59
|
-
const Client_js_6 = require("../resources/
|
|
58
|
+
const Client_js_5 = require("../resources/groups/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/invitations/client/Client.js");
|
|
60
|
+
const Client_js_7 = require("../resources/members/client/Client.js");
|
|
60
61
|
class OrganizationsClient {
|
|
61
62
|
constructor(options) {
|
|
62
63
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -79,32 +80,34 @@ class OrganizationsClient {
|
|
|
79
80
|
}
|
|
80
81
|
get invitations() {
|
|
81
82
|
var _a;
|
|
82
|
-
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new
|
|
83
|
+
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_6.InvitationsClient(this._options)));
|
|
83
84
|
}
|
|
84
85
|
get members() {
|
|
85
86
|
var _a;
|
|
86
|
-
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new
|
|
87
|
+
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_7.MembersClient(this._options)));
|
|
88
|
+
}
|
|
89
|
+
get groups() {
|
|
90
|
+
var _a;
|
|
91
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_5.GroupsClient(this._options)));
|
|
87
92
|
}
|
|
88
93
|
/**
|
|
89
94
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
|
90
95
|
*
|
|
91
96
|
* This endpoint supports two types of pagination:
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* </ul>
|
|
97
|
+
*
|
|
98
|
+
* - Offset pagination
|
|
99
|
+
* - Checkpoint pagination
|
|
96
100
|
*
|
|
97
101
|
* Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.
|
|
98
102
|
*
|
|
99
|
-
*
|
|
103
|
+
* **Checkpoint Pagination**
|
|
100
104
|
*
|
|
101
105
|
* To search by checkpoint, use the following parameters:
|
|
102
|
-
* <ul>
|
|
103
|
-
* <li><code>from</code>: Optional id from which to start selection.</li>
|
|
104
|
-
* <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li>
|
|
105
|
-
* </ul>
|
|
106
106
|
*
|
|
107
|
-
*
|
|
107
|
+
* - `from`: Optional id from which to start selection.
|
|
108
|
+
* - `take`: The total number of entries to retrieve when using the `from` parameter. Defaults to 50.
|
|
109
|
+
*
|
|
110
|
+
* **Note**: The first time you call this endpoint using checkpoint pagination, omit the `from` parameter. If there are more results, a `next` value is included in the response. You can use this for subsequent API calls. When `next` is no longer included in the response, no pages are remaining.
|
|
108
111
|
*
|
|
109
112
|
* @param {Management.ListOrganizationsRequestParameters} request
|
|
110
113
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -187,7 +190,7 @@ class OrganizationsClient {
|
|
|
187
190
|
});
|
|
188
191
|
}
|
|
189
192
|
/**
|
|
190
|
-
* Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review
|
|
193
|
+
* Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review [Create Your First Organization](https://auth0.com/docs/manage-users/organizations/create-first-organization).
|
|
191
194
|
*
|
|
192
195
|
* @param {Management.CreateOrganizationRequestContent} request
|
|
193
196
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -377,7 +380,7 @@ class OrganizationsClient {
|
|
|
377
380
|
/**
|
|
378
381
|
* Remove an Organization from your tenant. This action cannot be undone.
|
|
379
382
|
*
|
|
380
|
-
*
|
|
383
|
+
* **Note**: Members are automatically disassociated from an Organization when it is deleted. However, this action does **not** delete these users from your tenant.
|
|
381
384
|
*
|
|
382
385
|
* @param {string} id - Organization identifier.
|
|
383
386
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -437,7 +440,7 @@ class OrganizationsClient {
|
|
|
437
440
|
});
|
|
438
441
|
}
|
|
439
442
|
/**
|
|
440
|
-
* Update the details of a specific
|
|
443
|
+
* Update the details of a specific [Organization](https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations), such as name and display name, branding options, and metadata.
|
|
441
444
|
*
|
|
442
445
|
* @param {string} id - ID of the organization to update.
|
|
443
446
|
* @param {Management.UpdateOrganizationRequestContent} request
|
|
@@ -108,7 +108,7 @@ export declare class DiscoveryDomainsClient {
|
|
|
108
108
|
delete(id: string, discovery_domain_id: string, requestOptions?: DiscoveryDomainsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
109
109
|
private __delete;
|
|
110
110
|
/**
|
|
111
|
-
* Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The
|
|
111
|
+
* Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`).
|
|
112
112
|
*
|
|
113
113
|
* @param {string} id - ID of the organization.
|
|
114
114
|
* @param {string} discovery_domain_id - ID of the discovery domain to update.
|
package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js
CHANGED
|
@@ -402,7 +402,7 @@ class DiscoveryDomainsClient {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
|
-
* Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The
|
|
405
|
+
* Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The `status` field must be either `pending` or `verified`. The `use_for_organization_discovery` field can be `true` or `false` (default: `true`).
|
|
406
406
|
*
|
|
407
407
|
* @param {string} id - ID of the organization.
|
|
408
408
|
* @param {string} discovery_domain_id - ID of the discovery domain to update.
|
|
@@ -33,7 +33,7 @@ export declare class EnabledConnectionsClient {
|
|
|
33
33
|
/**
|
|
34
34
|
* Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.
|
|
37
37
|
*
|
|
38
38
|
* @param {string} id - Organization identifier.
|
|
39
39
|
* @param {Management.AddOrganizationConnectionRequestContent} request
|
|
@@ -70,7 +70,7 @@ export declare class EnabledConnectionsClient {
|
|
|
70
70
|
/**
|
|
71
71
|
* Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
* **Note**: This action does not remove the connection from your tenant.
|
|
74
74
|
*
|
|
75
75
|
* @param {string} id - Organization identifier.
|
|
76
76
|
* @param {string} connectionId - Connection identifier.
|
|
@@ -144,7 +144,7 @@ class EnabledConnectionsClient {
|
|
|
144
144
|
/**
|
|
145
145
|
* Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.
|
|
146
146
|
*
|
|
147
|
-
*
|
|
147
|
+
* [Connections](https://auth0.com/docs/authenticate/identity-providers) represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.
|
|
148
148
|
*
|
|
149
149
|
* @param {string} id - Organization identifier.
|
|
150
150
|
* @param {Management.AddOrganizationConnectionRequestContent} request
|
|
@@ -270,7 +270,7 @@ class EnabledConnectionsClient {
|
|
|
270
270
|
/**
|
|
271
271
|
* Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.
|
|
272
272
|
*
|
|
273
|
-
*
|
|
273
|
+
* **Note**: This action does not remove the connection from your tenant.
|
|
274
274
|
*
|
|
275
275
|
* @param {string} id - Organization identifier.
|
|
276
276
|
* @param {string} connectionId - Connection identifier.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../../../index.js";
|
|
5
|
+
import { RolesClient } from "../resources/roles/client/Client.js";
|
|
6
|
+
export declare namespace GroupsClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class GroupsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
|
|
13
|
+
protected _roles: RolesClient | undefined;
|
|
14
|
+
constructor(options: GroupsClient.Options);
|
|
15
|
+
get roles(): RolesClient;
|
|
16
|
+
/**
|
|
17
|
+
* Lists the groups that are assigned to the specified organization.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} organization_id - ID of the organization
|
|
20
|
+
* @param {Management.ListOrganizationGroupsRequestParameters} request
|
|
21
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
|
+
*
|
|
23
|
+
* @throws {@link Management.BadRequestError}
|
|
24
|
+
* @throws {@link Management.UnauthorizedError}
|
|
25
|
+
* @throws {@link Management.ForbiddenError}
|
|
26
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.organizations.groups.list("organization_id", {
|
|
30
|
+
* from: "from",
|
|
31
|
+
* take: 1
|
|
32
|
+
* })
|
|
33
|
+
*/
|
|
34
|
+
list(organization_id: string, request?: Management.ListOrganizationGroupsRequestParameters, requestOptions?: GroupsClient.RequestOptions): Promise<core.Page<Management.Group, Management.ListOrganizationGroupsResponseContent>>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.GroupsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
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");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const Management = __importStar(require("../../../../../index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/roles/client/Client.js");
|
|
55
|
+
class GroupsClient {
|
|
56
|
+
constructor(options) {
|
|
57
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
|
+
}
|
|
59
|
+
get roles() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_1.RolesClient(this._options)));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Lists the groups that are assigned to the specified organization.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} organization_id - ID of the organization
|
|
67
|
+
* @param {Management.ListOrganizationGroupsRequestParameters} request
|
|
68
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link Management.BadRequestError}
|
|
71
|
+
* @throws {@link Management.UnauthorizedError}
|
|
72
|
+
* @throws {@link Management.ForbiddenError}
|
|
73
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.organizations.groups.list("organization_id", {
|
|
77
|
+
* from: "from",
|
|
78
|
+
* take: 1
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
list(organization_id_1) {
|
|
82
|
+
return __awaiter(this, arguments, void 0, function* (organization_id, request = {}, requestOptions) {
|
|
83
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
85
|
+
const { from: from_, take = 50 } = request;
|
|
86
|
+
const _queryParams = {
|
|
87
|
+
from: from_,
|
|
88
|
+
take,
|
|
89
|
+
};
|
|
90
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
91
|
+
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);
|
|
92
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
93
|
+
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, `organizations/${core.url.encodePathParam(organization_id)}/groups`),
|
|
94
|
+
method: "GET",
|
|
95
|
+
headers: _headers,
|
|
96
|
+
queryString: core.url
|
|
97
|
+
.queryBuilder()
|
|
98
|
+
.addMany(_queryParams)
|
|
99
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
100
|
+
.build(),
|
|
101
|
+
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,
|
|
102
|
+
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,
|
|
103
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
104
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
105
|
+
logging: this._options.logging,
|
|
106
|
+
});
|
|
107
|
+
if (_response.ok) {
|
|
108
|
+
return {
|
|
109
|
+
data: _response.body,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
if (_response.error.reason === "status-code") {
|
|
114
|
+
switch (_response.error.statusCode) {
|
|
115
|
+
case 400:
|
|
116
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 401:
|
|
118
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 403:
|
|
120
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 429:
|
|
122
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
123
|
+
default:
|
|
124
|
+
throw new errors.ManagementError({
|
|
125
|
+
statusCode: _response.error.statusCode,
|
|
126
|
+
body: _response.error.body,
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/organizations/{organization_id}/groups");
|
|
132
|
+
}));
|
|
133
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
134
|
+
return new core.Page({
|
|
135
|
+
response: dataWithRawResponse.data,
|
|
136
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
137
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next) != null && !(typeof (response === null || response === void 0 ? void 0 : response.next) === "string" && (response === null || response === void 0 ? void 0 : response.next) === ""),
|
|
138
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.groups) !== null && _a !== void 0 ? _a : []; },
|
|
139
|
+
loadPage: (response) => {
|
|
140
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.GroupsClient = GroupsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as roles from "./roles/index.js";
|