Skip to content

SDK alignment day: type PrescriptionEnvelope, fix getPrescription wrapper, contract tests #6

Description

@DrAlexHarrison

Per the 2026-06-08 API readiness review, the SDKs need a focused alignment day before being claimed to partners. fuel-backend PR #260 (2026-06-12) adds one more item:

  • activities.calculatePrescription is typed Promise<NutritionCalculateResponse> — partially right after #260 (tier/teaser/trial fields match), but full-tier exact values now live under .prescription.* (nested ActivityPrescription), not flat.
  • activities.getPrescription has been mistyped since the L13 fix — the endpoint returns a {prescription, safety} wrapper, not NutritionCalculateResponse.
  • Activity import response gained prescriptions[] (per-item tier-aware envelopes) + calculate request flags (global + per-activity).
  • Batch endpoints now debit rate limits per work-item (#259) — worth a doc note on the client.

Definition of done: typed PrescriptionEnvelope, corrected getPrescription return, import calculate support, and a contract test that runs against fuel-app-test so typings can't silently drift again (this drift was invisible until live verification).

Until then: SDKs stay out of partner-facing claims; the curl quickstart is the supported path.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions