Skip to content

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

Package listing

@kody/meta

src/types.ts

16 lines · 839 B · TypeScript
export type { MetaAccountInfo, MetaAccountParams, MetaAuthMode } from './accounts.ts'
export type { GraphRequestParams, JsonObject, MetaGraphError } from './core.ts'
export type { GraphMethod, ScopeNeed } from './scopes.ts'
export type { PageGetParams, PageListParams, PagePostsParams, PagePublishParams } from './pages.ts'
export type { InstagramAccount, InstagramMediaParams, InstagramPublishParams } from './instagram.ts'
export type { WhatsAppSendParams } from './whatsapp.ts'
export type { SmokeTestResult, SmokeTestSetup, SmokeTestSuccess } from './smoke-test.ts'

/** Overview of shared Meta Graph param and result types. */
export default function metaTypes() {
	return {
		auth: ['oauth', 'system-user'],
		accountParams: ['integration', 'account', 'authMode', 'tokenSecret'],
		products: ['pages', 'instagram', 'whatsapp'],
	}
}