Module Cephalopod_models.Com_Atproto_Moderation_CreateReport

lexicon "com.atproto.moderation.createReport"

def main

type main_input = {
  1. reasonType : Types.com_atproto_moderation_defs_reasontype;
    (*

    Indicates the broad category of violation the report is for.

    *)
  2. reason : string option;
    (*

    Additional context about the content and violation. maximum length: 20000

    *)
  3. subject : [ `Com_atproto_admin_defs_reporef of Types.com_atproto_admin_defs_reporef | `Com_atproto_repo_strongref_main of Types.com_atproto_repo_strongref_main | `Other of Cephalopod_dasl.Value.t ];
}
val show_main_input : main_input -> Ppx_deriving_runtime.string
val main_input_to_value : main_input -> Cephalopod_dasl.Value.t
type main_output = {
  1. id : int64;
  2. reasonType : Types.com_atproto_moderation_defs_reasontype;
  3. reason : string option;
    (*

    maximum length: 20000

    *)
  4. subject : [ `Com_atproto_admin_defs_reporef of Types.com_atproto_admin_defs_reporef | `Com_atproto_repo_strongref_main of Types.com_atproto_repo_strongref_main | `Other of Cephalopod_dasl.Value.t ];
  5. reportedBy : string;
    (*

    format: "Did"

    *)
  6. createdAt : string;
    (*

    format: "Datetime"

    *)
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
val main : (unit, main_input, main_output, unit) Base.procedure

Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.