auth0 5.8.0 → 5.9.1
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/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +67 -62
- package/dist/cjs/management/api/errors/GoneError.d.ts +5 -0
- package/dist/cjs/management/api/errors/GoneError.js +54 -0
- package/dist/cjs/management/api/errors/index.d.ts +1 -0
- package/dist/cjs/management/api/errors/index.js +1 -0
- package/dist/cjs/management/api/requests/requests.d.ts +55 -9
- package/dist/cjs/management/api/resources/actions/client/Client.js +15 -7
- package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +15 -7
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/branding/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +11 -7
- package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.js +5 -5
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/clients/client/Client.js +16 -8
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +6 -1
- package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.js +5 -5
- package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -7
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/client/Client.js +15 -6
- package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +16 -8
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -9
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +8 -4
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/events/client/Client.d.ts +18 -0
- package/dist/cjs/management/api/resources/events/client/Client.js +135 -0
- package/dist/cjs/management/api/resources/events/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/events/client/index.js +2 -0
- package/dist/cjs/management/api/resources/events/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/events/index.js +17 -0
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +4 -1
- package/dist/cjs/management/api/resources/flows/client/Client.js +17 -6
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -4
- package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +5 -2
- package/dist/cjs/management/api/resources/forms/client/Client.js +18 -7
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +10 -4
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +8 -8
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.js +12 -12
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.js +6 -6
- package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/hooks/client/Client.js +13 -5
- package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.js +4 -4
- 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/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +11 -7
- package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/logStreams/client/Client.js +5 -5
- package/dist/cjs/management/api/resources/logs/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/organizations/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +8 -3
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +10 -6
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +12 -4
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/prompts/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +8 -4
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +17 -0
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +71 -4
- package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +14 -5
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/roles/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/rules/client/Client.js +13 -5
- package/dist/cjs/management/api/resources/rulesConfigs/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/sessions/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/stats/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/supplementalSignals/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/tickets/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +12 -8
- package/dist/cjs/management/api/resources/userBlocks/client/Client.js +16 -4
- package/dist/cjs/management/api/resources/userGrants/client/Client.js +11 -3
- package/dist/cjs/management/api/resources/users/client/Client.js +20 -8
- package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +11 -7
- package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/identities/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +5 -1
- 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.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +7 -3
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +10 -6
- package/dist/cjs/management/api/types/types.d.ts +3454 -133
- package/dist/cjs/management/api/types/types.js +614 -11
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +6 -0
- package/dist/cjs/management/core/fetcher/Fetcher.js +9 -8
- package/dist/cjs/management/core/index.d.ts +1 -0
- package/dist/cjs/management/core/index.js +1 -0
- package/dist/cjs/management/core/stream/Stream.d.ts +56 -0
- package/dist/cjs/management/core/stream/Stream.js +267 -0
- package/dist/cjs/management/core/stream/index.d.ts +1 -0
- package/dist/cjs/management/core/stream/index.js +5 -0
- package/dist/cjs/management/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/cjs/management/core/url/QueryStringBuilder.js +83 -0
- package/dist/cjs/management/core/url/index.d.ts +1 -0
- package/dist/cjs/management/core/url/index.js +3 -1
- package/dist/cjs/management/core/url/qs.d.ts +2 -1
- package/dist/cjs/management/core/url/qs.js +24 -12
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/errors/GoneError.d.mts +5 -0
- package/dist/esm/management/api/errors/GoneError.mjs +17 -0
- package/dist/esm/management/api/errors/index.d.mts +1 -0
- package/dist/esm/management/api/errors/index.mjs +1 -0
- package/dist/esm/management/api/requests/requests.d.mts +55 -9
- package/dist/esm/management/api/resources/actions/client/Client.mjs +15 -7
- package/dist/esm/management/api/resources/actions/resources/executions/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +15 -7
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/branding/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +11 -7
- package/dist/esm/management/api/resources/branding/resources/templates/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/branding/resources/themes/client/Client.mjs +5 -5
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/clients/client/Client.mjs +16 -8
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +6 -1
- package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.mjs +5 -5
- package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -7
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/client/Client.mjs +15 -6
- package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +16 -8
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -9
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +8 -4
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/events/client/Client.d.mts +18 -0
- package/dist/esm/management/api/resources/events/client/Client.mjs +98 -0
- package/dist/esm/management/api/resources/events/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/events/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/events/index.d.mts +1 -0
- package/dist/esm/management/api/resources/events/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +4 -1
- package/dist/esm/management/api/resources/flows/client/Client.mjs +17 -6
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -4
- package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +5 -2
- package/dist/esm/management/api/resources/forms/client/Client.mjs +18 -7
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +10 -4
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +8 -8
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.mjs +12 -12
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.mjs +6 -6
- package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/hooks/client/Client.mjs +13 -5
- package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.mjs +4 -4
- 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/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +11 -7
- package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/logStreams/client/Client.mjs +5 -5
- package/dist/esm/management/api/resources/logs/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +8 -3
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +10 -6
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +12 -4
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/prompts/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +8 -4
- package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +17 -0
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +71 -4
- package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +14 -5
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/roles/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/rules/client/Client.mjs +13 -5
- package/dist/esm/management/api/resources/rulesConfigs/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/sessions/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/stats/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/supplementalSignals/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/tickets/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +12 -8
- package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +16 -4
- package/dist/esm/management/api/resources/userGrants/client/Client.mjs +11 -3
- package/dist/esm/management/api/resources/users/client/Client.mjs +20 -8
- package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +11 -7
- package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/identities/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +5 -1
- 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.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +7 -3
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +10 -6
- package/dist/esm/management/api/types/types.d.mts +3454 -133
- package/dist/esm/management/api/types/types.mjs +605 -5
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +6 -0
- package/dist/esm/management/core/fetcher/Fetcher.mjs +9 -8
- package/dist/esm/management/core/index.d.mts +1 -0
- package/dist/esm/management/core/index.mjs +1 -0
- package/dist/esm/management/core/stream/Stream.d.mts +56 -0
- package/dist/esm/management/core/stream/Stream.mjs +262 -0
- package/dist/esm/management/core/stream/index.d.mts +1 -0
- package/dist/esm/management/core/stream/index.mjs +1 -0
- package/dist/esm/management/core/url/QueryStringBuilder.d.mts +47 -0
- package/dist/esm/management/core/url/QueryStringBuilder.mjs +80 -0
- package/dist/esm/management/core/url/index.d.mts +1 -0
- package/dist/esm/management/core/url/index.mjs +1 -0
- package/dist/esm/management/core/url/qs.d.mts +2 -1
- package/dist/esm/management/core/url/qs.mjs +24 -12
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +164 -9
package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js
CHANGED
|
@@ -90,7 +90,11 @@ class ConnectionsClient {
|
|
|
90
90
|
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(id)}/connections`),
|
|
91
91
|
method: "GET",
|
|
92
92
|
headers: _headers,
|
|
93
|
-
|
|
93
|
+
queryString: core.url
|
|
94
|
+
.queryBuilder()
|
|
95
|
+
.addMany(_queryParams)
|
|
96
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
97
|
+
.build(),
|
|
94
98
|
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,
|
|
95
99
|
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,
|
|
96
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -166,7 +170,7 @@ class ConnectionsClient {
|
|
|
166
170
|
method: "POST",
|
|
167
171
|
headers: _headers,
|
|
168
172
|
contentType: "application/json",
|
|
169
|
-
|
|
173
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
170
174
|
requestType: "json",
|
|
171
175
|
body: request,
|
|
172
176
|
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,
|
|
@@ -229,7 +233,7 @@ class ConnectionsClient {
|
|
|
229
233
|
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(id)}/connections/${core.url.encodePathParam(connection_id)}`),
|
|
230
234
|
method: "GET",
|
|
231
235
|
headers: _headers,
|
|
232
|
-
|
|
236
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
233
237
|
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,
|
|
234
238
|
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,
|
|
235
239
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -287,7 +291,7 @@ class ConnectionsClient {
|
|
|
287
291
|
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(id)}/connections/${core.url.encodePathParam(connection_id)}`),
|
|
288
292
|
method: "DELETE",
|
|
289
293
|
headers: _headers,
|
|
290
|
-
|
|
294
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
291
295
|
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,
|
|
292
296
|
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,
|
|
293
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -343,7 +347,7 @@ class ConnectionsClient {
|
|
|
343
347
|
method: "PATCH",
|
|
344
348
|
headers: _headers,
|
|
345
349
|
contentType: "application/json",
|
|
346
|
-
|
|
350
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
347
351
|
requestType: "json",
|
|
348
352
|
body: request,
|
|
349
353
|
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,
|
package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js
CHANGED
|
@@ -90,7 +90,11 @@ class DiscoveryDomainsClient {
|
|
|
90
90
|
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(id)}/discovery-domains`),
|
|
91
91
|
method: "GET",
|
|
92
92
|
headers: _headers,
|
|
93
|
-
|
|
93
|
+
queryString: core.url
|
|
94
|
+
.queryBuilder()
|
|
95
|
+
.addMany(_queryParams)
|
|
96
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
97
|
+
.build(),
|
|
94
98
|
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,
|
|
95
99
|
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,
|
|
96
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -169,7 +173,7 @@ class DiscoveryDomainsClient {
|
|
|
169
173
|
method: "POST",
|
|
170
174
|
headers: _headers,
|
|
171
175
|
contentType: "application/json",
|
|
172
|
-
|
|
176
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
173
177
|
requestType: "json",
|
|
174
178
|
body: request,
|
|
175
179
|
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,
|
|
@@ -238,7 +242,7 @@ class DiscoveryDomainsClient {
|
|
|
238
242
|
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(id)}/discovery-domains/name/${core.url.encodePathParam(discovery_domain)}`),
|
|
239
243
|
method: "GET",
|
|
240
244
|
headers: _headers,
|
|
241
|
-
|
|
245
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
242
246
|
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,
|
|
243
247
|
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,
|
|
244
248
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -303,7 +307,7 @@ class DiscoveryDomainsClient {
|
|
|
303
307
|
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(id)}/discovery-domains/${core.url.encodePathParam(discovery_domain_id)}`),
|
|
304
308
|
method: "GET",
|
|
305
309
|
headers: _headers,
|
|
306
|
-
|
|
310
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
307
311
|
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,
|
|
308
312
|
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,
|
|
309
313
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -366,7 +370,7 @@ class DiscoveryDomainsClient {
|
|
|
366
370
|
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(id)}/discovery-domains/${core.url.encodePathParam(discovery_domain_id)}`),
|
|
367
371
|
method: "DELETE",
|
|
368
372
|
headers: _headers,
|
|
369
|
-
|
|
373
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
370
374
|
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,
|
|
371
375
|
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,
|
|
372
376
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -424,7 +428,7 @@ class DiscoveryDomainsClient {
|
|
|
424
428
|
method: "PATCH",
|
|
425
429
|
headers: _headers,
|
|
426
430
|
contentType: "application/json",
|
|
427
|
-
|
|
431
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
428
432
|
requestType: "json",
|
|
429
433
|
body: request,
|
|
430
434
|
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,
|
|
@@ -90,7 +90,11 @@ class EnabledConnectionsClient {
|
|
|
90
90
|
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(id)}/enabled_connections`),
|
|
91
91
|
method: "GET",
|
|
92
92
|
headers: _headers,
|
|
93
|
-
|
|
93
|
+
queryString: core.url
|
|
94
|
+
.queryBuilder()
|
|
95
|
+
.addMany(_queryParams)
|
|
96
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
97
|
+
.build(),
|
|
94
98
|
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,
|
|
95
99
|
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,
|
|
96
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -169,7 +173,7 @@ class EnabledConnectionsClient {
|
|
|
169
173
|
method: "POST",
|
|
170
174
|
headers: _headers,
|
|
171
175
|
contentType: "application/json",
|
|
172
|
-
|
|
176
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
173
177
|
requestType: "json",
|
|
174
178
|
body: request,
|
|
175
179
|
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,
|
|
@@ -231,7 +235,7 @@ class EnabledConnectionsClient {
|
|
|
231
235
|
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(id)}/enabled_connections/${core.url.encodePathParam(connectionId)}`),
|
|
232
236
|
method: "GET",
|
|
233
237
|
headers: _headers,
|
|
234
|
-
|
|
238
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
235
239
|
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,
|
|
236
240
|
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,
|
|
237
241
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -292,7 +296,7 @@ class EnabledConnectionsClient {
|
|
|
292
296
|
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(id)}/enabled_connections/${core.url.encodePathParam(connectionId)}`),
|
|
293
297
|
method: "DELETE",
|
|
294
298
|
headers: _headers,
|
|
295
|
-
|
|
299
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
296
300
|
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,
|
|
297
301
|
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
302
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -352,7 +356,7 @@ class EnabledConnectionsClient {
|
|
|
352
356
|
method: "PATCH",
|
|
353
357
|
headers: _headers,
|
|
354
358
|
contentType: "application/json",
|
|
355
|
-
|
|
359
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
356
360
|
requestType: "json",
|
|
357
361
|
body: request,
|
|
358
362
|
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,
|
package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js
CHANGED
|
@@ -97,7 +97,11 @@ class InvitationsClient {
|
|
|
97
97
|
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(id)}/invitations`),
|
|
98
98
|
method: "GET",
|
|
99
99
|
headers: _headers,
|
|
100
|
-
|
|
100
|
+
queryString: core.url
|
|
101
|
+
.queryBuilder()
|
|
102
|
+
.addMany(_queryParams)
|
|
103
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
104
|
+
.build(),
|
|
101
105
|
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
106
|
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
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -183,7 +187,7 @@ class InvitationsClient {
|
|
|
183
187
|
method: "POST",
|
|
184
188
|
headers: _headers,
|
|
185
189
|
contentType: "application/json",
|
|
186
|
-
|
|
190
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
187
191
|
requestType: "json",
|
|
188
192
|
body: request,
|
|
189
193
|
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,
|
|
@@ -256,7 +260,11 @@ class InvitationsClient {
|
|
|
256
260
|
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(id)}/invitations/${core.url.encodePathParam(invitation_id)}`),
|
|
257
261
|
method: "GET",
|
|
258
262
|
headers: _headers,
|
|
259
|
-
|
|
263
|
+
queryString: core.url
|
|
264
|
+
.queryBuilder()
|
|
265
|
+
.addMany(_queryParams)
|
|
266
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
267
|
+
.build(),
|
|
260
268
|
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,
|
|
261
269
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
262
270
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -317,7 +325,7 @@ class InvitationsClient {
|
|
|
317
325
|
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(id)}/invitations/${core.url.encodePathParam(invitation_id)}`),
|
|
318
326
|
method: "DELETE",
|
|
319
327
|
headers: _headers,
|
|
320
|
-
|
|
328
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
321
329
|
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,
|
|
322
330
|
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,
|
|
323
331
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -118,7 +118,11 @@ class MembersClient {
|
|
|
118
118
|
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(id)}/members`),
|
|
119
119
|
method: "GET",
|
|
120
120
|
headers: _headers,
|
|
121
|
-
|
|
121
|
+
queryString: core.url
|
|
122
|
+
.queryBuilder()
|
|
123
|
+
.addMany(_queryParams)
|
|
124
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
125
|
+
.build(),
|
|
122
126
|
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,
|
|
123
127
|
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,
|
|
124
128
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -195,7 +199,7 @@ class MembersClient {
|
|
|
195
199
|
method: "POST",
|
|
196
200
|
headers: _headers,
|
|
197
201
|
contentType: "application/json",
|
|
198
|
-
|
|
202
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
199
203
|
requestType: "json",
|
|
200
204
|
body: request,
|
|
201
205
|
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,
|
|
@@ -256,7 +260,7 @@ class MembersClient {
|
|
|
256
260
|
method: "DELETE",
|
|
257
261
|
headers: _headers,
|
|
258
262
|
contentType: "application/json",
|
|
259
|
-
|
|
263
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
260
264
|
requestType: "json",
|
|
261
265
|
body: request,
|
|
262
266
|
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,
|
|
@@ -93,7 +93,11 @@ class RolesClient {
|
|
|
93
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(id)}/members/${core.url.encodePathParam(user_id)}/roles`),
|
|
94
94
|
method: "GET",
|
|
95
95
|
headers: _headers,
|
|
96
|
-
|
|
96
|
+
queryString: core.url
|
|
97
|
+
.queryBuilder()
|
|
98
|
+
.addMany(_queryParams)
|
|
99
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
100
|
+
.build(),
|
|
97
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,
|
|
98
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,
|
|
99
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -174,7 +178,7 @@ class RolesClient {
|
|
|
174
178
|
method: "POST",
|
|
175
179
|
headers: _headers,
|
|
176
180
|
contentType: "application/json",
|
|
177
|
-
|
|
181
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
178
182
|
requestType: "json",
|
|
179
183
|
body: request,
|
|
180
184
|
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,
|
|
@@ -242,7 +246,7 @@ class RolesClient {
|
|
|
242
246
|
method: "DELETE",
|
|
243
247
|
headers: _headers,
|
|
244
248
|
contentType: "application/json",
|
|
245
|
-
|
|
249
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
246
250
|
requestType: "json",
|
|
247
251
|
body: request,
|
|
248
252
|
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,
|
|
@@ -94,7 +94,7 @@ class PromptsClient {
|
|
|
94
94
|
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, "prompts"),
|
|
95
95
|
method: "GET",
|
|
96
96
|
headers: _headers,
|
|
97
|
-
|
|
97
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
98
98
|
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,
|
|
99
99
|
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,
|
|
100
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -153,7 +153,7 @@ class PromptsClient {
|
|
|
153
153
|
method: "PATCH",
|
|
154
154
|
headers: _headers,
|
|
155
155
|
contentType: "application/json",
|
|
156
|
-
|
|
156
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
157
157
|
requestType: "json",
|
|
158
158
|
body: request,
|
|
159
159
|
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,
|
|
@@ -83,7 +83,7 @@ class CustomTextClient {
|
|
|
83
83
|
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, `prompts/${core.url.encodePathParam(prompt)}/custom-text/${core.url.encodePathParam(language)}`),
|
|
84
84
|
method: "GET",
|
|
85
85
|
headers: _headers,
|
|
86
|
-
|
|
86
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
87
87
|
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,
|
|
88
88
|
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,
|
|
89
89
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -150,7 +150,7 @@ class CustomTextClient {
|
|
|
150
150
|
method: "PUT",
|
|
151
151
|
headers: _headers,
|
|
152
152
|
contentType: "application/json",
|
|
153
|
-
|
|
153
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
154
154
|
requestType: "json",
|
|
155
155
|
body: request,
|
|
156
156
|
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,
|
|
@@ -82,7 +82,7 @@ class PartialsClient {
|
|
|
82
82
|
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, `prompts/${core.url.encodePathParam(prompt)}/partials`),
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: _headers,
|
|
85
|
-
|
|
85
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
86
86
|
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,
|
|
87
87
|
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,
|
|
88
88
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -148,7 +148,7 @@ class PartialsClient {
|
|
|
148
148
|
method: "PUT",
|
|
149
149
|
headers: _headers,
|
|
150
150
|
contentType: "application/json",
|
|
151
|
-
|
|
151
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
152
152
|
requestType: "json",
|
|
153
153
|
body: request,
|
|
154
154
|
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,
|
|
@@ -100,7 +100,11 @@ class RenderingClient {
|
|
|
100
100
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "prompts/rendering"),
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: _headers,
|
|
103
|
-
|
|
103
|
+
queryString: core.url
|
|
104
|
+
.queryBuilder()
|
|
105
|
+
.addMany(_queryParams)
|
|
106
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
107
|
+
.build(),
|
|
104
108
|
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,
|
|
105
109
|
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,
|
|
106
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -182,7 +186,7 @@ class RenderingClient {
|
|
|
182
186
|
method: "PATCH",
|
|
183
187
|
headers: _headers,
|
|
184
188
|
contentType: "application/json",
|
|
185
|
-
|
|
189
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
186
190
|
requestType: "json",
|
|
187
191
|
body: request,
|
|
188
192
|
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,
|
|
@@ -249,7 +253,7 @@ class RenderingClient {
|
|
|
249
253
|
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, `prompts/${core.url.encodePathParam(prompt)}/screen/${core.url.encodePathParam(screen)}/rendering`),
|
|
250
254
|
method: "GET",
|
|
251
255
|
headers: _headers,
|
|
252
|
-
|
|
256
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
253
257
|
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,
|
|
254
258
|
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,
|
|
255
259
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -314,7 +318,7 @@ class RenderingClient {
|
|
|
314
318
|
method: "PATCH",
|
|
315
319
|
headers: _headers,
|
|
316
320
|
contentType: "application/json",
|
|
317
|
-
|
|
321
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
318
322
|
requestType: "json",
|
|
319
323
|
body: request,
|
|
320
324
|
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,
|
|
@@ -33,12 +33,29 @@ export declare class RefreshTokensClient {
|
|
|
33
33
|
* })
|
|
34
34
|
*/
|
|
35
35
|
list(request: Management.GetRefreshTokensRequestParameters, requestOptions?: RefreshTokensClient.RequestOptions): Promise<core.Page<Management.RefreshTokenResponseContent, Management.GetRefreshTokensPaginatedResponseContent>>;
|
|
36
|
+
/**
|
|
37
|
+
* Revoke refresh tokens in bulk by ID list, user, user+client, or client.
|
|
38
|
+
*
|
|
39
|
+
* @param {Management.RevokeRefreshTokensRequestContent} request
|
|
40
|
+
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link Management.BadRequestError}
|
|
43
|
+
* @throws {@link Management.UnauthorizedError}
|
|
44
|
+
* @throws {@link Management.ForbiddenError}
|
|
45
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.refreshTokens.revoke()
|
|
49
|
+
*/
|
|
50
|
+
revoke(request?: Management.RevokeRefreshTokensRequestContent, requestOptions?: RefreshTokensClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
51
|
+
private __revoke;
|
|
36
52
|
/**
|
|
37
53
|
* Retrieve refresh token information.
|
|
38
54
|
*
|
|
39
55
|
* @param {string} id - ID refresh token to retrieve
|
|
40
56
|
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
57
|
*
|
|
58
|
+
* @throws {@link Management.BadRequestError}
|
|
42
59
|
* @throws {@link Management.UnauthorizedError}
|
|
43
60
|
* @throws {@link Management.ForbiddenError}
|
|
44
61
|
* @throws {@link Management.NotFoundError}
|
|
@@ -96,7 +96,11 @@ class RefreshTokensClient {
|
|
|
96
96
|
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, "refresh-tokens"),
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: _headers,
|
|
99
|
-
|
|
99
|
+
queryString: core.url
|
|
100
|
+
.queryBuilder()
|
|
101
|
+
.addMany(_queryParams)
|
|
102
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
103
|
+
.build(),
|
|
100
104
|
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,
|
|
101
105
|
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,
|
|
102
106
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -143,12 +147,73 @@ class RefreshTokensClient {
|
|
|
143
147
|
});
|
|
144
148
|
});
|
|
145
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Revoke refresh tokens in bulk by ID list, user, user+client, or client.
|
|
152
|
+
*
|
|
153
|
+
* @param {Management.RevokeRefreshTokensRequestContent} request
|
|
154
|
+
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link Management.BadRequestError}
|
|
157
|
+
* @throws {@link Management.UnauthorizedError}
|
|
158
|
+
* @throws {@link Management.ForbiddenError}
|
|
159
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.refreshTokens.revoke()
|
|
163
|
+
*/
|
|
164
|
+
revoke(request = {}, requestOptions) {
|
|
165
|
+
return core.HttpResponsePromise.fromPromise(this.__revoke(request, requestOptions));
|
|
166
|
+
}
|
|
167
|
+
__revoke() {
|
|
168
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
169
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
170
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
171
|
+
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);
|
|
172
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
173
|
+
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, "refresh-tokens/revoke"),
|
|
174
|
+
method: "POST",
|
|
175
|
+
headers: _headers,
|
|
176
|
+
contentType: "application/json",
|
|
177
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
178
|
+
requestType: "json",
|
|
179
|
+
body: request,
|
|
180
|
+
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,
|
|
181
|
+
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,
|
|
182
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
183
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
184
|
+
logging: this._options.logging,
|
|
185
|
+
});
|
|
186
|
+
if (_response.ok) {
|
|
187
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
188
|
+
}
|
|
189
|
+
if (_response.error.reason === "status-code") {
|
|
190
|
+
switch (_response.error.statusCode) {
|
|
191
|
+
case 400:
|
|
192
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
193
|
+
case 401:
|
|
194
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
195
|
+
case 403:
|
|
196
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
197
|
+
case 429:
|
|
198
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
199
|
+
default:
|
|
200
|
+
throw new errors.ManagementError({
|
|
201
|
+
statusCode: _response.error.statusCode,
|
|
202
|
+
body: _response.error.body,
|
|
203
|
+
rawResponse: _response.rawResponse,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/refresh-tokens/revoke");
|
|
208
|
+
});
|
|
209
|
+
}
|
|
146
210
|
/**
|
|
147
211
|
* Retrieve refresh token information.
|
|
148
212
|
*
|
|
149
213
|
* @param {string} id - ID refresh token to retrieve
|
|
150
214
|
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
215
|
*
|
|
216
|
+
* @throws {@link Management.BadRequestError}
|
|
152
217
|
* @throws {@link Management.UnauthorizedError}
|
|
153
218
|
* @throws {@link Management.ForbiddenError}
|
|
154
219
|
* @throws {@link Management.NotFoundError}
|
|
@@ -169,7 +234,7 @@ class RefreshTokensClient {
|
|
|
169
234
|
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, `refresh-tokens/${core.url.encodePathParam(id)}`),
|
|
170
235
|
method: "GET",
|
|
171
236
|
headers: _headers,
|
|
172
|
-
|
|
237
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
173
238
|
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,
|
|
174
239
|
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,
|
|
175
240
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -184,6 +249,8 @@ class RefreshTokensClient {
|
|
|
184
249
|
}
|
|
185
250
|
if (_response.error.reason === "status-code") {
|
|
186
251
|
switch (_response.error.statusCode) {
|
|
252
|
+
case 400:
|
|
253
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
187
254
|
case 401:
|
|
188
255
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
189
256
|
case 403:
|
|
@@ -229,7 +296,7 @@ class RefreshTokensClient {
|
|
|
229
296
|
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, `refresh-tokens/${core.url.encodePathParam(id)}`),
|
|
230
297
|
method: "DELETE",
|
|
231
298
|
headers: _headers,
|
|
232
|
-
|
|
299
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
233
300
|
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,
|
|
234
301
|
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,
|
|
235
302
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -289,7 +356,7 @@ class RefreshTokensClient {
|
|
|
289
356
|
method: "PATCH",
|
|
290
357
|
headers: _headers,
|
|
291
358
|
contentType: "application/json",
|
|
292
|
-
|
|
359
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
293
360
|
requestType: "json",
|
|
294
361
|
body: request,
|
|
295
362
|
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,
|