diff --git a/types/defines/stream.d.ts b/types/defines/stream.d.ts index 247200e1f6d..75b97c101ec 100644 --- a/types/defines/stream.d.ts +++ b/types/defines/stream.d.ts @@ -375,14 +375,13 @@ interface StreamScopedCaptions { * Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. * One caption or subtitle file per language is allowed. * @param language The BCP 47 language tag for the caption or subtitle. - * @param file The caption or subtitle file to upload. + * @param input The caption or subtitle stream to upload. * @returns The created caption entry. * @throws {NotFoundError} if the video is not found * @throws {BadRequestError} if the language or file is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {InternalError} if an unexpected error occurs */ - upload(language: string, file: File): Promise; + upload(language: string, input: ReadableStream): Promise; /** * Generate captions or subtitles for the provided language via AI. * @param language The BCP 47 language tag to generate. @@ -461,17 +460,16 @@ interface StreamVideos { interface StreamWatermarks { /** * Generate a new watermark profile - * @param file The image file to upload + * @param input The image stream to upload * @param params The watermark creation parameters. * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ generate( - file: File, + input: ReadableStream, params: StreamWatermarkCreateParams ): Promise; /** @@ -481,7 +479,6 @@ interface StreamWatermarks { * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index 72a3d8f7bc6..2760badfce6 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -14037,14 +14037,13 @@ interface StreamScopedCaptions { * Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. * One caption or subtitle file per language is allowed. * @param language The BCP 47 language tag for the caption or subtitle. - * @param file The caption or subtitle file to upload. + * @param input The caption or subtitle stream to upload. * @returns The created caption entry. * @throws {NotFoundError} if the video is not found * @throws {BadRequestError} if the language or file is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {InternalError} if an unexpected error occurs */ - upload(language: string, file: File): Promise; + upload(language: string, input: ReadableStream): Promise; /** * Generate captions or subtitles for the provided language via AI. * @param language The BCP 47 language tag to generate. @@ -14120,17 +14119,16 @@ interface StreamVideos { interface StreamWatermarks { /** * Generate a new watermark profile - * @param file The image file to upload + * @param input The image stream to upload * @param params The watermark creation parameters. * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ generate( - file: File, + input: ReadableStream, params: StreamWatermarkCreateParams, ): Promise; /** @@ -14140,7 +14138,6 @@ interface StreamWatermarks { * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index 1ba1e4f325b..4e3fd51d436 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -13994,14 +13994,13 @@ export interface StreamScopedCaptions { * Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. * One caption or subtitle file per language is allowed. * @param language The BCP 47 language tag for the caption or subtitle. - * @param file The caption or subtitle file to upload. + * @param input The caption or subtitle stream to upload. * @returns The created caption entry. * @throws {NotFoundError} if the video is not found * @throws {BadRequestError} if the language or file is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {InternalError} if an unexpected error occurs */ - upload(language: string, file: File): Promise; + upload(language: string, input: ReadableStream): Promise; /** * Generate captions or subtitles for the provided language via AI. * @param language The BCP 47 language tag to generate. @@ -14077,17 +14076,16 @@ export interface StreamVideos { export interface StreamWatermarks { /** * Generate a new watermark profile - * @param file The image file to upload + * @param input The image stream to upload * @param params The watermark creation parameters. * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ generate( - file: File, + input: ReadableStream, params: StreamWatermarkCreateParams, ): Promise; /** @@ -14097,7 +14095,6 @@ export interface StreamWatermarks { * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index b569c0a3c41..b460f1baeb5 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -13312,14 +13312,13 @@ interface StreamScopedCaptions { * Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. * One caption or subtitle file per language is allowed. * @param language The BCP 47 language tag for the caption or subtitle. - * @param file The caption or subtitle file to upload. + * @param input The caption or subtitle stream to upload. * @returns The created caption entry. * @throws {NotFoundError} if the video is not found * @throws {BadRequestError} if the language or file is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {InternalError} if an unexpected error occurs */ - upload(language: string, file: File): Promise; + upload(language: string, input: ReadableStream): Promise; /** * Generate captions or subtitles for the provided language via AI. * @param language The BCP 47 language tag to generate. @@ -13395,17 +13394,16 @@ interface StreamVideos { interface StreamWatermarks { /** * Generate a new watermark profile - * @param file The image file to upload + * @param input The image stream to upload * @param params The watermark creation parameters. * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ generate( - file: File, + input: ReadableStream, params: StreamWatermarkCreateParams, ): Promise; /** @@ -13415,7 +13413,6 @@ interface StreamWatermarks { * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index f2c4af42220..3466c5fe85d 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -13269,14 +13269,13 @@ export interface StreamScopedCaptions { * Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. * One caption or subtitle file per language is allowed. * @param language The BCP 47 language tag for the caption or subtitle. - * @param file The caption or subtitle file to upload. + * @param input The caption or subtitle stream to upload. * @returns The created caption entry. * @throws {NotFoundError} if the video is not found * @throws {BadRequestError} if the language or file is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {InternalError} if an unexpected error occurs */ - upload(language: string, file: File): Promise; + upload(language: string, input: ReadableStream): Promise; /** * Generate captions or subtitles for the provided language via AI. * @param language The BCP 47 language tag to generate. @@ -13352,17 +13351,16 @@ export interface StreamVideos { export interface StreamWatermarks { /** * Generate a new watermark profile - * @param file The image file to upload + * @param input The image stream to upload * @param params The watermark creation parameters. * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */ generate( - file: File, + input: ReadableStream, params: StreamWatermarkCreateParams, ): Promise; /** @@ -13372,7 +13370,6 @@ export interface StreamWatermarks { * @returns The created watermark profile. * @throws {BadRequestError} if the parameters are invalid * @throws {InvalidURLError} if the URL is invalid - * @throws {MaxFileSizeError} if the file size is too large * @throws {TooManyWatermarksError} if the number of allowed watermarks is reached * @throws {InternalError} if an unexpected error occurs */