What's Changed
- Add support for File Upload API endpoints by @ksinder in #565
- Sync the latest OpenAPI schema for Notion's Public API to
src/api-endpoints.ts
- Introduce the
/v1/file_uploads
family of API endpoints (File Upload Create, Get, List, Send, Complete)notion.fileUploads.send
builds aFormData
object to send fields viamultipart/form-data
- Add several refactors to extract common reused schema components, which drastically reduces the size of the file
- Sync the latest OpenAPI schema for Notion's Public API to
- Add file upload API example and fix Blob send logic by @ksinder in #566
- Fix the
FormData
parameter passing logic insrc/Client.ts
for the Send File Upload API - Add
examples/intro-to-notion-api/intermediate/5-upload-file.js
example of using the File Upload API to upload and attach a file
- Fix the
Full Changelog: f2e1665...v3.1.0
View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.1.0