diff --git a/api/chat/moderationgetConvos.go b/api/chat/moderationgetConvos.go new file mode 100644 index 00000000..2a999451 --- /dev/null +++ b/api/chat/moderationgetConvos.go @@ -0,0 +1,29 @@ +// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. + +// Lexicon schema: chat.bsky.moderation.getConvos + +package chat + +import ( + "context" + + lexutil "github.com/bluesky-social/indigo/lex/util" +) + +// ModerationGetConvos_Output is the output of a chat.bsky.moderation.getConvos call. +type ModerationGetConvos_Output struct { + Convos []*ModerationDefs_ConvoView `json:"convos" cborgen:"convos"` +} + +// ModerationGetConvos calls the XRPC method "chat.bsky.moderation.getConvos". +func ModerationGetConvos(ctx context.Context, c lexutil.LexClient, convoIds []string) (*ModerationGetConvos_Output, error) { + var out ModerationGetConvos_Output + + params := map[string]interface{}{} + params["convoIds"] = convoIds + if err := c.LexDo(ctx, lexutil.Query, "", "chat.bsky.moderation.getConvos", params, nil, &out); err != nil { + return nil, err + } + + return &out, nil +} diff --git a/lexicons/chat/bsky/convo/getConvos.json b/lexicons/chat/bsky/convo/getConvos.json new file mode 100644 index 00000000..dd2cc231 --- /dev/null +++ b/lexicons/chat/bsky/convo/getConvos.json @@ -0,0 +1,38 @@ +{ + "lexicon": 1, + "id": "chat.bsky.moderation.getConvos", + "defs": { + "main": { + "type": "query", + "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Gets existing conversations by their IDs, for moderation purposes. Does not require the requester to be a member of the conversations. Unknown IDs are silently omitted from the response.", + "parameters": { + "type": "params", + "required": ["convoIds"], + "properties": { + "convoIds": { + "type": "array", + "minLength": 1, + "maxLength": 100, + "items": { "type": "string" } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["convos"], + "properties": { + "convos": { + "type": "array", + "items": { + "type": "ref", + "ref": "chat.bsky.moderation.defs#convoView" + } + } + } + } + } + } + } +} -- 2.51.2 From a276b0f1b6fa587fcad8a5b03e5b5fe5ab4fdceb Mon Sep 17 00:00:00 2001 From: gcwill70 Date: Fri, 5 Jun 2026 11:38:05 -0400 Subject: [PATCH 2/2] move getConvos to the correct location --- lexicons/chat/bsky/{convo => moderation}/getConvos.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lexicons/chat/bsky/{convo => moderation}/getConvos.json (100%) diff --git a/lexicons/chat/bsky/convo/getConvos.json b/lexicons/chat/bsky/moderation/getConvos.json similarity index 100% rename from lexicons/chat/bsky/convo/getConvos.json rename to lexicons/chat/bsky/moderation/getConvos.json