+9
-3
src/lib/types/atproto.ts
+9
-3
src/lib/types/atproto.ts
······
+8
-7
src/lib/types/constellation.ts
+8
-7
src/lib/types/constellation.ts
···
+14
src/lib/types/lexicon/com.atproto.repo.getRecord.ts
+14
src/lib/types/lexicon/com.atproto.repo.getRecord.ts
···
+115
src/lib/utils/atproto.ts
+115
src/lib/utils/atproto.ts
···+import { comAtprotoRepoGetRecordResponseSchema } from "@/lib/types/lexicon/com.atproto.repo.getRecord";+// @ts-expect-error yes, we are coercing something that is explicitly not a string into a string, but in this case we want to be specific. only serviceEndpoints with valid atproto pds URLs should be allowed.+`${pdsEndpointUrl}/xrpc/com.atproto.repo.getRecord?did=${didDocResult.data.id}&collection=${collection}&rkey=${rKey}`,+// @ts-expect-error if handle is undefined, then we know that authority must be a valid did:web or did:plc
+1
-13
src/lib/utils/verifyJwt.ts
+1
-13
src/lib/utils/verifyJwt.ts
···