···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as AppBskyFeedDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
108 q: string;
119 /** Specifies the ranking order of results. */
1212- sort: "top" | "latest" | (string & { __brand?: never });
1010+ sort: "top" | "latest" | (string & globalThis.Record<PropertyKey, never>);
1311 /** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
1412 since?: string;
1513 /** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
···2927 limit: number;
3028 /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
3129 cursor?: string;
3232-}
3333-3030+};
3431export type InputSchema = undefined;
35323633export interface OutputSchema {
···4037 posts: (AppBskyFeedDefs.PostView)[];
4138}
42394343-export type HandlerInput = undefined;
4040+export type HandlerInput = void;
44414542export interface HandlerSuccess {
4643 encoding: "application/json";
···5451 error?: "BadQueryString";
5552}
56535757-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
5858-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
5959- auth: HA;
6060- params: QueryParams;
6161- input: HandlerInput;
6262- req: HonoRequest;
6363- resetRouteRateLimits: () => Promise<void>;
6464-};
6565-export type Handler<HA extends HandlerAuth = never> = (
6666- ctx: HandlerReqCtx<HA>,
6767-) => Promise<HandlerOutput> | HandlerOutput;
5454+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as AppBskyUnspeccedDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
108 viewer?: string;
119 limit: number;
1210 cursor?: string;
1311 /** DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. */
1412 relativeToDid?: string;
1515-}
1616-1313+};
1714export type InputSchema = undefined;
18151916export interface OutputSchema {
···2522 recId?: number;
2623}
27242828-export type HandlerInput = undefined;
2525+export type HandlerInput = void;
29263027export interface HandlerSuccess {
3128 encoding: "application/json";
···3835 message?: string;
3936}
40374141-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
4242-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
4343- auth: HA;
4444- params: QueryParams;
4545- input: HandlerInput;
4646- req: HonoRequest;
4747- resetRouteRateLimits: () => Promise<void>;
4848-};
4949-export type Handler<HA extends HandlerAuth = never> = (
5050- ctx: HandlerReqCtx<HA>,
5151-) => Promise<HandlerOutput> | HandlerOutput;
3838+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as AppBskyUnspeccedDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
108 q: string;
119 /** Specifies the ranking order of results. */
1212- sort: "top" | "latest" | (string & { __brand?: never });
1010+ sort: "top" | "latest" | (string & globalThis.Record<PropertyKey, never>);
1311 /** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
1412 since?: string;
1513 /** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
···3129 limit: number;
3230 /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
3331 cursor?: string;
3434-}
3535-3232+};
3633export type InputSchema = undefined;
37343835export interface OutputSchema {
···4239 posts: (AppBskyUnspeccedDefs.SkeletonSearchPost)[];
4340}
44414545-export type HandlerInput = undefined;
4242+export type HandlerInput = void;
46434744export interface HandlerSuccess {
4845 encoding: "application/json";
···5653 error?: "BadQueryString";
5754}
58555959-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
6060-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
6161- auth: HA;
6262- params: QueryParams;
6363- input: HandlerInput;
6464- req: HonoRequest;
6565- resetRouteRateLimits: () => Promise<void>;
6666-};
6767-export type Handler<HA extends HandlerAuth = never> = (
6868- ctx: HandlerReqCtx<HA>,
6969-) => Promise<HandlerOutput> | HandlerOutput;
5656+export type HandlerOutput = HandlerError | HandlerSuccess;
···7979 /** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
8080 identifier: string;
8181 /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */
8282- severity: "inform" | "alert" | "none" | (string & { __brand?: never });
8282+ severity:
8383+ | "inform"
8484+ | "alert"
8585+ | "none"
8686+ | (string & globalThis.Record<PropertyKey, never>);
8387 /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */
8484- blurs: "content" | "media" | "none" | (string & { __brand?: never });
8888+ blurs:
8989+ | "content"
9090+ | "media"
9191+ | "none"
9292+ | (string & globalThis.Record<PropertyKey, never>);
8593 /** The default setting for this label. */
8686- defaultSetting: "ignore" | "warn" | "hide" | (string & { __brand?: never });
9494+ defaultSetting:
9595+ | "ignore"
9696+ | "warn"
9797+ | "hide"
9898+ | (string & globalThis.Record<PropertyKey, never>);
8799 /** Does the user need to have adult content enabled in order to configure this label? */
88100 adultOnly?: boolean;
89101 locales: (LabelValueDefinitionStrings)[];
···136148 | "nudity"
137149 | "nsfl"
138150 | "gore"
139139- | (string & { __brand?: never });
151151+ | (string & globalThis.Record<PropertyKey, never>);
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as ComAtprotoLabelDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. */
108 uriPatterns: string[];
119 /** Optional list of label sources (DIDs) to filter on. */
1210 sources?: string[];
1311 limit: number;
1412 cursor?: string;
1515-}
1616-1313+};
1714export type InputSchema = undefined;
18151916export interface OutputSchema {
···2118 labels: (ComAtprotoLabelDefs.Label)[];
2219}
23202424-export type HandlerInput = undefined;
2121+export type HandlerInput = void;
25222623export interface HandlerSuccess {
2724 encoding: "application/json";
···3431 message?: string;
3532}
36333737-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
3838-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
3939- auth: HA;
4040- params: QueryParams;
4141- input: HandlerInput;
4242- req: HonoRequest;
4343- resetRouteRateLimits: () => Promise<void>;
4444-};
4545-export type Handler<HA extends HandlerAuth = never> = (
4646- ctx: HandlerReqCtx<HA>,
4747-) => Promise<HandlerOutput> | HandlerOutput;
3434+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
66-77-export interface QueryParams {
44+export type QueryParams = {
85 /** The DID of the service that the token will be used to authenticate with */
96 aud: string;
107 /** The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. */
118 exp?: number;
129 /** Lexicon (XRPC) method to bind the requested token to */
1310 lxm?: string;
1414-}
1515-1111+};
1612export type InputSchema = undefined;
17131814export interface OutputSchema {
1915 token: string;
2016}
21172222-export type HandlerInput = undefined;
1818+export type HandlerInput = void;
23192420export interface HandlerSuccess {
2521 encoding: "application/json";
···3329 error?: "BadExpiration";
3430}
35313636-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
3737-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
3838- auth: HA;
3939- params: QueryParams;
4040- input: HandlerInput;
4141- req: HonoRequest;
4242- resetRouteRateLimits: () => Promise<void>;
4343-};
4444-export type Handler<HA extends HandlerAuth = never> = (
4545- ctx: HandlerReqCtx<HA>,
4646-) => Promise<HandlerOutput> | HandlerOutput;
3232+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as SoSprkUnspeccedDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
108 viewer?: string;
119 limit: number;
1210 cursor?: string;
1311 /** DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. */
1412 relativeToDid?: string;
1515-}
1616-1313+};
1714export type InputSchema = undefined;
18151916export interface OutputSchema {
···2522 recId?: number;
2623}
27242828-export type HandlerInput = undefined;
2525+export type HandlerInput = void;
29263027export interface HandlerSuccess {
3128 encoding: "application/json";
···3835 message?: string;
3936}
40374141-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
4242-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
4343- auth: HA;
4444- params: QueryParams;
4545- input: HandlerInput;
4646- req: HonoRequest;
4747- resetRouteRateLimits: () => Promise<void>;
4848-};
4949-export type Handler<HA extends HandlerAuth = never> = (
5050- ctx: HandlerReqCtx<HA>,
5151-) => Promise<HandlerOutput> | HandlerOutput;
3838+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as SoSprkUnspeccedDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
108 q: string;
119 /** Specifies the ranking order of results. */
1212- sort: "top" | "latest" | (string & { __brand?: never });
1010+ sort: "top" | "latest" | (string & globalThis.Record<PropertyKey, never>);
1311 /** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
1412 since?: string;
1513 /** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
···3129 limit: number;
3230 /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
3331 cursor?: string;
3434-}
3535-3232+};
3633export type InputSchema = undefined;
37343835export interface OutputSchema {
···4239 posts: (SoSprkUnspeccedDefs.SkeletonSearchPost)[];
4340}
44414545-export type HandlerInput = undefined;
4242+export type HandlerInput = void;
46434744export interface HandlerSuccess {
4845 encoding: "application/json";
···5653 error?: "BadQueryString";
5754}
58555959-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
6060-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
6161- auth: HA;
6262- params: QueryParams;
6363- input: HandlerInput;
6464- req: HonoRequest;
6565- resetRouteRateLimits: () => Promise<void>;
6666-};
6767-export type Handler<HA extends HandlerAuth = never> = (
6868- ctx: HandlerReqCtx<HA>,
6969-) => Promise<HandlerOutput> | HandlerOutput;
5656+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as ToolsOzoneModerationDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. */
108 types?: string[];
119 createdBy?: string;
···1917 /** If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */
2018 collections?: string[];
2119 /** If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. */
2222- subjectType?: "account" | "record" | (string & { __brand?: never });
2020+ subjectType?:
2121+ | "account"
2222+ | "record"
2323+ | (string & globalThis.Record<PropertyKey, never>);
2324 /** If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. */
2425 includeAllUserRecords: boolean;
2526 limit: number;
···3839 reportTypes?: string[];
3940 policies?: string[];
4041 cursor?: string;
4141-}
4242-4242+};
4343export type InputSchema = undefined;
44444545export interface OutputSchema {
···4747 events: (ToolsOzoneModerationDefs.ModEventView)[];
4848}
49495050-export type HandlerInput = undefined;
5050+export type HandlerInput = void;
51515252export interface HandlerSuccess {
5353 encoding: "application/json";
···6060 message?: string;
6161}
62626363-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
6464-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
6565- auth: HA;
6666- params: QueryParams;
6767- input: HandlerInput;
6868- req: HonoRequest;
6969- resetRouteRateLimits: () => Promise<void>;
7070-};
7171-export type Handler<HA extends HandlerAuth = never> = (
7272- ctx: HandlerReqCtx<HA>,
7373-) => Promise<HandlerOutput> | HandlerOutput;
6363+export type HandlerOutput = HandlerError | HandlerSuccess;
···11/**
22 * GENERATED CODE - DO NOT MODIFY
33 */
44-import { type HonoRequest } from "hono";
55-import { HandlerAuth, HandlerPipeThrough } from "@sprk/xrpc-server";
64import type * as ToolsOzoneModerationDefs from "./defs.ts";
7588-export interface QueryParams {
66+export type QueryParams = {
97 /** Number of queues being used by moderators. Subjects will be split among all queues. */
108 queueCount?: number;
119 /** Index of the queue to fetch subjects from. Works only when queueCount value is specified. */
···6361 /** If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */
6462 collections?: string[];
6563 /** If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. */
6666- subjectType?: "account" | "record" | (string & { __brand?: never });
6464+ subjectType?:
6565+ | "account"
6666+ | "record"
6767+ | (string & globalThis.Record<PropertyKey, never>);
6768 /** If specified, only subjects that belong to an account that has at least this many suspensions will be returned. */
6869 minAccountSuspendCount?: number;
6970 /** If specified, only subjects that belong to an account that has at least this many reported records will be returned. */
···7273 minTakendownRecordsCount?: number;
7374 /** If specified, only subjects that have priority score value above the given value will be returned. */
7475 minPriorityScore?: number;
7575-}
7676-7676+};
7777export type InputSchema = undefined;
78787979export interface OutputSchema {
···8181 subjectStatuses: (ToolsOzoneModerationDefs.SubjectStatusView)[];
8282}
83838484-export type HandlerInput = undefined;
8484+export type HandlerInput = void;
85858686export interface HandlerSuccess {
8787 encoding: "application/json";
···9494 message?: string;
9595}
96969797-export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
9898-export type HandlerReqCtx<HA extends HandlerAuth = never> = {
9999- auth: HA;
100100- params: QueryParams;
101101- input: HandlerInput;
102102- req: HonoRequest;
103103- resetRouteRateLimits: () => Promise<void>;
104104-};
105105-export type Handler<HA extends HandlerAuth = never> = (
106106- ctx: HandlerReqCtx<HA>,
107107-) => Promise<HandlerOutput> | HandlerOutput;
9797+export type HandlerOutput = HandlerError | HandlerSuccess;