atris 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atris/skills/drive/SKILL.md +20 -0
- package/package.json +1 -1
|
@@ -316,6 +316,26 @@ curl -s -X POST "https://api.atris.ai/api/integrations/google-drive/sheets/{spre
|
|
|
316
316
|
2. Search: `GET /google-drive/search?q=QUERY` (automatically searches My Drive + all shared drives)
|
|
317
317
|
3. Display results
|
|
318
318
|
|
|
319
|
+
### "Create a Google Doc"
|
|
320
|
+
1. Run bootstrap
|
|
321
|
+
2. Upload with Google Docs mime type — Drive auto-converts:
|
|
322
|
+
```bash
|
|
323
|
+
curl -s -X POST "https://api.atris.ai/api/integrations/google-drive/files" \
|
|
324
|
+
-H "Authorization: Bearer $TOKEN" \
|
|
325
|
+
-H "Content-Type: application/json" \
|
|
326
|
+
-d '{
|
|
327
|
+
"name": "My Document",
|
|
328
|
+
"content": "Document content here",
|
|
329
|
+
"mime_type": "application/vnd.google-apps.document"
|
|
330
|
+
}'
|
|
331
|
+
```
|
|
332
|
+
3. Returns file ID — the doc is now editable in Google Docs
|
|
333
|
+
|
|
334
|
+
**Native Google mime types for creation:**
|
|
335
|
+
- `application/vnd.google-apps.document` — Google Doc
|
|
336
|
+
- `application/vnd.google-apps.spreadsheet` — Google Sheet (content as CSV)
|
|
337
|
+
- `application/vnd.google-apps.presentation` — Google Slides
|
|
338
|
+
|
|
319
339
|
### "Upload a file to Drive"
|
|
320
340
|
1. Run bootstrap
|
|
321
341
|
2. Read the local file content
|
package/package.json
CHANGED