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 @@ -136,7 +136,7 @@ public static Command Create()
- URLs must be accessible by Descript servers
- URLs must support HTTP Range requests
- Recommended to sign URLs for 12-48 hours to reduce chance of failure
- [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)
- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)

### Direct file upload

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -95,7 +95,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -704,7 +704,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Descript/Generated/Descript.DescriptClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public sealed partial class DescriptClient : global::Descript.IDescriptClient, g

/// <summary>
/// Users of Descript currently have three options to export their edited content. They can export files in various<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/hc/en-us/articles/360043869551-Becoming-a-Supported-Content-Hosting-Partner)<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/connect-with-us/hosting-partners)<br/>
/// to publish directly to a partner.<br/>
/// ### Roundtrip Metadata<br/>
/// If Project data previously came from a partner via an Edit in Descript schema then any Descript Export pages<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Descript
{
/// <summary>
/// Users of Descript currently have three options to export their edited content. They can export files in various<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/hc/en-us/articles/360043869551-Becoming-a-Supported-Content-Hosting-Partner)<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/connect-with-us/hosting-partners)<br/>
/// to publish directly to a partner.<br/>
/// ### Roundtrip Metadata<br/>
/// If Project data previously came from a partner via an Edit in Descript schema then any Descript Export pages<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -48,7 +48,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -79,7 +79,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Descript/Generated/Descript.IDescriptClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public partial interface IDescriptClient : global::System.IDisposable

/// <summary>
/// Users of Descript currently have three options to export their edited content. They can export files in various<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/hc/en-us/articles/360043869551-Becoming-a-Supported-Content-Hosting-Partner)<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/connect-with-us/hosting-partners)<br/>
/// to publish directly to a partner.<br/>
/// ### Roundtrip Metadata<br/>
/// If Project data previously came from a partner via an Edit in Descript schema then any Descript Export pages<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Descript
{
/// <summary>
/// Users of Descript currently have three options to export their edited content. They can export files in various<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/hc/en-us/articles/360043869551-Becoming-a-Supported-Content-Hosting-Partner)<br/>
/// formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/connect-with-us/hosting-partners)<br/>
/// to publish directly to a partner.<br/>
/// ### Roundtrip Metadata<br/>
/// If Project data previously came from a partner via an Edit in Descript schema then any Descript Export pages<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"Order": 7,
"Title": "Import media and sequences",
"Slug": "importprojectmedia",
"Description": "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if \u0060project_id\u0060 is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying \u0060content_type\u0060 and \u0060file_size\u0060 for a media item. The response will include a signed \u0060upload_url\u0060 for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\u00A0run in the background and return a \u0060job_id\u0060. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf \u0060callback_url\u0060 is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).",
"Description": "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if \u0060project_id\u0060 is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying \u0060content_type\u0060 and \u0060file_size\u0060 for a media item. The response will include a signed \u0060upload_url\u0060 for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\u00A0run in the background and return a \u0060job_id\u0060. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf \u0060callback_url\u0060 is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).",
"Language": "csharp",
"Code": "using var client = new DescriptClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Descript.ImportProjectMediaRequest\u003E(\n @\u0022{\n \u0022\u0022project_name\u0022\u0022: \u0022\u0022Marketing Video\u0022\u0022,\n \u0022\u0022add_media\u0022\u0022: {\n \u0022\u0022Misc/intro.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/intro.mp4\u0022\u0022\n },\n \u0022\u0022demo.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/demo.mp4\u0022\u0022\n },\n \u0022\u0022Misc/outro.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/outro.mp4\u0022\u0022\n }\n },\n \u0022\u0022add_compositions\u0022\u0022: [\n {\n \u0022\u0022name\u0022\u0022: \u0022\u0022Rough Cut\u0022\u0022,\n \u0022\u0022clips\u0022\u0022: [\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022Misc/intro.mp4\u0022\u0022\n },\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022demo.mp4\u0022\u0022\n },\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022Misc/outro.mp4\u0022\u0022\n }\n ]\n }\n ]\n}\u0022)!;\n\nvar response = await client.ApiEndpoints.ImportProjectMediaAsync(\n request: request\n);",
"Format": "sdk",
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Descript/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ tags:
- name: Export from Descript
description: |
Users of Descript currently have three options to export their edited content. They can export files in various
formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/hc/en-us/articles/360043869551-Becoming-a-Supported-Content-Hosting-Partner)
formats, share a Descript link, or use our [one-click cloud export](https://help.descript.com/connect-with-us/hosting-partners)
to publish directly to a partner.

### Roundtrip Metadata
Expand All @@ -285,7 +285,7 @@ paths:
summary: Import media and sequences
security:
- bearerAuth: []
description: "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if `project_id` is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/hc/en-us/articles/10164098416909-Supported-file-types)\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\_run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf `callback_url` is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).\n"
description: "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if `project_id` is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\_run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf `callback_url` is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).\n"
operationId: importProjectMedia
requestBody:
content:
Expand Down