Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3529342
D11778.id39483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
921 B
Referenced Files
None
Subscribers
None
D11778.id39483.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11778: [lib] Add device list signatures to Flow types
Attached
Detach File
Event Timeline
Log In to Comment