π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update
Manav Rathif52b6256b521
diff --git a/web/packages/new/photos/services/user-entity/index.ts b/web/packages/new/photos/services/user-entity/index.tsindex 2a81f699a7..87c330cadb 100644--- a/web/packages/new/photos/services/user-entity/index.ts+++ b/web/packages/new/photos/services/user-entity/index.ts@@ -50,14 +50,16 @@ export type EntityType =* Zod schema for the fields of interest in the location tag that we get from* remote.*/-const RemoteLocationTagData = z.object({- name: z.string(),- radius: z.number(),- centerPoint: z.object({- latitude: z.number(),- longitude: z.number(),- }),-}).passthrough();+const RemoteLocationTagData = z+ .object({+ name: z.string(),+ radius: z.number(),+ centerPoint: z.object({+ latitude: z.number(),+ longitude: z.number(),+ }),+ })+ .passthrough();/*** A view of the location tag data suitable for use by the rest of the app.@@ -72,23 +74,35 @@ export const savedLocationTags = (): Promise<LocationTag[]> =>es.map((e) => RemoteLocationTagData.parse(e.data)),);-const RemoteFaceCluster = z.object({- id: z.string(),- faces: z.string().array(),-}).passthrough();+const RemoteFaceCluster = z+ .object({+ id: z.string(),+ faces: z.string().array(),+ })+ .passthrough();/*** Zod schema for the fields of interest in the cgroup that we get from remote.** See also: {@link CGroupUserEntityData}.+ *+ * See: [Note: Use passthrough for metadata Zod schemas].*/-const RemoteCGroupData = z.object({- name: z.string().nullish().transform(nullToUndefined),- assigned: z.array(RemoteFaceCluster).nullish().transform(nullishToEmpty),- rejectedFaceIDs: z.array(z.string()).nullish().transform(nullishToEmpty),- isHidden: z.boolean(),- avatarFaceID: z.string().nullish().transform(nullToUndefined),-}).passthrough();+const RemoteCGroupData = z+ .object({+ name: z.string().nullish().transform(nullToUndefined),+ assigned: z+ .array(RemoteFaceCluster)+ .nullish()+ .transform(nullishToEmpty),+ rejectedFaceIDs: z+ .array(z.string())+ .nullish()+ .transform(nullishToEmpty),+ isHidden: z.boolean(),+ avatarFaceID: z.string().nullish().transform(nullToUndefined),+ })+ .passthrough();/*** A "cgroup" user entity.