@@ -42,6 +42,8 @@ public class OpenAIClient {
4242 public virtual RealtimeClient GetRealtimeClient();
4343 [Experimental("OPENAI001")]
4444 public virtual VectorStoreClient GetVectorStoreClient();
45+ [Experimental("OPENAI001")]
46+ public virtual VideoClient GetVideoClient();
4547 }
4648 public class OpenAIClientOptions : ClientPipelineOptions {
4749 public Uri Endpoint { get; set; }
@@ -7122,6 +7124,33 @@ public enum VectorStoreStatus {
71227124 Expired = 3
71237125 }
71247126}
7127+ namespace OpenAI.Videos {
7128+ [Experimental("OPENAI001")]
7129+ public class VideoClient {
7130+ protected VideoClient();
7131+ public VideoClient(ApiKeyCredential credential, OpenAIClientOptions options);
7132+ public VideoClient(ApiKeyCredential credential);
7133+ public VideoClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOptions options);
7134+ public VideoClient(AuthenticationPolicy authenticationPolicy);
7135+ protected internal VideoClient(ClientPipeline pipeline, OpenAIClientOptions options);
7136+ public VideoClient(string apiKey);
7137+ [Experimental("OPENAI001")]
7138+ public Uri Endpoint { get; }
7139+ public ClientPipeline Pipeline { get; }
7140+ public virtual ClientResult CreateVideo(BinaryContent content, string contentType, RequestOptions options = null);
7141+ public virtual Task<ClientResult> CreateVideoAsync(BinaryContent content, string contentType, RequestOptions options = null);
7142+ public virtual ClientResult CreateVideoRemix(string videoId, BinaryContent content, string contentType, RequestOptions options = null);
7143+ public virtual Task<ClientResult> CreateVideoRemixAsync(string videoId, BinaryContent content, string contentType, RequestOptions options = null);
7144+ public virtual ClientResult DeleteVideo(string videoId, RequestOptions options = null);
7145+ public virtual Task<ClientResult> DeleteVideoAsync(string videoId, RequestOptions options = null);
7146+ public virtual ClientResult DownloadVideo(string videoId, string variant = null, RequestOptions options = null);
7147+ public virtual Task<ClientResult> DownloadVideoAsync(string videoId, string variant = null, RequestOptions options = null);
7148+ public virtual ClientResult GetVideo(string videoId, RequestOptions options = null);
7149+ public virtual Task<ClientResult> GetVideoAsync(string videoId, RequestOptions options = null);
7150+ public virtual ClientResult GetVideos(long? limit = null, string order = null, string after = null, RequestOptions options = null);
7151+ public virtual Task<ClientResult> GetVideosAsync(long? limit = null, string order = null, string after = null, RequestOptions options = null);
7152+ }
7153+ }
71257154namespace Primitives {
71267155 public abstract class JsonModel<T> : IJsonModel<T>, IPersistableModel<T> {
71277156 protected abstract T CreateCore(ref Text.Json.Utf8JsonReader reader, ModelReaderWriterOptions options);
0 commit comments