Skip to main content
Glama
index.ts2.02 kB
import type { IntlayerConfig } from '@intlayer/types'; import type { FetcherOptions } from '../fetcher'; import { getAiAPI } from './ai'; import { getAuditAPI } from './audit'; import { getDictionaryAPI } from './dictionary'; import { getEditorAPI } from './editor'; import { getNewsletterAPI } from './newsletter'; import { getOAuthAPI } from './oAuth'; import { getOrganizationAPI } from './organization'; import { getProjectAPI } from './project'; import { getSearchAPI } from './search'; import { getStripeAPI } from './stripe'; import { getTagAPI } from './tag'; import { getUserAPI } from './user'; interface IntlayerAPIReturn { organization: ReturnType<typeof getOrganizationAPI>; project: ReturnType<typeof getProjectAPI>; user: ReturnType<typeof getUserAPI>; oAuth: ReturnType<typeof getOAuthAPI>; dictionary: ReturnType<typeof getDictionaryAPI>; stripe: ReturnType<typeof getStripeAPI>; ai: ReturnType<typeof getAiAPI>; tag: ReturnType<typeof getTagAPI>; search: ReturnType<typeof getSearchAPI>; editor: ReturnType<typeof getEditorAPI>; newsletter: ReturnType<typeof getNewsletterAPI>; audit: ReturnType<typeof getAuditAPI>; } export const getIntlayerAPI = ( authAPIOptions: FetcherOptions = {}, intlayerConfig?: IntlayerConfig ): IntlayerAPIReturn => ({ organization: getOrganizationAPI(authAPIOptions, intlayerConfig), project: getProjectAPI(authAPIOptions, intlayerConfig), user: getUserAPI(authAPIOptions, intlayerConfig), oAuth: getOAuthAPI(intlayerConfig), dictionary: getDictionaryAPI(authAPIOptions, intlayerConfig), stripe: getStripeAPI(authAPIOptions, intlayerConfig), ai: getAiAPI(authAPIOptions, intlayerConfig), tag: getTagAPI(authAPIOptions, intlayerConfig), search: getSearchAPI(authAPIOptions, intlayerConfig), editor: getEditorAPI(authAPIOptions, intlayerConfig), newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig), audit: getAuditAPI(authAPIOptions, intlayerConfig), }); export type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server