Skip to content

Sync refactors from latest Notion public OpenAPI schema #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ksinder
Copy link
Contributor

@ksinder ksinder commented Jul 31, 2025

This PR syncs the latest changes from Notion's public OpenAPI schema into src/api-endpoints.ts.

  • Most of the changes are no-op refactors, extracting existing types into more granular request and response shapes, e.g. GroupObjectResponse, InternalFileResponse, and FilePageIconResponse are separate variables.
  • Add support to the oauth/token endpoint for refreshing.
    • Specifically, OauthTokenBodyParameters has a new variant of parameter shape that is supported: { grant_type: "refresh_token"; refresh_token: string }

@ksinder ksinder requested a review from Copilot July 31, 2025 16:17
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR syncs refactors from Notion's public OpenAPI schema to improve type granularity and add OAuth refresh token support. Most changes extract inline type definitions into reusable named types for better maintainability.

  • Extract common type patterns like InternalFileResponse, ContentWithRichTextAndColorResponse, and GroupObjectResponse into reusable types
  • Add support for OAuth refresh token flow in addition to authorization code flow
  • Update language options list with new Java variant and alphabetical reordering

@ksinder ksinder closed this Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant