@devries-cameron20 / composio-1 / commits / 432234e13
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: auto-generate TypeScript SDK reference

zqureshi committed Oct 21, 2026 at 23:14 UTC 432234e132742199291875e754b36fc136281de7
3 files changed +10 -5
docs/content/reference/sdk-reference/typescript/composio.mdx
+3 -3
@@ -94,9 +94,9 @@ createSession(options?: { headers?: ComposioRequestHeaders }): Composio
94
95 **Parameters**
96
97 -| Name | Type |
98 -|------|------|
99 -| `options?` | `\{ headers?: ComposioRequestHeaders \}` |
97 +| Name | Type | Description |
98 +|------|------|-------------|
99 +| `options?` | `\{ headers?: ComposioRequestHeaders \}` | Options for the new instance. |
100
101 **Returns**
102
docs/content/reference/sdk-reference/typescript/session.mdx
+2 -1
@@ -190,7 +190,7 @@ is sent to the Composio backend as is: custom tools named in a
190 `COMPOSIO_MULTI_EXECUTE_TOOL` call are not run in-process here.
191
192 ```typescript
193 -async executeMeta(slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<string, unknown>, requestOptions?: ComposioRequestOptions): Promise<ToolRouterSessionExecuteResponse>
193 +async executeMeta(slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<string, unknown>, options?: ToolRouterSessionExecuteMetaOptions, requestOptions?: ComposioRequestOptions): Promise<ToolRouterSessionExecuteResponse>
194 ```
195
196 **Parameters**
@@ -199,6 +199,7 @@ async executeMeta(slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<strin
199 |------|------|-------------|
200 | `slug` | `ToolRouterSessionMetaToolSlug` | The meta tool slug to execute |
201 | `arguments_?` | `Record<string, unknown>` | Optional meta tool arguments |
202 +| `options?` | `ToolRouterSessionExecuteMetaOptions` | Experimental. The user's answers to an earlier `ComposioToolInputRequiredError` (`inputResponses`) and its `requestState`, as in `session.execute()` |
203 | `requestOptions?` | `ComposioRequestOptions` | |
204
205 **Returns**
docs/content/reference/sdk-reference/typescript/triggers.mdx
+5 -1
@@ -318,7 +318,7 @@ async subscribe(fn: (_data: IncomingTriggerPayload) => void, filters?: TriggerSu
318
319 | Name | Type | Description |
320 |------|------|-------------|
321 -| `fn` | `(_data: IncomingTriggerPayload) => void` | The function to call when a trigger is received |
321 +| `fn` | `(_data: IncomingTriggerPayload) => void` | The function to call when a trigger is received. It may be `async`. Errors thrown from — or promises rejected by — the function are contained and logged. |
322 | `filters?` | `TriggerSubscribeParams` | The filters to apply to the triggers |
323 | `onSubscriptionError?` | `(data: Record<string, unknown>) => void` | Optional callback invoked with the raw Pusher payload when the underlying subscription fails (for example on auth or permission rejection). The subscribe promise still resolves; this is the only programmatic signal of the failure. Errors thrown from — or promises rejected by — the callback are contained and logged. |
324
@@ -340,6 +340,10 @@ triggers.subscribe((data) => {
340
341 Unsubscribe from all the triggers
342
343 +Ends every subscription made with subscribe on this instance, including one that is
344 +still connecting, and closes the realtime connection so that a script can exit. A later
345 +`subscribe()` opens a new connection.
346 +
347 ```typescript
348 async unsubscribe(): Promise<void>
349 ```