Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ namespace Descript
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.EditInDescriptSchemaPostResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectMetadata))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectMetadataPublishType), TypeInfoPropertyName = "PublishedProjectMetadataPublishType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectMetadataPrivacy), TypeInfoPropertyName = "PublishedProjectMetadataPrivacy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectMetadataMetadata))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectMetadataMetadataPublishedBy))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectError))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Descript.PublishedProjectErrorError), TypeInfoPropertyName = "PublishedProjectErrorError2")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Descript.PublishedProjectMetadataPublishType? Type16 { get; set; }
public global::System.DateTime? Type16 { get; set; }
/// <summary>
///
/// </summary>
public global::Descript.PublishedProjectMetadataPrivacy? Type17 { get; set; }
public global::Descript.PublishedProjectMetadataPublishType? Type17 { get; set; }
/// <summary>
///
/// </summary>
public global::Descript.PublishedProjectMetadataMetadata? Type18 { get; set; }
public global::Descript.PublishedProjectMetadataPrivacy? Type18 { get; set; }
/// <summary>
///
/// </summary>
public global::System.DateTime? Type19 { get; set; }
public global::Descript.PublishedProjectMetadataMetadata? Type19 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ namespace Descript
/// </summary>
public sealed partial class PublishedProjectMetadata
{
/// <summary>
/// A time-limited signed URL for downloading the original published media file. See download_url_expires_at for expiration date.<br/>
/// Example: https://storage.googleapis.com/bucket/file.mp4?X-Goog-Signature=...
/// </summary>
/// <example>https://storage.googleapis.com/bucket/file.mp4?X-Goog-Signature=...</example>
[global::System.Text.Json.Serialization.JsonPropertyName("download_url")]
public string? DownloadUrl { get; set; }

/// <summary>
/// ISO 8601 timestamp indicating when the download_url expires. Present when download_url is present.<br/>
/// Example: 2025-01-16T10:30:00.000Z
/// </summary>
/// <example>2025-01-16T10:30:00.000Z</example>
[global::System.Text.Json.Serialization.JsonPropertyName("download_url_expires_at")]
public global::System.DateTime? DownloadUrlExpiresAt { get; set; }

/// <summary>
/// The unique identifier of the source Descript project<br/>
/// Example: 12345678-1234-5678-1234-567812345678
Expand Down Expand Up @@ -81,6 +97,14 @@ public sealed partial class PublishedProjectMetadata
/// Full VTT-formatted subtitle/caption content for the published project<br/>
/// Example: WEBVTT\n\n00:00:00.000 --&gt; 00:00:02.000\nWelcome to my video
/// </param>
/// <param name="downloadUrl">
/// A time-limited signed URL for downloading the original published media file. See download_url_expires_at for expiration date.<br/>
/// Example: https://storage.googleapis.com/bucket/file.mp4?X-Goog-Signature=...
/// </param>
/// <param name="downloadUrlExpiresAt">
/// ISO 8601 timestamp indicating when the download_url expires. Present when download_url is present.<br/>
/// Example: 2025-01-16T10:30:00.000Z
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -89,8 +113,12 @@ public PublishedProjectMetadata(
global::Descript.PublishedProjectMetadataPublishType publishType,
global::Descript.PublishedProjectMetadataPrivacy privacy,
global::Descript.PublishedProjectMetadataMetadata metadata,
string subtitles)
string subtitles,
string? downloadUrl,
global::System.DateTime? downloadUrlExpiresAt)
{
this.DownloadUrl = downloadUrl;
this.DownloadUrlExpiresAt = downloadUrlExpiresAt;
this.ProjectId = projectId;
this.PublishType = publishType;
this.Privacy = privacy;
Expand Down
10 changes: 10 additions & 0 deletions src/libs/Descript/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,16 @@ components:
type: object
description: Metadata for a successfully published Descript project
properties:
download_url:
type: string
format: uri
description: A time-limited signed URL for downloading the original published media file. See download_url_expires_at for expiration date.
example: https://storage.googleapis.com/bucket/file.mp4?X-Goog-Signature=...
download_url_expires_at:
type: string
format: date-time
description: ISO 8601 timestamp indicating when the download_url expires. Present when download_url is present.
example: '2025-01-16T10:30:00.000Z'
project_id:
type: string
format: uuid
Expand Down