Skip to content

Ship the generated spec inside the Console web SDK #14436

Closed

Description

@ChiragAgg5k

Tracks PR #14435.

Plan

Goal
Ship the exact spec the Console web SDK (@appwrite.io/console) was generated from inside the package, as spec.json. A later preview workflow can then lay a PR's own spec over that exact base, so one PR can change both the API and the Console.

What changes

  • src/Appwrite/Platform/Tasks/SDKs.php: after a successful generation, only for platform console + language web (and not examples-only), a new private addSpec() writes spec.json into the generated SDK directory, adds spec.json to package.json files, and exports it as ./spec.json. Other SDKs are unchanged.
  • composer.lock: appwrite/sdk-generator 5.0.1 → 5.7.1 (the ^5.0 constraint is unchanged). The Console web SDK generated with 5.0.1 from the current spec does not compile (avatars.ts: Cannot find name 'rest').
  • Downstream: releases push the generated directory to appwrite/sdk-for-console, so spec.json gets committed there too. Cloud releases and pkg.vc previews pick this up on the next appwrite/server-ce bump.

Remaining steps

  1. Review and merge feat(sdks): ship the generated spec inside the Console web SDK #14435.
  2. Bump appwrite/server-ce in Cloud so its Console SDK builds (releases and pkg.vc previews) include spec.json.
  3. Check that the next @appwrite.io/console release (and appwrite/sdk-for-console) contains spec.json and that @appwrite.io/console/spec.json resolves.
  4. Follow-up PR: a preview workflow that merges a PR's spec over node_modules/@appwrite.io/console/spec.json, publishes to pkg.pr.new, and lets the Console pin that preview.

Risks

  • The package grows by about 0.4 MB compressed.
  • The sdk-generator jump (5.0.1 → 5.7.1) can change the output of other SDKs generated from this repo. Spot-check diffs on the next SDK release.

Done when

Activity

  1. self-assigned this
    on Oct 13, 2026
  2. added
    product / avatars
    product / console
    product / databases
    product / messaging
    product / sites
    product / storage
    product / vcs
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / avatarsproduct / consoleproduct / databasesproduct / messagingproduct / sitesproduct / storageproduct / vcs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions