import type {} from "@atcute/lexicons";
import * as v from "@atcute/lexicons/validations";
import type {} from "@atcute/lexicons/ambient";

const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.getStar", {
  params: /*#__PURE__*/ v.object({
    /**
     * DID of the potential stargazer.
     */
    actor: /*#__PURE__*/ v.didString(),
    /**
     * Repo DID to check.
     */
    subject: /*#__PURE__*/ v.string(),
  }),
  output: {
    type: "lex",
    schema: /*#__PURE__*/ v.object({
      /**
       * Uri of actor's star record for subject.
       */
      uri: /*#__PURE__*/ v.resourceUriString(),
    }),
  },
});

type main$schematype = typeof _mainSchema;

export interface mainSchema extends main$schematype {}

export const mainSchema = _mainSchema as mainSchema;

export interface $params extends v.InferInput<mainSchema["params"]> {}
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}

declare module "@atcute/lexicons/ambient" {
  interface XRPCQueries {
    "sh.tangled.feed.getStar": mainSchema;
  }
}
