Page MenuHomePhabricator

D11778.id39483.diff
No OneTemporary

D11778.id39483.diff

diff --git a/lib/types/identity-service-types.js b/lib/types/identity-service-types.js
--- a/lib/types/identity-service-types.js
+++ b/lib/types/identity-service-types.js
@@ -221,10 +221,18 @@
export type SignedDeviceList = {
// JSON-stringified RawDeviceList
+rawDeviceList: string,
+ // Current primary device signature. Absent for Identity Service generated
+ // device lists.
+ +curPrimarySignature?: string,
+ // Previous primary device signature. Present only if primary device
+ // has changed since last update.
+ +lastPrimarySignature?: string,
};
export const signedDeviceListValidator: TInterface<SignedDeviceList> =
tShape<SignedDeviceList>({
rawDeviceList: t.String,
+ curPrimarySignature: t.maybe(t.String),
+ lastPrimarySignature: t.maybe(t.String),
});
export const signedDeviceListHistoryValidator: TList<Array<SignedDeviceList>> =
t.list(signedDeviceListValidator);

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 5:55 PM (11 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2702872
Default Alt Text
D11778.id39483.diff (921 B)

Event Timeline