Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/user-responders.js
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | const registerRequestInputValidator = tShape<RegisterRequest>({ | ||||
password: tPassword, | password: tPassword, | ||||
calendarQuery: t.maybe(newEntryQueryInputValidator), | calendarQuery: t.maybe(newEntryQueryInputValidator), | ||||
deviceTokenUpdateRequest: t.maybe(deviceTokenUpdateRequestInputValidator), | deviceTokenUpdateRequest: t.maybe(deviceTokenUpdateRequestInputValidator), | ||||
platformDetails: tPlatformDetails, | platformDetails: tPlatformDetails, | ||||
// We include `primaryIdentityPublicKey` to avoid breaking | // We include `primaryIdentityPublicKey` to avoid breaking | ||||
// old clients, but we no longer do anything with it. | // old clients, but we no longer do anything with it. | ||||
primaryIdentityPublicKey: t.maybe(tRegex(primaryIdentityPublicKeyRegex)), | primaryIdentityPublicKey: t.maybe(tRegex(primaryIdentityPublicKeyRegex)), | ||||
signedIdentityKeysBlob: t.maybe(signedIdentityKeysBlobValidator), | signedIdentityKeysBlob: t.maybe(signedIdentityKeysBlobValidator), | ||||
initialNotificationsEncryptedMessage: t.maybe(t.String), | |||||
}); | }); | ||||
export const registerResponseValidator: TInterface<RegisterResponse> = | export const registerResponseValidator: TInterface<RegisterResponse> = | ||||
tShape<RegisterResponse>({ | tShape<RegisterResponse>({ | ||||
id: t.String, | id: t.String, | ||||
rawMessageInfos: t.list(rawMessageInfoValidator), | rawMessageInfos: t.list(rawMessageInfoValidator), | ||||
currentUserInfo: t.union([ | currentUserInfo: t.union([ | ||||
oldLoggedInUserInfoValidator, | oldLoggedInUserInfoValidator, | ||||
▲ Show 20 Lines • Show All 536 Lines • Show Last 20 Lines |