Skip to content

feat(design-client): add getDesignVariables operation - #618

Merged
flixlix merged 1 commit into
mainfrom
feat/design-client-variables
Nov 18, 2026
Merged

flixlix merged 1 commit into
mainfrom
feat/design-client-variables

Conversation

@flixlix

@flixlix flixlix commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds getDesignVariables (GET /v1/designs/{designId}/variables, permission design:view) to @epilot/design-client. It returns { design_id, variables }, where variables holds the design as flat design.* template variables (Components.Schemas.GetDesignVariablesRes). svc-email-templates-api needs it in the typed client.

The spec comes from packages/svc-design-builder-api-specs/openapi.yml on branch feat/design-variables of svc-design-builder-api (MR !219, still open). The endpoint is not in the prod spec yet, so this PR should merge only after that MR is deployed.

Syncing the spec also adds three operations that are already live in prod but were missing from the client:

  • createDesignDocumentJob (POST /v1/designs/document/generate/jobs)
  • getDesignDocumentJob (GET /v1/designs/document/generate/jobs/{jobId})
  • duplicateDesignAsV1 (POST /v1/designs/{designId}/duplicate-as-v1)

No operations or schemas were removed. The remaining diff consists of description text updates.

Release

The changeset adds a minor bump, from 0.6.0 to 0.7.0. npm's latest version is 0.5.7 because 0.6.0 was never published.

Testing

  • npm run typegen && npm run build
  • vitest run: 3/3 passed

Generated by Claude Code

Sync the design builder API spec, which also adds createDesignDocumentJob,
getDesignDocumentJob and duplicateDesignAsV1.
@flixlix
flixlix merged commit f9141fd into main Nov 18, 2026
7 checks passed
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