Changeset View
Changeset View
Standalone View
Standalone View
lib/types/identity-service-types.js
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | export const userDeviceOlmInboundKeysValidator: TInterface<UserDevicesOlmInboundKeys> = | ||||
tShape<UserDevicesOlmInboundKeys>({ | tShape<UserDevicesOlmInboundKeys>({ | ||||
keys: t.dict(t.String, t.maybe(deviceOlmInboundKeysValidator)), | keys: t.dict(t.String, t.maybe(deviceOlmInboundKeysValidator)), | ||||
username: t.maybe(t.String), | username: t.maybe(t.String), | ||||
walletAddress: t.maybe(t.String), | walletAddress: t.maybe(t.String), | ||||
}); | }); | ||||
export interface IdentityServiceClient { | export interface IdentityServiceClient { | ||||
+deleteUser: () => Promise<void>; | +deleteUser: () => Promise<void>; | ||||
+logOut: () => Promise<void>; | |||||
+getKeyserverKeys: string => Promise<DeviceOlmOutboundKeys>; | +getKeyserverKeys: string => Promise<DeviceOlmOutboundKeys>; | ||||
+registerPasswordUser?: ( | +registerPasswordUser?: ( | ||||
username: string, | username: string, | ||||
password: string, | password: string, | ||||
) => Promise<IdentityAuthResult>; | ) => Promise<IdentityAuthResult>; | ||||
+logInPasswordUser: ( | +logInPasswordUser: ( | ||||
username: string, | username: string, | ||||
password: string, | password: string, | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |