import {
TWITCH_ALLOWED_HOSTS,
TWITCH_AUTHORIZE_URL,
TWITCH_CALLBACK_URL,
TWITCH_DASHBOARD_URL,
TWITCH_HELIX_BASE,
TWITCH_INTEGRATION,
TWITCH_SCOPES,
TWITCH_TOKEN_URL,
byoConnectUrl,
connectOauthUrl,
} from './client.ts'
/** Describe the official Twitch helpers package, connect URLs, and scopes. */
export default async function twitchOverview() {
return {
package: '@kody/twitch',
integration: TWITCH_INTEGRATION,
apiBaseUrl: TWITCH_HELIX_BASE,
callbackUrl: TWITCH_CALLBACK_URL,
connectUrl: connectOauthUrl(),
byoConnectUrl: byoConnectUrl(),
authorizeUrl: TWITCH_AUTHORIZE_URL,
tokenUrl: TWITCH_TOKEN_URL,
dashboardUrl: TWITCH_DASHBOARD_URL,
requiredHosts: [...TWITCH_ALLOWED_HOSTS],
scopes: [...TWITCH_SCOPES],
exports: [
'smoke-test',
'get-me',
'get-user',
'get-channel',
'get-stream',
'list-follows',
'list-followers',
'list-followed-streams',
'list-chatters',
'send-chat-message',
'update-channel-info',
'request',
],
safety: {
sendingRequiresConfirmation: true,
channelUpdatesRequireConfirmation: true,
dryRunAvailable: true,
jobsEnabled: false,
},
}
}