/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; import * as RepoDefs from "./defs.defs.js"; const $nsid = "com.atproto.repo.deleteRecord"; export { $nsid }; export const $params = /*#__PURE__*/ l.params(); export type $Params = l.InferOutput; export const $input = /*#__PURE__*/ l.jsonPayload({"repo":/*#__PURE__*/ l.string({"format":"at-identifier"}),"rkey":/*#__PURE__*/ l.string({"format":"record-key"}),"collection":/*#__PURE__*/ l.string({"format":"nsid"}),"swapCommit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"cid"})),"swapRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"cid"}))}); export type $Input = l.InferPayload; export type $InputBody = l.InferPayloadBody; export const $output = /*#__PURE__*/ l.jsonPayload({"commit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => RepoDefs.commitMeta) as any))}); export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. */ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidSwap"]); export { main }; export const $lxm = $nsid;