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

package org_tangled

// schema: org.tangled.temp.spindle.allowList.list

import (
	"context"

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

const (
	TempSpindleAllowListListNSID = "org.tangled.temp.spindle.allowList.list"
)

// TempSpindleAllowListList_Output is the output of a org.tangled.temp.spindle.allowList.list call.
type TempSpindleAllowListList_Output struct {
	// dids: Allow-list entries.
	Dids []string `json:"dids" cborgen:"dids"`
}

// TempSpindleAllowListList calls the XRPC method "org.tangled.temp.spindle.allowList.list".
func TempSpindleAllowListList(ctx context.Context, c util.LexClient) (*TempSpindleAllowListList_Output, error) {
	var out TempSpindleAllowListList_Output
	if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.spindle.allowList.list", nil, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
