Skip to main content

Cloudflare/stream

@webframp/cloudflare/streamv2026.07.27.1· 1d agoMODELS
01README

Cloudflare Stream — video upload, encoding, delivery, live streaming

02Release Notes

2026.07.27.1

Fixed: Regenerated from scripts/cloudflare-codegen after two generator bugs were repaired (webframp/swamp-extensions#284).

  1. Methods referencing an undeclared path parameter did not compile. The generator derived a method's arguments schema and execute signature from the OpenAPI parameters list, but built the request URL from the path template. Where the Cloudflare spec omits a declaration for a {placeholder} — which it does in several places — the result was a method with arguments: z.object({}) and an unused _args parameter whose body still interpolated args.<name>. Those methods failed type checking and were uncallable even if they had compiled, because the argument was never declared. Path-template placeholders are now unioned into the declared parameters, so the schema, the signature, and the body agree.

  2. Generated tests could request a URL the mock server did not serve. Test arguments merged the request-body fixture over the path-parameter values, so a body property sharing a name with a path parameter (commonly id) substituted its own example value into the URL. The request then missed the mock and failed with Cloudflare API error: Not found. Path parameters now take precedence, matching what the generated model already does by excluding path-parameter names from the request body.

Upgrade note: No API surface change and no method was added or removed. If this extension type-checked and tested cleanly before, its behavior is unchanged and only the version moved. Extensions that previously failed deno check or deno task test now pass.

03Models1
cloudflare/stream.tsv2026.07.27.1

Global Arguments

ArgumentTypeDescription
apiTokenstringCloudflare API token
accountIdstringCloudflare account ID
fn list_videos(status?: string, creator?: string, type?: string, asc?: string, video_name?: string, search?: string, start?: string, end?: string, include_counts?: string, id?: string, name?: string, live_input_id?: string, before?: string, after?: string, limit?: number)
List videos
ArgumentTypeDescription
status?string
creator?string
type?string
asc?string
video_name?string
search?string
start?string
end?string
include_counts?string
id?stringFilter by video ID(s). Can be a single ID or a comma-separated list of IDs.
name?stringFilter by video name/UID(s). Can be a single name or a comma-separated list.
live_input_id?stringFilter by live input ID to find videos associated with a specific live stream.
before?stringAlias for 'end'. Returns videos created before this date/time (RFC 3339 format).
after?stringAlias for 'start'. Returns videos created after this date/time (RFC 3339 format).
limit?numberMaximum number of videos to return (default 1000, max 1000).
fn stream_videos_initiate_video_uploads_using_tus(direct_user?: string)
Initiate video uploads using TUS
ArgumentTypeDescription
direct_user?string
fn create_stream_video_clipping_clip_videos_given_a_start_and_end_time(allowedOrigins?: unknown, clippedFromVideoUID: unknown, creator?: unknown, endTimeSeconds: unknown, input?: string, meta?: unknown, name?: string, requireSignedURLs?: unknown, scheduledDeletion?: unknown, startTimeSeconds: unknown, thumbnailTimestampPct?: unknown, url?: string, watermark?: unknown)
Clip videos given a start and end time
ArgumentTypeDescription
allowedOrigins?unknown
clippedFromVideoUIDunknown
creator?unknown
endTimeSecondsunknown
input?stringA video's URL. Preferred over 'url'.
meta?unknown
name?stringA name for the video.
requireSignedURLs?unknown
scheduledDeletion?unknown
startTimeSecondsunknown
thumbnailTimestampPct?unknown
url?stringA video's URL (legacy field, use 'input' instead).
watermark?unknown
fn create_stream_videos_upload_videos_from_a_url(allowedOrigins?: unknown, creator?: unknown, input?: string, meta?: unknown, name?: string, requireSignedURLs?: unknown, scheduledDeletion?: unknown, thumbnailTimestampPct?: unknown, url?: string, watermark?: unknown)
Upload videos from a URL
ArgumentTypeDescription
allowedOrigins?unknown
creator?unknown
input?stringA video's URL. The server must be publicly routable and support `HTTP HEAD` r...
meta?unknown
name?stringA video's name. Used for legacy compatibility.
requireSignedURLs?unknown
scheduledDeletion?unknown
thumbnailTimestampPct?unknown
url?stringA video's URL. The server must be publicly routable and support `HTTP HEAD` r...
watermark?unknown
fn create_stream_videos_upload_videos_via_direct_upload_ur_ls(allowedOrigins?: unknown, creator?: unknown, expiry?: string, maxDurationSeconds: unknown, meta?: unknown, requireSignedURLs?: unknown, scheduledDeletion?: unknown, thumbnailTimestampPct?: unknown, watermark?: unknown)
Upload videos via direct upload URLs
ArgumentTypeDescription
allowedOrigins?unknown
creator?unknown
expiry?stringThe date and time after upload when videos will not be accepted.
maxDurationSecondsunknown
meta?unknown
requireSignedURLs?unknown
scheduledDeletion?unknown
thumbnailTimestampPct?unknown
watermark?unknown
fn list_signing_keys()
List signing keys
fn create_signing_keys()
Create signing keys
fn delete_signing_keys(identifier: string)
Delete signing keys
ArgumentTypeDescription
identifierstring
fn list_live_inputs(include_counts?: string)
List live inputs
ArgumentTypeDescription
include_counts?string
fn create_a_live_input(defaultCreator?: unknown, deleteRecordingAfterDays?: unknown, enabled?: unknown, meta?: unknown, preferLowLatency?: unknown, recording?: unknown)
Create a live input
ArgumentTypeDescription
defaultCreator?unknown
deleteRecordingAfterDays?unknown
enabled?unknown
meta?unknown
preferLowLatency?unknown
recording?unknown
fn get_stream_live_inputs_retrieve_a_live_input(live_input_identifier: string)
Retrieve a live input
ArgumentTypeDescription
live_input_identifierstring
fn update_a_live_input(live_input_identifier: string, defaultCreator?: unknown, deleteRecordingAfterDays?: unknown, enabled?: unknown, meta?: unknown, preferLowLatency?: unknown, recording?: unknown)
Update a live input
ArgumentTypeDescription
live_input_identifierstring
defaultCreator?unknown
deleteRecordingAfterDays?unknown
enabled?unknown
meta?unknown
preferLowLatency?unknown
recording?unknown
fn delete_a_live_input(live_input_identifier: string)
Delete a live input
ArgumentTypeDescription
live_input_identifierstring
fn stream_live_inputs_disable_a_live_input(live_input_identifier: string)
Disable a live input
ArgumentTypeDescription
live_input_identifierstring
fn stream_live_inputs_enable_a_live_input(live_input_identifier: string)
Enable a live input
ArgumentTypeDescription
live_input_identifierstring
fn list_all_outputs_associated_with_a_specified_live_input(live_input_identifier: string)
List all outputs associated with a specified live input
ArgumentTypeDescription
live_input_identifierstring
fn create_a_new_output_connected_to_a_live_input(live_input_identifier: string, enabled?: unknown, streamKey: unknown, url: unknown)
Create a new output, connected to a live input
ArgumentTypeDescription
live_input_identifierstring
enabled?unknown
streamKeyunknown
urlunknown
fn update_an_output(output_identifier: string, live_input_identifier: string, enabled: unknown)
Update an output
ArgumentTypeDescription
output_identifierstring
live_input_identifierstring
enabledunknown
fn delete_an_output(output_identifier: string, live_input_identifier: string)
Delete an output
ArgumentTypeDescription
output_identifierstring
live_input_identifierstring
fn stream_live_inputs_rotate_keys_for_a_live_input(live_input_identifier: string)
Rotate keys for a live input
ArgumentTypeDescription
live_input_identifierstring
fn get_stream_videos_storage_usage(creator?: string)
Storage use
ArgumentTypeDescription
creator?string
fn get_account_stream_usage()
Get account Stream usage
fn list_watermark_profiles()
List watermark profiles
fn create_watermark_profiles_via_basic_upload(name?: unknown, opacity?: unknown, padding?: unknown, position?: unknown, scale?: unknown, url?: string)
Create watermark profiles via basic upload
ArgumentTypeDescription
name?unknown
opacity?unknown
padding?unknown
position?unknown
scale?unknown
url?stringURL of the watermark image to copy.
fn get_stream_watermark_profile_watermark_profile_details(identifier: string)
Watermark profile details
ArgumentTypeDescription
identifierstring
fn delete_watermark_profiles(identifier: string)
Delete watermark profiles
ArgumentTypeDescription
identifierstring
fn get_stream_webhook_view_webhooks()
View webhooks
fn create_webhooks(notificationUrl?: unknown, notification_url?: string)
Create webhooks
ArgumentTypeDescription
notificationUrl?unknown
notification_url?stringThe URL where webhooks will be sent.
fn delete_webhooks()
Delete webhooks
fn get_stream_videos_retrieve_video_details(identifier: string)
Retrieve video details
ArgumentTypeDescription
identifierstring
fn update_video_details(identifier: string, allowedOrigins?: unknown, creator?: unknown, maxDurationSeconds?: unknown, meta?: unknown, publicDetails?: object, requireSignedURLs?: unknown, scheduledDeletion?: unknown, thumbnailTimestampPct?: unknown, uid?: string, uploadExpiry?: unknown)
Edit video details
ArgumentTypeDescription
identifierstring
allowedOrigins?unknown
creator?unknown
maxDurationSeconds?unknown
meta?unknown
publicDetails?objectPublic details for the video including title, share link, channel link, and l...
requireSignedURLs?unknown
scheduledDeletion?unknown
thumbnailTimestampPct?unknown
uid?stringThe unique identifier for the video. Can be used to verify the video being up...
uploadExpiry?unknown
fn delete_video(identifier: string)
Delete video
ArgumentTypeDescription
identifierstring
fn list_audio_tracks(identifier: string)
List additional audio tracks on a video
ArgumentTypeDescription
identifierstring
fn create_add_audio_track(identifier: string, label: unknown, url?: string)
Add audio tracks to a video
ArgumentTypeDescription
identifierstring
labelunknown
url?stringAn audio track URL. The server must be publicly routable and support `HTTP HE...
fn update_edit_audio_tracks(identifier: string, audio_identifier: string, default?: unknown, label?: unknown)
Edit additional audio tracks on a video
ArgumentTypeDescription
identifierstring
audio_identifierstring
default?unknown
label?unknown
fn delete_audio_tracks(identifier: string, audio_identifier: string)
Delete additional audio tracks on a video
ArgumentTypeDescription
identifierstring
audio_identifierstring
fn list_captions_or_subtitles(identifier: string)
List captions or subtitles
ArgumentTypeDescription
identifierstring
fn get_caption_or_subtitle_for_language(language: string, identifier: string)
List captions or subtitles for a provided language
ArgumentTypeDescription
languagestring
identifierstring
fn update_stream_subtitles_captions_upload_captions_or_subtitles(language: string, identifier: string)
Upload captions or subtitles
ArgumentTypeDescription
languagestring
identifierstring
fn delete_captions_or_subtitles(language: string, identifier: string)
Delete captions or subtitles
ArgumentTypeDescription
languagestring
identifierstring
fn stream_subtitles_captions_generate_caption_or_subtitle_for_language(language: string, identifier: string)
Generate captions or subtitles for a provided language via AI
ArgumentTypeDescription
languagestring
identifierstring
fn list_downloads(identifier: string)
List downloads
ArgumentTypeDescription
identifierstring
fn create_downloads(identifier: string)
Create downloads
ArgumentTypeDescription
identifierstring
fn delete_downloads(identifier: string)
Delete downloads
ArgumentTypeDescription
identifierstring
fn create_type_specific_downloads(identifier: string, download_type: string)
Create download
ArgumentTypeDescription
identifierstring
download_typestring
fn delete_type_specific_downloads(identifier: string, download_type: string)
Delete download
ArgumentTypeDescription
identifierstring
download_typestring
fn create_signed_url_tokens_for_videos(identifier: string, accessRules?: array, downloadable?: boolean, exp?: number, flags?: object, nbf?: number, pem?: string)
Create signed URL tokens for videos
ArgumentTypeDescription
identifierstring
accessRules?arrayThe optional list of access rule constraints on the token. Access can be bloc...
downloadable?booleanThe optional boolean value that enables using signed tokens to access MP4 dow...
exp?numberThe optional unix epoch timestamp that specficies the time after a token is n...
flags?objectOptional flags for the signed token.
nbf?numberThe optional unix epoch timestamp that specifies the time before a the token ...
pem?stringThe optional base64 encoded private key in PEM format associated with a Strea...
04Previous Versions1
2026.07.19.1

2026.07.19.1

Added: Initial code-generated release of @webframp/cloudflare/stream with 47 methods covering the Cloudflare stream API surface.

05Stats
A
100 / 100
Downloads
0
Archive size
22.5 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels