···11+import { AtprotoDid, DidDocument } from "@atproto/oauth-client-node";
22+33+export interface ATProtoUserIdentifierData {
44+ /**
55+ * Identify the account to login as
66+ *
77+ * * For **App Password** Auth - your email
88+ * * For **Oauth** - your handle minus the @
99+ */
1010+ identifier: string
1111+ did?: AtprotoDid
1212+}
1313+1414+export interface ATProtoAppData {
1515+ /**
1616+ * The [App Password](https://atproto.com/specs/xrpc#app-passwords) you created for your account
1717+ *
1818+ * This is created under https://bsky.app/settings/app-passwords
1919+ *
2020+ * **Use this if you are self-hosting Multi-Scrobbler on localhost or accessed like http://IP:PORT**
2121+ */
2222+ appPassword: string
2323+}
···11import { RequestRetryOptions } from "../common.js"
22+import { ATProtoAppData, ATProtoUserIdentifierData } from "./atproto.js"
23import { CommonClientConfig, CommonClientData, CommonClientOptions } from "./index.js"
3444-export interface TealData extends RequestRetryOptions {
55+export type TealData = RequestRetryOptions & ATProtoUserIdentifierData & Partial<ATProtoAppData> & {
56 /**
67 * The base URI of the Multi-Scrobbler to use for ATProto OAuth
78 *
89 * Only include this if you want to use OAuth. The URI must be a non-IP/non-local domain using https: protocol.
910 */
1011 baseUri?: string
1111- /**
1212- * Identify the account to login as
1313- *
1414- * * For **App Password** Auth - your email
1515- * * For **Oauth** - your handle minus the @
1616- */
1717- identifier: string
1818- /**
1919- * The [App Password](https://atproto.com/specs/xrpc#app-passwords) you created for your account
2020- *
2121- * This is created under https://bsky.app/settings/app-passwords
2222- *
2323- * **Use this if you are self-hosting Multi-Scrobbler on localhost or accessed like http://IP:PORT**
2424- */
2525- appPassword?: string
2612}
27132814export interface TealClientData extends TealData, CommonClientData {