Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/zoom

src/accounts.ts

35 lines · 974 B · TypeScript
export type {
	ZoomAuthInput,
	ZoomAuthLaneInfo,
	ZoomAuthMode,
	ZoomResolvedAuth,
} from './types.ts'
export {
	DEFAULT_ZOOM_INTEGRATION_NAME,
	ZOOM_ACCOUNT_ID_SETUP_URL,
	ZOOM_CLIENT_ID_SETUP_URL,
	ZOOM_OAUTH_CONNECT_URL,
	ZOOM_S2S_CLIENT_SECRET_SETUP_URL,
	accounts,
	buildOauthConnectUrl,
	buildSecretSetupUrl,
	resolveZoomAuth,
} from './core.ts'
import { accounts } from './core.ts'

/**
 * List Zoom auth lanes (OAuth vs Server-to-Server) and selection guidance.
 *
 * Multi-account: connect extra Zoom identities under distinct integration
 * names (`zoom-work`, …) or S2S secret suffixes and pass `account` /
 * `integrationName` on each call. There are no hard-coded personal aliases
 * or meeting IDs.
 *
 * @example
 * import listZoomAccounts from 'kody:@kody/zoom/accounts'
 * const lanes = listZoomAccounts()
 * // => [{ lane: 'oauth', integrationName: 'zoom', default: true, ... }, ...]
 */
export default function listZoomAccounts() {
	return accounts()
}