Something went wrong. Try again.
Something went wrong. Try again.
TypeScript
at main
123456789101112131415161718192021222324252627282930313233/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */
import { l } from "@atproto/lex";
const $nsid = "com.atproto.server.createInviteCode";
export { $nsid };
/** Create an invite code. */const main = l.procedure( $nsid, l.params(), l.jsonPayload({ useCount: l.integer(), forAccount: l.optional(l.string({ format: "did" })), }), l.jsonPayload({ code: l.string() }),);export { main };
export type $Params = l.InferMethodParams<typeof main>;export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
export const $lxm = main.nsid, $params = main.parameters, $input = main.input, $output = main.output;