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 @@ -29,6 +29,13 @@ public sealed partial class SearchResponseResultLayoutPackSearchResult
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// Link that opens this layout pack in Descript.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Url { get; set; }

/// <summary>
/// Owner of the search result. Omitted when the owner is unavailable.
/// </summary>
Expand Down Expand Up @@ -59,6 +66,9 @@ public sealed partial class SearchResponseResultLayoutPackSearchResult
/// <param name="name">
/// Name of the layout pack.
/// </param>
/// <param name="url">
/// Link that opens this layout pack in Descript.
/// </param>
/// <param name="updatedAt">
/// When the layout pack was last modified. This is<br/>
/// the field `updated_after` and `updated_before`<br/>
Expand All @@ -76,13 +86,15 @@ public sealed partial class SearchResponseResultLayoutPackSearchResult
public SearchResponseResultLayoutPackSearchResult(
global::System.Guid projectId,
string name,
string url,
global::System.DateTime updatedAt,
global::Descript.SearchResponseResultLayoutPackSearchResultType type,
global::Descript.SearchOwner? owner)
{
this.Type = type;
this.ProjectId = projectId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.Owner = owner;
this.UpdatedAt = updatedAt;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public sealed partial class SearchResponseResultMediaLibraryFolderSearchResult
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Descript.JsonConverters.SearchResponseResultMediaLibraryFolderSearchResultLocationJsonConverter))]
public global::Descript.SearchResponseResultMediaLibraryFolderSearchResultLocation Location { get; set; }

/// <summary>
/// Link that opens this media library folder in<br/>
/// Descript.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Url { get; set; }

