mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-25 06:47:41 +00:00
cleanup
This commit is contained in:
@@ -59,11 +59,9 @@ async function cacheWrapper<T>(callback: Promise<T>) {
|
|||||||
|
|
||||||
export async function getBrandingSettings({
|
export async function getBrandingSettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
organization,
|
organization,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
organization?: string;
|
organization?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -78,11 +76,9 @@ export async function getBrandingSettings({
|
|||||||
|
|
||||||
export async function getLoginSettings({
|
export async function getLoginSettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
organization,
|
organization,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
organization?: string;
|
organization?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -97,11 +93,9 @@ export async function getLoginSettings({
|
|||||||
|
|
||||||
export async function getLockoutSettings({
|
export async function getLockoutSettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
orgId,
|
orgId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
orgId?: string;
|
orgId?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -116,11 +110,9 @@ export async function getLockoutSettings({
|
|||||||
|
|
||||||
export async function getPasswordExpirySettings({
|
export async function getPasswordExpirySettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
orgId,
|
orgId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
orgId?: string;
|
orgId?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -135,11 +127,9 @@ export async function getPasswordExpirySettings({
|
|||||||
|
|
||||||
export async function listIDPLinks({
|
export async function listIDPLinks({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -152,11 +142,9 @@ export async function listIDPLinks({
|
|||||||
|
|
||||||
export async function addOTPEmail({
|
export async function addOTPEmail({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -169,11 +157,9 @@ export async function addOTPEmail({
|
|||||||
|
|
||||||
export async function addOTPSMS({
|
export async function addOTPSMS({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -186,11 +172,9 @@ export async function addOTPSMS({
|
|||||||
|
|
||||||
export async function registerTOTP({
|
export async function registerTOTP({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -218,11 +202,9 @@ export async function getGeneralSettings({
|
|||||||
|
|
||||||
export async function getLegalAndSupportSettings({
|
export async function getLegalAndSupportSettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
organization,
|
organization,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
organization?: string;
|
organization?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -237,11 +219,9 @@ export async function getLegalAndSupportSettings({
|
|||||||
|
|
||||||
export async function getPasswordComplexitySettings({
|
export async function getPasswordComplexitySettings({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
organization,
|
organization,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
organization?: string;
|
organization?: string;
|
||||||
}) {
|
}) {
|
||||||
const settingsService: Client<typeof SettingsService> =
|
const settingsService: Client<typeof SettingsService> =
|
||||||
@@ -256,13 +236,11 @@ export async function getPasswordComplexitySettings({
|
|||||||
|
|
||||||
export async function createSessionFromChecks({
|
export async function createSessionFromChecks({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
checks,
|
checks,
|
||||||
challenges,
|
challenges,
|
||||||
lifetime,
|
lifetime,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
checks: Checks;
|
checks: Checks;
|
||||||
challenges: RequestChallenges | undefined;
|
challenges: RequestChallenges | undefined;
|
||||||
lifetime?: Duration;
|
lifetime?: Duration;
|
||||||
@@ -275,13 +253,11 @@ export async function createSessionFromChecks({
|
|||||||
|
|
||||||
export async function createSessionForUserIdAndIdpIntent({
|
export async function createSessionForUserIdAndIdpIntent({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
idpIntent,
|
idpIntent,
|
||||||
lifetime,
|
lifetime,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
idpIntent: {
|
idpIntent: {
|
||||||
idpIntentId?: string | undefined;
|
idpIntentId?: string | undefined;
|
||||||
@@ -308,7 +284,6 @@ export async function createSessionForUserIdAndIdpIntent({
|
|||||||
|
|
||||||
export async function setSession({
|
export async function setSession({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
sessionId,
|
sessionId,
|
||||||
sessionToken,
|
sessionToken,
|
||||||
challenges,
|
challenges,
|
||||||
@@ -316,7 +291,6 @@ export async function setSession({
|
|||||||
lifetime,
|
lifetime,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
sessionToken: string;
|
sessionToken: string;
|
||||||
challenges: RequestChallenges | undefined;
|
challenges: RequestChallenges | undefined;
|
||||||
@@ -341,12 +315,10 @@ export async function setSession({
|
|||||||
|
|
||||||
export async function getSession({
|
export async function getSession({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
sessionId,
|
sessionId,
|
||||||
sessionToken,
|
sessionToken,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
sessionToken: string;
|
sessionToken: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -358,12 +330,10 @@ export async function getSession({
|
|||||||
|
|
||||||
export async function deleteSession({
|
export async function deleteSession({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
sessionId,
|
sessionId,
|
||||||
sessionToken,
|
sessionToken,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
sessionToken: string;
|
sessionToken: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -375,7 +345,6 @@ export async function deleteSession({
|
|||||||
|
|
||||||
type ListSessionsCommand = {
|
type ListSessionsCommand = {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
ids: string[];
|
ids: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -404,7 +373,6 @@ export async function listSessions({
|
|||||||
|
|
||||||
export type AddHumanUserData = {
|
export type AddHumanUserData = {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
firstName: string;
|
firstName: string;
|
||||||
lastName: string;
|
lastName: string;
|
||||||
email: string;
|
email: string;
|
||||||
@@ -414,7 +382,6 @@ export type AddHumanUserData = {
|
|||||||
|
|
||||||
export async function addHumanUser({
|
export async function addHumanUser({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
email,
|
email,
|
||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
@@ -447,11 +414,9 @@ export async function addHumanUser({
|
|||||||
|
|
||||||
export async function addHuman({
|
export async function addHuman({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
request,
|
request,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
request: AddHumanUserRequest;
|
request: AddHumanUserRequest;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -464,12 +429,10 @@ export async function addHuman({
|
|||||||
|
|
||||||
export async function verifyTOTPRegistration({
|
export async function verifyTOTPRegistration({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
code,
|
code,
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
code: string;
|
code: string;
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -483,11 +446,9 @@ export async function verifyTOTPRegistration({
|
|||||||
|
|
||||||
export async function getUserByID({
|
export async function getUserByID({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -500,12 +461,10 @@ export async function getUserByID({
|
|||||||
|
|
||||||
export async function verifyInviteCode({
|
export async function verifyInviteCode({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
verificationCode,
|
verificationCode,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
verificationCode: string;
|
verificationCode: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -519,11 +478,9 @@ export async function verifyInviteCode({
|
|||||||
|
|
||||||
export async function resendInviteCode({
|
export async function resendInviteCode({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -536,12 +493,10 @@ export async function resendInviteCode({
|
|||||||
|
|
||||||
export async function sendEmailCode({
|
export async function sendEmailCode({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
urlTemplate,
|
urlTemplate,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
urlTemplate: string;
|
urlTemplate: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -567,12 +522,10 @@ export async function sendEmailCode({
|
|||||||
|
|
||||||
export async function createInviteCode({
|
export async function createInviteCode({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
urlTemplate,
|
urlTemplate,
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
urlTemplate: string;
|
urlTemplate: string;
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -604,7 +557,6 @@ export async function createInviteCode({
|
|||||||
|
|
||||||
export type ListUsersCommand = {
|
export type ListUsersCommand = {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
loginName?: string;
|
loginName?: string;
|
||||||
userName?: string;
|
userName?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
@@ -614,7 +566,6 @@ export type ListUsersCommand = {
|
|||||||
|
|
||||||
export async function listUsers({
|
export async function listUsers({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
loginName,
|
loginName,
|
||||||
userName,
|
userName,
|
||||||
phone,
|
phone,
|
||||||
@@ -713,7 +664,6 @@ export async function listUsers({
|
|||||||
|
|
||||||
export type SearchUsersCommand = {
|
export type SearchUsersCommand = {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
searchValue: string;
|
searchValue: string;
|
||||||
loginSettings: LoginSettings;
|
loginSettings: LoginSettings;
|
||||||
organizationId?: string;
|
organizationId?: string;
|
||||||
@@ -759,7 +709,6 @@ const EmailQuery = (searchValue: string) =>
|
|||||||
* */
|
* */
|
||||||
export async function searchUsers({
|
export async function searchUsers({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
searchValue,
|
searchValue,
|
||||||
loginSettings,
|
loginSettings,
|
||||||
organizationId,
|
organizationId,
|
||||||
@@ -904,11 +853,9 @@ export async function getDefaultOrg({
|
|||||||
|
|
||||||
export async function getOrgsByDomain({
|
export async function getOrgsByDomain({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
domain,
|
domain,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
domain: string;
|
domain: string;
|
||||||
}) {
|
}) {
|
||||||
const orgService: Client<typeof OrganizationService> =
|
const orgService: Client<typeof OrganizationService> =
|
||||||
@@ -931,7 +878,6 @@ export async function getOrgsByDomain({
|
|||||||
|
|
||||||
export async function startIdentityProviderFlow({
|
export async function startIdentityProviderFlow({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
idpId,
|
idpId,
|
||||||
urls,
|
urls,
|
||||||
}: {
|
}: {
|
||||||
@@ -956,7 +902,6 @@ export async function startIdentityProviderFlow({
|
|||||||
|
|
||||||
export async function retrieveIdentityProviderInformation({
|
export async function retrieveIdentityProviderInformation({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
idpIntentId,
|
idpIntentId,
|
||||||
idpIntentToken,
|
idpIntentToken,
|
||||||
}: {
|
}: {
|
||||||
@@ -978,11 +923,9 @@ export async function retrieveIdentityProviderInformation({
|
|||||||
|
|
||||||
export async function getAuthRequest({
|
export async function getAuthRequest({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
authRequestId,
|
authRequestId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
authRequestId: string;
|
authRequestId: string;
|
||||||
}) {
|
}) {
|
||||||
const oidcService = await createServiceForHost(OIDCService, serviceUrl);
|
const oidcService = await createServiceForHost(OIDCService, serviceUrl);
|
||||||
@@ -994,11 +937,9 @@ export async function getAuthRequest({
|
|||||||
|
|
||||||
export async function createCallback({
|
export async function createCallback({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
req,
|
req,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
req: CreateCallbackRequest;
|
req: CreateCallbackRequest;
|
||||||
}) {
|
}) {
|
||||||
const oidcService = await createServiceForHost(OIDCService, serviceUrl);
|
const oidcService = await createServiceForHost(OIDCService, serviceUrl);
|
||||||
@@ -1008,11 +949,9 @@ export async function createCallback({
|
|||||||
|
|
||||||
export async function getSAMLRequest({
|
export async function getSAMLRequest({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
samlRequestId,
|
samlRequestId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
samlRequestId: string;
|
samlRequestId: string;
|
||||||
}) {
|
}) {
|
||||||
const samlService = await createServiceForHost(SAMLService, serviceUrl);
|
const samlService = await createServiceForHost(SAMLService, serviceUrl);
|
||||||
@@ -1036,12 +975,10 @@ export async function createResponse({
|
|||||||
|
|
||||||
export async function verifyEmail({
|
export async function verifyEmail({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
verificationCode,
|
verificationCode,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
verificationCode: string;
|
verificationCode: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1061,12 +998,10 @@ export async function verifyEmail({
|
|||||||
|
|
||||||
export async function resendEmailCode({
|
export async function resendEmailCode({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
urlTemplate,
|
urlTemplate,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
urlTemplate: string;
|
urlTemplate: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1090,12 +1025,10 @@ export async function resendEmailCode({
|
|||||||
|
|
||||||
export async function retrieveIDPIntent({
|
export async function retrieveIDPIntent({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
id,
|
id,
|
||||||
token,
|
token,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
id: string;
|
id: string;
|
||||||
token: string;
|
token: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1112,11 +1045,9 @@ export async function retrieveIDPIntent({
|
|||||||
|
|
||||||
export async function getIDPByID({
|
export async function getIDPByID({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
id,
|
id,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
id: string;
|
id: string;
|
||||||
}) {
|
}) {
|
||||||
const idpService: Client<typeof IdentityProviderService> =
|
const idpService: Client<typeof IdentityProviderService> =
|
||||||
@@ -1127,12 +1058,10 @@ export async function getIDPByID({
|
|||||||
|
|
||||||
export async function addIDPLink({
|
export async function addIDPLink({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
idp,
|
idp,
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
idp: { id: string; userId: string; userName: string };
|
idp: { id: string; userId: string; userName: string };
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1156,12 +1085,10 @@ export async function addIDPLink({
|
|||||||
|
|
||||||
export async function passwordReset({
|
export async function passwordReset({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
urlTemplate,
|
urlTemplate,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
urlTemplate?: string;
|
urlTemplate?: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1193,14 +1120,12 @@ export async function passwordReset({
|
|||||||
|
|
||||||
export async function setUserPassword({
|
export async function setUserPassword({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
password,
|
password,
|
||||||
user,
|
user,
|
||||||
code,
|
code,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
password: string;
|
password: string;
|
||||||
user: User;
|
user: User;
|
||||||
@@ -1256,11 +1181,9 @@ export async function setUserPassword({
|
|||||||
|
|
||||||
export async function setPassword({
|
export async function setPassword({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
payload,
|
payload,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
payload: SetPasswordRequest;
|
payload: SetPasswordRequest;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -1279,11 +1202,9 @@ export async function setPassword({
|
|||||||
*/
|
*/
|
||||||
export async function createPasskeyRegistrationLink({
|
export async function createPasskeyRegistrationLink({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -1309,12 +1230,10 @@ export async function createPasskeyRegistrationLink({
|
|||||||
*/
|
*/
|
||||||
export async function registerU2F({
|
export async function registerU2F({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
domain,
|
domain,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -1337,11 +1256,9 @@ export async function registerU2F({
|
|||||||
*/
|
*/
|
||||||
export async function verifyU2FRegistration({
|
export async function verifyU2FRegistration({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
request,
|
request,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
request: VerifyU2FRegistrationRequest;
|
request: VerifyU2FRegistrationRequest;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -1361,12 +1278,10 @@ export async function verifyU2FRegistration({
|
|||||||
*/
|
*/
|
||||||
export async function getActiveIdentityProviders({
|
export async function getActiveIdentityProviders({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
orgId,
|
orgId,
|
||||||
linking_allowed,
|
linking_allowed,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
orgId?: string;
|
orgId?: string;
|
||||||
linking_allowed?: boolean;
|
linking_allowed?: boolean;
|
||||||
}) {
|
}) {
|
||||||
@@ -1388,11 +1303,9 @@ export async function getActiveIdentityProviders({
|
|||||||
*/
|
*/
|
||||||
export async function verifyPasskeyRegistration({
|
export async function verifyPasskeyRegistration({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
request,
|
request,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
request: VerifyPasskeyRegistrationRequest;
|
request: VerifyPasskeyRegistrationRequest;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
@@ -1413,13 +1326,11 @@ export async function verifyPasskeyRegistration({
|
|||||||
*/
|
*/
|
||||||
export async function registerPasskey({
|
export async function registerPasskey({
|
||||||
serviceUrl,
|
serviceUrl,
|
||||||
|
|
||||||
userId,
|
userId,
|
||||||
code,
|
code,
|
||||||
domain,
|
domain,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
code: { id: string; code: string };
|
code: { id: string; code: string };
|
||||||
domain: string;
|
domain: string;
|
||||||
@@ -1447,7 +1358,6 @@ export async function listAuthenticationMethodTypes({
|
|||||||
userId,
|
userId,
|
||||||
}: {
|
}: {
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
|
||||||
userId: string;
|
userId: string;
|
||||||
}) {
|
}) {
|
||||||
const userService: Client<typeof UserService> = await createServiceForHost(
|
const userService: Client<typeof UserService> = await createServiceForHost(
|
||||||
|
Reference in New Issue
Block a user