Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + const ASLocationLegacyPath + const ASLocationPath + const ASProtocolLegacyPath + const ASProtocolPath + const ASRoomAliasExistsLegacyPath + const ASRoomAliasExistsPath + const ASUserExistsLegacyPath + const ASUserExistsPath + const ASUserLegacyPath + const ASUserPath + var ErrProfileNotExists = errors.New("no known profile for given user ID") + func RetrieveUserProfile(ctx context.Context, userID string, asAPI AppServiceInternalAPI, ...) (*authtypes.Profile, error) + type ASLocationResponse struct + Alias string + Fields json.RawMessage + Protocol string + type ASProtocolResponse struct + FieldTypes map[string]FieldType + Icon string + Instances []ProtocolInstance + LocationFields []string + UserFields []string + type ASUserResponse struct + Fields json.RawMessage + Protocol string + UserID string + type AppServiceInternalAPI interface + Locations func(ctx context.Context, req *LocationRequest, resp *LocationResponse) error + Protocols func(ctx context.Context, req *ProtocolRequest, resp *ProtocolResponse) error + RoomAliasExists func(ctx context.Context, req *RoomAliasExistsRequest, ...) error + User func(ctx context.Context, request *UserRequest, response *UserResponse) error + UserIDExists func(ctx context.Context, req *UserIDExistsRequest, resp *UserIDExistsResponse) error + type FieldType struct + Placeholder string + Regexp string + type LocationRequest struct + Params string + Protocol string + type LocationResponse struct + Exists bool + Locations []ASLocationResponse + type ProtocolInstance struct + Description string + Fields json.RawMessage + Icon string + NetworkID string + type ProtocolRequest struct + Protocol string + type ProtocolResponse struct + Exists bool + Protocols map[string]ASProtocolResponse + type RoomAliasExistsRequest struct + Alias string + type RoomAliasExistsResponse struct + AliasExists bool + type UserIDExistsRequest struct + UserID string + type UserIDExistsRequestAccessToken struct + AccessToken string + UserID string + type UserIDExistsResponse struct + UserIDExists bool + type UserRequest struct + Params string + Protocol string + type UserResponse struct + Exists bool + Users []ASUserResponse