Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { defineConfig } from '@hey-api/openapi-ts';
import { services } from './services';
/**
* hey-api config for the SDK's generated layer.
*
* Everything emitted goes under ./generated/ — treat that folder as build
* output (do not hand-edit; it is overwritten on regenerate). The hand-written
* SDK code lives in ./src and imports from ./generated/.
*
* One entry per service. Each service produces:
* - ./generated/<service>/sdk.gen.ts (typed SDK functions)
* - ./generated/<service>/types.gen.ts (generated TS models)
* - ./generated/<service>/client.gen.ts (default client instance)
* - ./generated/<service>/client/ (client implementation, self-contained)
*
* Input specs live in ./specs/<service>.json, refreshed from the monorepo's
* service-clients package by `bun run sync-specs` (or end-to-end from the
* Rust services with `just update-generated`).
*/
export default defineConfig(
services.map((service) => ({
input: `./specs/${service}.json`,
output: {
path: `./generated/${service}`,
},
plugins: [
'@hey-api/client-fetch',
'@hey-api/typescript',
{
name: '@hey-api/sdk',
operations: { strategy: 'single', methods: 'instance' },
},
],
})),
);