Skip to main content
← Back to list
01Issue
FeatureShippedExtensionsPublic
Assigneesstack72

Relationships

↔ sibling #4532

#4450 GCP codegen: generate media upload/download from Discovery mediaUpload and supportsMediaDownload

Opened by zack · 11/5/2026· Shipped 11/13/2026

The GCP codegen pipeline (codegen/gcp/pipeline.ts, extensionModelGenerator.ts, libGenerator.ts) ignores the Discovery document fields supportsMediaUpload, mediaUpload (simple and resumable protocols), supportsMediaDownload and useMediaDownloadService. Every generated GCP model therefore sends JSON-only bodies and parses JSON-only responses, so no media-capable method (storage.objects insert/get, youtube uploads, drive.files create/update/get/export, and others) can send or receive file contents.

A concrete symptom: the generated drive files export method calls files.export, which returns raw exported bytes, and then parses them as JSON.

Proposal: emit generic media methods from those Discovery fields: multipart and resumable upload, plus alt=media streamed download into a file spec. This needs a binary-capable authorized request helper in the shared lib, and changing _lib/gcp.ts force-bumps every GCP model, so it needs a design pass on blast radius.

Context: swamp-club#4449 addresses Drive Files alone through a codegen enrichment; this issue tracks the generic, provider-wide version.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 2 MOREISSUE_LINKED+ 8 MOREREVIEW+ 12 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

11/13/2026, 9:14:04 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7211/13/2026, 6:33:30 PM
stack72 linked sibling of #453211/13/2026, 6:33:56 PM
Editable. Press Enter to edit.

system commented 11/5/2026, 9:06:03 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.