Repository navigation
Add a Notion template generated from Notion's OpenAPI description - #463
Merged
tnkuehne merged 2 commits intoNov 28, 2026
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 4011496 | Nov 28 2026, 05:27 PM |
tnkuehne
force-pushed
the
notion-template
branch
from
November 28, 2026 14:40
381b3bd to
29b3b77
Compare
tnkuehne
marked this pull request as ready for review
November 28, 2026 14:47
tnkuehne
changed the base branch from
main
to
managed-oauth-scopeless-basic-revocation
November 28, 2026 16:40
tnkuehne
force-pushed
the
notion-template
branch
from
November 28, 2026 16:40
c20b6af to
2e029a3
Compare
tnkuehne
force-pushed
the
notion-template
branch
2 times, most recently
from
November 28, 2026 16:58
eef8e91 to
2332048
Compare
The template offers Notion's API for the person who connects their account: pages and their content, databases, data sources and views, comments, file uploads, meeting notes, Custom Agents and their sessions, and Agent Skills. streamSessionMessage reads a session turn as Notion's server-sent events. The generator sends a header the description requires with one allowed value, such as Notion-Version, on every request instead of taking it as an input, also when the value comes from a referenced schema; sends the path parameters a rule names as the API encoded them, such as Notion's property IDs; and leaves out the string values a union lists next to a named type of any string.
Notion revokes an access token and the tokens issued before it, and answers a refresh token without revoking anything (checked against Notion). The managed OAuth fixture answers Notion's refresh tokens the same way.
tnkuehne
force-pushed
the
notion-template
branch
from
November 28, 2026 17:27
2332048 to
4011496
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
A Notion template.
2026-03-11, generated from Notion's published OpenAPI description (https://developers.notion.com/openapi.json):streamSessionMessagesends a session message withAccept: text/event-streamand answers with the turn's events (session.snapshot,event.provisional,event.committed,stream.timeout,stream.end,stream.error), and replays a turn from a committed event withcontinue_from.getPagePropertysends property IDs as Notion returned them, URL-encoded.notionBetafor Notion's opt-in betas, such asstatus-group-filters-2026-10-06.updateAgentStatusoffers the deprecated agent status endpoint, which Notion still serves.code,message,request_idandadditional_data. A write that was saved although its answer timed out returns itsretry_guidanceandcommitted_resource_id.rate_limitedwithRetry-After. A connection Notion blocked (public_api_request_blocked) returns Notion's error instead.Connection.
notionclient is used when present; it needs Allow managed OAuth clients without scopes and with HTTP Basic revocation #467, which this PR builds on. Otherwise the app asks forNOTION_CLIENT_IDandNOTION_CLIENT_SECRETof the organization's own OAuth integration.Generator.
Notion-Version, is sent on every request instead of being an input (fixedHeaders). The generated types describe that version.encodedPathParametersnames path parameters the API hands out URL-encoded; the runtime sends them as they are when they hold only unreserved characters and percent escapes.IdRequest | "notion_ai".rest.tssends the fixed headers; the other REST templates get the updated copy.Screenshots
The connection page. The favicon is Notion's own icon from notion.com.
Not shown: the connection error alert.
Tests
pnpm check, all template tests, the generator tests and the app runtime's OAuth tests.Live against Notion (an OAuth integration in a workspace on the free plan):
getPagePropertywith property IDs as Notion returned them, URL-encoded (%5BT%40s,%3BaJY,%5CCaband others), for every property type of a test database, with non-ASCII names and values. Notion also accepts the IDs encoded a second time; the template sends them as Notion's reference and SDK do.reconnect_required.Not run live, because the test workspace does not offer them:
uploadSkill: the workspace's only skill is in use.completeFileUpload) andcreateMeetingNote: not available on the free plan.