/// <summary>
/// Owner of the search result. Omitted when the owner is unavailable.
/// </summary>
Expand Down Expand Up @@ -67,6 +75,10 @@ public sealed partial class SearchResponseResultMediaLibraryFolderSearchResult
/// <param name="name">
/// Name of the folder.
/// </param>
/// <param name="url">
/// Link that opens this media library folder in<br/>
/// Descript.
/// </param>
/// <param name="updatedAt">
/// When the folder was last modified. This is the<br/>
/// field `updated_after` and `updated_before` filter<br/>
Expand All @@ -88,6 +100,7 @@ public sealed partial class SearchResponseResultMediaLibraryFolderSearchResult
public SearchResponseResultMediaLibraryFolderSearchResult(
global::System.Guid folderId,
string name,
string url,
global::System.DateTime updatedAt,
global::Descript.SearchResponseResultMediaLibraryFolderSearchResultType type,
global::Descript.SearchResponseResultMediaLibraryFolderSearchResultLocation location,
Expand All @@ -97,6 +110,7 @@ public SearchResponseResultMediaLibraryFolderSearchResult(
this.FolderId = folderId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Location = location;
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.Owner = owner;
this.UpdatedAt = updatedAt;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ public sealed partial class SearchResponseResultMediaSearchResult
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Descript.SearchResponseResultMediaSearchResultLocation Location { get; set; }

/// <summary>
/// Link that opens this file in Descript. Files<br/>
/// inside a project open that project with the file<br/>
/// highlighted.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Url { get; set; }

/// <summary>
/// Time-limited signed URL of a preview image for<br/>
/// video and image files. Omitted for audio and when<br/>
/// a thumbnail is unavailable.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("thumbnail_url")]
public string? ThumbnailUrl { get; set; }

/// <summary>
/// Owner of the search result. Omitted when the owner is unavailable.
/// </summary>
Expand Down Expand Up @@ -100,6 +117,11 @@ public sealed partial class SearchResponseResultMediaSearchResult
/// media library, `project` inside a project, or<br/>
/// `brand_studio` in Brand Studio.
/// </param>
/// <param name="url">
/// Link that opens this file in Descript. Files<br/>
/// inside a project open that project with the file<br/>
/// highlighted.
/// </param>
/// <param name="updatedAt">
/// When the file was last modified. This is the<br/>
/// field `updated_after` and `updated_before` filter<br/>
Expand All @@ -113,6 +135,11 @@ public sealed partial class SearchResponseResultMediaSearchResult
/// ID of the Brand Studio that contains the file.<br/>
/// Present only when `location` is `brand_studio`.
/// </param>
/// <param name="thumbnailUrl">
/// Time-limited signed URL of a preview image for<br/>
/// video and image files. Omitted for audio and when<br/>
/// a thumbnail is unavailable.
/// </param>
/// <param name="owner">
/// Owner of the search result. Omitted when the owner is unavailable.
/// </param>
Expand All @@ -128,9 +155,11 @@ public SearchResponseResultMediaSearchResult(
global::System.Guid assetId,
string name,
global::Descript.SearchResponseResultMediaSearchResultLocation location,
string url,
global::System.DateTime updatedAt,
global::System.Guid? projectId,
global::System.Guid? brandStudioId,
string? thumbnailUrl,
global::Descript.SearchOwner? owner,
double? duration)
{
Expand All @@ -140,6 +169,8 @@ public SearchResponseResultMediaSearchResult(
this.BrandStudioId = brandStudioId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Location = location;
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.ThumbnailUrl = thumbnailUrl;
this.Owner = owner;
this.UpdatedAt = updatedAt;
this.Duration = duration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public sealed partial class SearchResponseResultProjectFolderSearchResult
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// Link that opens this project folder in Descript.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Url { get; set; }

/// <summary>
/// Owner of the search result. Omitted when the owner is unavailable.
/// </summary>
Expand Down Expand Up @@ -59,6 +66,9 @@ public sealed partial class SearchResponseResultProjectFolderSearchResult
/// <param name="name">
/// Name of the folder.
/// </param>
/// <param name="url">
/// Link that opens this project folder in Descript.
/// </param>
/// <param name="updatedAt">
/// When the folder was last modified. This is the<br/>
/// field `updated_after` and `updated_before` filter<br/>
Expand All @@ -76,13 +86,15 @@ public sealed partial class SearchResponseResultProjectFolderSearchResult
public SearchResponseResultProjectFolderSearchResult(
global::System.Guid folderId,
string name,
string url,
global::System.DateTime updatedAt,
global::Descript.SearchResponseResultProjectFolderSearchResultType type,
global::Descript.SearchOwner? owner)
{
this.Type = type;
this.FolderId = folderId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.Owner = owner;
this.UpdatedAt = updatedAt;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public sealed partial class SearchResponseResultProjectSearchResult
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// Link that opens this project in Descript.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Url { get; set; }

/// <summary>
/// Owner of the search result. Omitted when the owner is unavailable.
/// </summary>
Expand Down Expand Up @@ -61,6 +68,9 @@ public sealed partial class SearchResponseResultProjectSearchResult
/// <param name="name">
/// Name of the project.
/// </param>
/// <param name="url">
/// Link that opens this project in Descript.
/// </param>
/// <param name="updatedAt">
/// When the project was last modified. This is the<br/>
/// field `updated_after` and `updated_before` filter<br/>
Expand All @@ -78,13 +88,15 @@ public sealed partial class SearchResponseResultProjectSearchResult
public SearchResponseResultProjectSearchResult(
global::System.Guid projectId,
string name,
string url,
global::System.DateTime updatedAt,
global::Descript.SearchResponseResultProjectSearchResultType type,
global::Descript.SearchOwner? owner)
{
this.Type = type;
this.ProjectId = projectId;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.Owner = owner;
this.UpdatedAt = updatedAt;
}
Expand Down
37 changes: 37 additions & 0 deletions src/libs/Descript/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2830,6 +2830,7 @@ components:
- project_id
- name
- updated_at
- url
properties:
type:
type: string
Expand All @@ -2845,6 +2846,10 @@ components:
name:
type: string
description: Name of the project.
url:
type: string
format: uri
description: Link that opens this project in Descript.
owner:
$ref: '#/components/schemas/SearchOwner'
updated_at:
Expand All @@ -2865,6 +2870,7 @@ components:
- name
- location
- updated_at
- url
properties:
type:
type: string
Expand Down Expand Up @@ -2903,6 +2909,20 @@ components:
- media_library
- project
- brand_studio
url:
type: string
format: uri
description: |
Link that opens this file in Descript. Files
inside a project open that project with the file
highlighted.
thumbnail_url:
type: string
format: uri
description: |
Time-limited signed URL of a preview image for
video and image files. Omitted for audio and when
a thumbnail is unavailable.
owner:
$ref: '#/components/schemas/SearchOwner'
updated_at:
Expand All @@ -2925,6 +2945,7 @@ components:
- project_id
- name
- updated_at
- url
properties:
type:
type: string
Expand All @@ -2938,6 +2959,10 @@ components:
name:
type: string
description: Name of the layout pack.
url:
type: string
format: uri
description: Link that opens this layout pack in Descript.
owner:
$ref: '#/components/schemas/SearchOwner'
updated_at:
Expand All @@ -2955,6 +2980,7 @@ components:
- folder_id
- name
- updated_at
- url
properties:
type:
type: string
Expand All @@ -2968,6 +2994,10 @@ components:
name:
type: string
description: Name of the folder.
url:
type: string
format: uri
description: Link that opens this project folder in Descript.
owner:
$ref: '#/components/schemas/SearchOwner'
updated_at:
Expand All @@ -2986,6 +3016,7 @@ components:
- name
- location
- updated_at
- url
properties:
type:
type: string
Expand All @@ -3006,6 +3037,12 @@ components:
description: Always `media_library` for a media-library folder.
enum:
- media_library
url:
type: string
format: uri
description: |
Link that opens this media library folder in
Descript.
owner:
$ref: '#/components/schemas/SearchOwner'
updated_at:
Expand Down
Loading