Skip to content

Commit c9b0c2c

Browse files
committed
docs
1 parent fc4ecc8 commit c9b0c2c

File tree

5 files changed

+88
-2
lines changed

5 files changed

+88
-2
lines changed

apps/docs/components/icons.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,19 @@ export function TelegramIcon(props: SVGProps<SVGSVGElement>) {
18721872
)
18731873
}
18741874

1875+
export function TinybirdIcon(props: SVGProps<SVGSVGElement>) {
1876+
return (
1877+
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'>
1878+
<rect x='0' y='0' width='24' height='24' fill='#2EF598' rx='6' />
1879+
<g transform='translate(2, 2) scale(0.833)'>
1880+
<path d='M25 2.64 17.195.5 14.45 6.635z' fill='#1E7F63' />
1881+
<path d='M17.535 17.77 10.39 15.215 6.195 25.5z' fill='#1E7F63' />
1882+
<path d='M0 11.495 17.535 17.77 20.41 4.36z' fill='#1F2437' />
1883+
</g>
1884+
</svg>
1885+
)
1886+
}
1887+
18751888
export function ClayIcon(props: SVGProps<SVGSVGElement>) {
18761889
return (
18771890
<svg {...props} xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 400 400'>

apps/docs/components/ui/icon-mapping.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ import {
105105
SupabaseIcon,
106106
TavilyIcon,
107107
TelegramIcon,
108+
TinybirdIcon,
108109
TranslateIcon,
109110
TrelloIcon,
110111
TTSIcon,
@@ -227,6 +228,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
227228
tavily: TavilyIcon,
228229
telegram: TelegramIcon,
229230
thinking: BrainIcon,
231+
tinybird: TinybirdIcon,
230232
translate: TranslateIcon,
231233
trello: TrelloIcon,
232234
tts: TTSIcon,

apps/docs/content/docs/en/tools/google_drive.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ Download a file from Google Drive with complete metadata (exports Google Workspa
9696
| `fileId` | string | Yes | The ID of the file to download |
9797
| `mimeType` | string | No | The MIME type to export Google Workspace files to \(optional\) |
9898
| `fileName` | string | No | Optional filename override |
99-
| `includeRevisions` | boolean | No | Whether to include revision history in the metadata \(default: true\) |
99+
| `includeRevisions` | boolean | No | Whether to include revision history in the metadata \(default: true, returns first 100 revisions\) |
100100

101101
#### Output
102102

103103
| Parameter | Type | Description |
104104
| --------- | ---- | ----------- |
105-
| `file` | object | Downloaded file stored in execution files |
105+
| `file` | object | Downloaded file data |
106106

107107
### `google_drive_list`
108108

apps/docs/content/docs/en/tools/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"tavily",
103103
"telegram",
104104
"thinking",
105+
"tinybird",
105106
"translate",
106107
"trello",
107108
"tts",
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: Tinybird
3+
description: Send events and query data with Tinybird
4+
---
5+
6+
import { BlockInfoCard } from "@/components/ui/block-info-card"
7+
8+
<BlockInfoCard
9+
type="tinybird"
10+
color="#2EF598"
11+
/>
12+
13+
## Usage Instructions
14+
15+
Interact with Tinybird using the Events API to stream JSON or NDJSON events, or use the Query API to execute SQL queries against Pipes and Data Sources.
16+
17+
18+
19+
## Tools
20+
21+
### `tinybird_events`
22+
23+
Send events to a Tinybird Data Source using the Events API. Supports JSON and NDJSON formats with optional gzip compression.
24+
25+
#### Input
26+
27+
| Parameter | Type | Required | Description |
28+
| --------- | ---- | -------- | ----------- |
29+
| `base_url` | string | Yes | Tinybird API base URL \(e.g., https://api.tinybird.co or https://api.us-east.tinybird.co\) |
30+
| `datasource` | string | Yes | Name of the Tinybird Data Source to send events to |
31+
| `data` | string | Yes | Data to send as NDJSON \(newline-delimited JSON\) or JSON string. Each event should be a valid JSON object. |
32+
| `wait` | boolean | No | Wait for database acknowledgment before responding. Enables safer retries but introduces latency. Defaults to false. |
33+
| `format` | string | No | Format of the events data: "ndjson" \(default\) or "json" |
34+
| `compression` | string | No | Compression format: "none" \(default\) or "gzip" |
35+
| `token` | string | Yes | Tinybird API Token with DATASOURCE:APPEND or DATASOURCE:CREATE scope |
36+
37+
#### Output
38+
39+
| Parameter | Type | Description |
40+
| --------- | ---- | ----------- |
41+
| `successful_rows` | number | Number of rows successfully ingested |
42+
| `quarantined_rows` | number | Number of rows quarantined \(failed validation\) |
43+
44+
### `tinybird_query`
45+
46+
Execute SQL queries against Tinybird Pipes and Data Sources using the Query API.
47+
48+
#### Input
49+
50+
| Parameter | Type | Required | Description |
51+
| --------- | ---- | -------- | ----------- |
52+
| `base_url` | string | Yes | Tinybird API base URL \(e.g., https://api.tinybird.co\) |
53+
| `query` | string | Yes | SQL query to execute. Specify your desired output format \(e.g., FORMAT JSON, FORMAT CSV, FORMAT TSV\). JSON format provides structured data, while other formats return raw text. |
54+
| `pipeline` | string | No | Optional pipe name. When provided, enables SELECT * FROM _ syntax |
55+
| `token` | string | Yes | Tinybird API Token with PIPE:READ scope |
56+
57+
#### Output
58+
59+
| Parameter | Type | Description |
60+
| --------- | ---- | ----------- |
61+
| `data` | json | Query result data. For FORMAT JSON: array of objects. For other formats \(CSV, TSV, etc.\): raw text string. |
62+
| `rows` | number | Number of rows returned \(only available with FORMAT JSON\) |
63+
| `statistics` | json | Query execution statistics - elapsed time, rows read, bytes read \(only available with FORMAT JSON\) |
64+
65+
66+
67+
## Notes
68+
69+
- Category: `tools`
70+
- Type: `tinybird`

0 commit comments

Comments
 (0)