/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; const $nsid = "com.atproto.server.describeServer"; export { $nsid }; export const $params = /*#__PURE__*/ l.params(); export type $Params = l.InferOutput; export const $output = /*#__PURE__*/ l.jsonPayload({"did":/*#__PURE__*/ l.string({"format":"did"}),"links":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => links) as any)),"contact":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => contact) as any)),"inviteCodeRequired":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"availableUserDomains":/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), ),"phoneVerificationRequired":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean())}); export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Describes the server's account creation requirements and capabilities. Implemented by PDS. */ const main = /*#__PURE__*/ l.query($nsid, $params, $output); export { main }; export const $lxm = $nsid; type Links = { $type?: "com.atproto.server.describeServer#links";"privacyPolicy"?:l.UriString;"termsOfService"?:l.UriString }; export type { Links }; const links = /*#__PURE__*/ l.typedObject($nsid, "links", /*#__PURE__*/ l.object({"privacyPolicy":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"uri"})),"termsOfService":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"uri"}))})); export { links }; type Contact = { $type?: "com.atproto.server.describeServer#contact";"email"?:string }; export type { Contact }; const contact = /*#__PURE__*/ l.typedObject($nsid, "contact", /*#__PURE__*/ l.object({"email":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())})); export { contact };