@elizaos/plugin-twitch 2.0.3-beta.6 → 2.0.3-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ import type { IAgentRuntime } from "@elizaos/core";
2
+ import type { TwitchRole, TwitchSettings } from "./types.js";
3
+ export declare const DEFAULT_TWITCH_ACCOUNT_ID = "default";
4
+ export type TwitchAccountConfig = Partial<Omit<TwitchSettings, "additionalChannels" | "allowedRoles" | "allowedUserIds" | "accountId">> & {
5
+ accountId?: string;
6
+ id?: string;
7
+ additionalChannels?: string[] | string;
8
+ channels?: string[] | string;
9
+ allowedRoles?: TwitchRole[] | string;
10
+ allowedUserIds?: string[] | string;
11
+ };
12
+ export declare function normalizeTwitchAccountId(accountId?: unknown): string;
13
+ export declare function listTwitchAccountIds(runtime: IAgentRuntime): string[];
14
+ export declare function resolveDefaultTwitchAccountId(runtime: IAgentRuntime): string;
15
+ export declare function readTwitchAccountId(...sources: unknown[]): string | undefined;
16
+ export declare function resolveTwitchAccountSettings(runtime: IAgentRuntime, requestedAccountId?: string | null): TwitchSettings;
17
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE7D,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACvC,IAAI,CACF,cAAc,EACd,oBAAoB,GAAG,cAAc,GAAG,gBAAgB,GAAG,WAAW,CACvE,CACF,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CACpC,CAAC;AAiGF,wBAAgB,wBAAwB,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAIpE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAerE;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAU5E;AAED,wBAAgB,mBAAmB,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CA8B7E;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,aAAa,EACtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GACjC,cAAc,CA4DhB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Twitch ConnectorAccountManager provider.
3
+ *
4
+ * Adapts the multi-account resolution helpers in `accounts.ts` to the
5
+ * `ConnectorAccountProvider` contract from
6
+ * `@elizaos/core/connectors/account-manager`.
7
+ *
8
+ * Source of truth for accounts is character settings (`character.settings.twitch`)
9
+ * + TWITCH_ACCOUNTS JSON env var + single-account env vars (TWITCH_USERNAME,
10
+ * TWITCH_CLIENT_ID, TWITCH_ACCESS_TOKEN, TWITCH_REFRESH_TOKEN, TWITCH_CHANNEL).
11
+ *
12
+ * AccountKey is the twitch user id (or username when only that's available).
13
+ * Role is `OWNER` since twitch OAuth tokens authenticate the user/channel.
14
+ */
15
+ import type { ConnectorAccountProvider, IAgentRuntime } from "@elizaos/core";
16
+ export declare const TWITCH_PROVIDER_ID = "twitch";
17
+ export declare function createTwitchConnectorAccountProvider(runtime: IAgentRuntime): ConnectorAccountProvider;
18
+ //# sourceMappingURL=connector-account-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-account-provider.d.ts","sourceRoot":"","sources":["../src/connector-account-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAIV,wBAAwB,EACxB,aAAa,EACd,MAAM,eAAe,CAAC;AASvB,eAAO,MAAM,kBAAkB,WAAW,CAAC;AA4B3C,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,aAAa,GACrB,wBAAwB,CA+C1B"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Twitch chat integration plugin for ElizaOS.
3
+ *
4
+ * This plugin provides Twitch chat integration using the @twurple library.
5
+ */
6
+ import type { Plugin } from "@elizaos/core";
7
+ export * from "./accounts.js";
8
+ export { TwitchService } from "./service.js";
9
+ export * from "./types.js";
10
+ /**
11
+ * Twitch plugin definition.
12
+ */
13
+ declare const twitchPlugin: Plugin;
14
+ export default twitchPlugin;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAG3D,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,cAAc,YAAY,CAAC;AAW3B;;GAEG;AACH,QAAA,MAAM,YAAY,EAAE,MAsGnB,CAAC;AAEF,eAAe,YAAY,CAAC"}