// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package ozone

// schema: tools.ozone.moderation.getSubjects

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

// ModerationGetSubjects_Output is the output of a tools.ozone.moderation.getSubjects call.
type ModerationGetSubjects_Output struct {
	Subjects []*ModerationDefs_SubjectView `json:"subjects" cborgen:"subjects"`
}

// ModerationGetSubjects calls the XRPC method "tools.ozone.moderation.getSubjects".
func ModerationGetSubjects(ctx context.Context, c util.LexClient, subjects []string) (*ModerationGetSubjects_Output, error) {
	var out ModerationGetSubjects_Output

	params := map[string]interface{}{}
	params["subjects"] = subjects
	if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
