/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; import * as ServerDefs from "./defs.defs.js"; const $nsid = "place.stream.server.createWebhook"; export { $nsid }; export const $params = /*#__PURE__*/ l.params(); export type $Params = l.InferOutput; export const $input = /*#__PURE__*/ l.jsonPayload({"url":/*#__PURE__*/ l.string({"format":"uri"}),"events":/*#__PURE__*/ l.array(/*#__PURE__*/ l.enum(["chat","livestream","follow","mention","stream.received"]), ),"active":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false)),"prefix":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":100})),"suffix":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":100})),"rewrite":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => ServerDefs.rewriteRule) as any), )),"name":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":100})),"description":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":500})),"muteWords":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":100}), ))}); export type $Input = l.InferPayload; export type $InputBody = l.InferPayloadBody; export const $output = /*#__PURE__*/ l.jsonPayload({"webhook":/*#__PURE__*/ l.ref((() => ServerDefs.webhook) as any)}); export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Create a new webhook for receiving Streamplace events. */ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidUrl","DuplicateWebhook","TooManyWebhooks"]); export { main }; export const $lxm = $nsid;