What's Changed
- API schema sync: small consolidation refactors and fixes by @ksinder in #622
- API schema sync: remove
data_source_id
type fromDataSource.database_parent
by @ksinder in #626 - Sync API schema: CreatePage + templates;
workspace_id
field; query wiki filters by @ksinder in #628- Including
workspace_id
in bot responses alongsideworkspace_name
- Introducing a new API endpoint
notion.dataSources.listTemplates
with one path parameter,data_source_id
, for listing the available page templates under a data source - Adding a new optional parameter
template
toCreatePageBodyParameters
with polymorphictype
options ofnone
(don't apply any template; existing behavior),default
(apply data source's default template), andtemplate_id
(apply a custom template ID) - Adding a new optional parameter
result_type
toQueryDataSourceBodyParameters
to allow for only surfacing"page"
or"data_source"
result types in the case of wikis (where databases can be nested)
- Including
Links
- Full Changelog: 1e9562d...v5.2.0
- NPM Package: https://npmjs.com/package/@notionhq/client/v/5.2.0