{"package":"@executor.sh/zoom","files":[{"path":"README.md","content":"# Zoom\n\nCovers the Zoom REST API: Meetings, Users, Accounts, Phone, Team Chat, Rooms, Events, Contact Center, Calendar, Mail, Whiteboard, Scheduler, Clips, Number Management, Video SDK, SCIM2, Quality and Workforce Management, Auto Dialer, Tasks, Marketplace, Commerce, Healthcare, QSS, Virtual Agent, IQ, AI Services, Chatbot and Hub. About 1,900 tools, one router per product. Mutations require approval.\n\n## Interface\n\nZoom's official OpenAPI documents, one per product, at `https://developers.zoom.us/api-hub/<product>/methods/endpoints.json` (for example `.../meetings/methods/endpoints.json`). All are served from `https://api.zoom.us/v2`. The documents' own security schemes have empty OAuth URLs, so the package redeclares them as bearer tokens.\n\n## Auth\n\n- OAuth (authorization code): create a General (user-managed) OAuth app in the [Zoom App Marketplace](https://marketplace.zoom.us/) under Develop > Build App. Add the Executor redirect URI shown on the connect page to the app's redirect URL allow list, and add the scopes you need on the app's Scopes page. Zoom uses the scopes configured on the app, so none are requested in the sign-in URL. Paste the Client ID and Client Secret on the connect page. Tokens are renewed automatically.\n\n## Known gaps\n\n- Server-to-Server OAuth (`account_credentials` grant with an account ID) is not offered: the framework's client-credentials grant cannot send the per-account `account_id`. Zoom has no long-lived API token.\n- Operations needing scopes your app lacks fail at call time; calls only succeed for products the Zoom plan includes.\n- Skipped operations: a few documents have one invalid path each (Phone, Chat, Rooms, Virtual Agent, IQ) and Rooms and Events have operations on other hosts (`multiple_hosts`).\n- Not available as OpenAPI (404): Zoom Docs, Workplace, Webinars (covered by Meetings and Events), Revenue Accelerator, Information Barriers. Zoom also runs an OAuth MCP server at `https://mcp.zoom.us/mcp/zoom/streamable` and a beta GraphQL API, not used here.\n- Spec documents are fetched live and unpinned, so tool names can shift when Zoom updates them.\n- Disconnecting does not revoke the token at Zoom (revocation is omitted; Zoom documents a query-string revoke call the host does not make). The connect flow has not been exercised live against Zoom.\n"},{"path":"icon.ts","content":"import type { AppIcon } from \"apps\";\n\n// Generated by scripts/icon.ts from the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wOCwyMDcuODcyIEM2Ni41NiwyMDcuODcyIDU4LjM2OCwyMDMuMjY0IDU0LjUyOCwxOTUuODQgQzQ5LjkyLDE4Ny4xMzYgNTEuNzEyLDE3Ni42NCA1OC42MjQsMTY5LjcyOCBMMTQ4LjQ4LDc5Ljg3MiBMODMuOTY4LDc5Ljg3MiBDNjYuMzA0LDc5Ljg3MiA1MS45NjgsNjUuNTM2IDUxLjk2OCw0Ny44NzIgTDE3MC43NTIsNDcuODcyIEMxNzkuMiw0Ny44NzIgMTg3LjM5Miw1Mi40OCAxOTEuMjMyLDU5LjkwNCBDMTk1Ljg0LDY4LjYwOCAxOTQuMDQ4LDc5LjEwNCAxODcuMTM2LDg2LjAxNiBMOTcuNTM2LDE3Ni4xMjggTDE3Mi4wMzIsMTc2LjEyOCBDMTg5LjY5NiwxNzYuMTI4IDIwNC4wMzIsMTkwLjIwOCAyMDQuMDMyLDIwNy44NzIgWiIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4K\",\n    \"mimeType\": \"image/svg+xml\"\n  }\n];\n"},{"path":"index.ts","content":"import {\n  accountRouter,\n  decodeJson,\n  defineApp,\n  defineProvider,\n  oauth2,\n  object,\n  router,\n  string,\n  withApprovals,\n} from \"apps\";\nimport { always } from \"apps/operations/approval\";\nimport { liveOpenapiRouter } from \"apps/openapi\";\nimport { icons } from \"./icon.js\";\nimport { sources } from \"./openapi.js\";\n\nconst Me = object({ id: string(), email: string() });\n\nconst zoom = defineProvider({\n  name: \"Zoom\",\n  hosts: [\"api.zoom.us\", \"zoom.us\"],\n  auth: {\n    // Zoom has no client registration: the connect page asks for a user-managed OAuth app's client.\n    // Scopes are fixed by the app's Scopes page, the host omits scope= from the\n    // authorize URL when scopes is empty. No revocationUrl: Zoom documents revoke as POST ?token=,\n    // while the host sends an RFC 7009 form body, which is unverified against Zoom.\n    oauth: oauth2({\n      authorizationUrl: \"https://zoom.us/oauth/authorize\",\n      tokenUrl: \"https://zoom.us/oauth/token\",\n      tokenEndpointAuthMethod: \"client_secret_basic\",\n      scopes: [],\n    }),\n  },\n  async health({ account, fetch, signal }) {\n    const response = await fetch(\"https://api.zoom.us/v2/users/me\", {\n      signal,\n      headers: { Authorization: `Bearer ${account.fields.access_token}`, Accept: \"application/json\" },\n    });\n    const me = await decodeJson(response, Me);\n    return { accountInfo: { externalId: me.id, username: me.email } };\n  },\n});\n\nexport default defineApp(\n  { user: { accounts: { zoom: zoom.many() } }, icons },\n  async ({ user, cache, fetch, signal }) => ({\n    tools: router(\n      await accountRouter(\n        user?.accounts.zoom ?? [],\n        (account) =>\n          router(\n            Object.fromEntries(\n              Object.entries(sources).map(([key, options]) => [\n                key,\n                withApprovals(liveOpenapiRouter({ ...options, cache, fetch, signal, account }), (tool) =>\n                  tool.kind === \"mutation\" ? always() : undefined,\n                ),\n              ]),\n            ),\n          ),\n        { signal },\n      ),\n      {\n        title: \"Zoom\",\n        description:\n          \"Zoom Meetings, Users, Phone, Team Chat, Rooms, Events, Contact Center, Calendar, Mail and the rest of the Zoom REST API.\",\n        icons,\n      },\n    ),\n  }),\n);\n"},{"path":"openapi.ts","content":"import type { OpenapiToolNamesOptions } from \"apps/openapi\";\n\n// Zoom publishes one OpenAPI document per product at a stable URL. All are served from\n// https://api.zoom.us, so each becomes its own router. Keys are the URL slugs.\nconst root = \"https://developers.zoom.us/api-hub\";\n\nconst specs = {\n  meetings: \"meetings\",\n  users: \"users\",\n  accounts: \"accounts\",\n  phone: \"phone\",\n  chat: \"chat\",\n  rooms: \"rooms\",\n  events: \"events\",\n  calendar: \"calendar\",\n  mail: \"mail\",\n  whiteboard: \"whiteboard\",\n  scheduler: \"scheduler\",\n  contactCenter: \"contact-center\",\n  clips: \"clips\",\n  numberManagement: \"number-management\",\n  videoSdk: \"video-sdk\",\n  scim2: \"scim2\",\n  qualityManagement: \"quality-management\",\n  workforceManagement: \"workforce-management\",\n  autoDialer: \"auto-dialer\",\n  tasks: \"tasks\",\n  marketplace: \"marketplace\",\n  commerce: \"commerce\",\n  healthcare: \"healthcare\",\n  qss: \"qss\",\n  virtualAgent: \"virtual-agent\",\n  iq: \"iq\",\n  aiServices: \"ai-services\",\n  chatbot: \"chatbot\",\n  hub: \"hub\",\n} as const;\n\n// The documents declare an apiKey \"Authorization\" header scheme and an OAuth scheme with empty\n// URLs. Zoom OAuth access tokens are sent as \"Authorization: Bearer <token>\", so both are\n// redeclared as bearer.\nconst common = {\n  allowedOrigin: \"https://api.zoom.us\",\n  securitySchemes: {\n    openapi_authorization: { type: \"http\", scheme: \"bearer\" },\n    openapi_oauth: { type: \"http\", scheme: \"bearer\" },\n    bearer: { type: \"http\", scheme: \"bearer\" },\n  },\n  fallbackSecurity: [{ bearer: [] }],\n  methods: {\n    oauth: [\"openapi_authorization\", \"openapi_oauth\", \"bearer\"].map((scheme) => ({\n      scheme,\n      field: \"access_token\",\n      part: \"value\" as const,\n      prefix: \"\",\n    })),\n  },\n  oauth: [],\n} satisfies Omit<OpenapiToolNamesOptions, \"source\">;\n\nexport const sources: Record<string, OpenapiToolNamesOptions> = Object.fromEntries(\n  Object.entries(specs).map(([key, slug]) => [\n    key,\n    { ...common, source: { url: `${root}/${slug}/methods/endpoints.json` } },\n  ]),\n);\n\n// scripts/tools.ts checks this one.\nexport const options = sources.meetings satisfies OpenapiToolNamesOptions;\n"},{"path":"package.json","content":"{\n  \"name\": \"@executor.sh/zoom\",\n  \"description\": \"Zoom Meetings, Users, Phone, Team Chat, Rooms, Events, Contact Center, Calendar, Mail and the rest of the Zoom REST API.\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"executor\": {\n    \"title\": \"Zoom\"\n  },\n  \"dependencies\": {\n    \"apps\": \"0.0.1-beta.140\"\n  }\n}\n"}]}