frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: get owner schema

serenity 09b2d481 e39b2f40

+11 -1
+11 -1
src/lib/types/http/responses.ts
··· 1 + import { didSchema } from "@/lib/types/atproto"; 1 2 import { latticeSessionInfoSchema } from "@/lib/types/handshake"; 2 3 import { httpResponseErrorInfoSchema } from "@/lib/types/http/errors"; 3 4 import { z } from "zod"; ··· 19 20 typeof latticeHandshakeResponseSchema 20 21 >; 21 22 22 - export const httpResponseDataSchema = z.union([latticeHandshakeResponseSchema]); 23 + export const getOwnerDidResponseSchema = z.object({ 24 + registered: z.boolean(), 25 + ownerDid: didSchema, 26 + }); 27 + export type GetOwnerDidResponse = z.infer<typeof getOwnerDidResponseSchema>; 28 + 29 + export const httpResponseDataSchema = z.union([ 30 + latticeHandshakeResponseSchema, 31 + getOwnerDidResponseSchema, 32 + ]); 23 33 export type HttpResponseData = z.infer<typeof httpResponseDataSchema>; 24 34 25 35 const httpResponseBaseSchema = z.object({