From 6dfe9bc67d24999adb2749fce5406edd8bcb48b7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Apr 2026 18:59:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Descript.ApiEndpointsClient.ImportProjectMedia.g.cs | 4 ++++ .../Descript.IApiEndpointsClient.ImportProjectMedia.g.cs | 4 ++++ src/libs/Descript/openapi.yaml | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs index 32bb9a3..dd9f4d4 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs @@ -35,6 +35,8 @@ partial void ProcessImportProjectMediaResponseContent( /// - 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)
+ /// ### Direct file upload
+ /// **[Work in progress]** 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.
/// ### Async Operations
/// Imports run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.
/// ### Dynamic webhook
@@ -437,6 +439,8 @@ partial void ProcessImportProjectMediaResponseContent( /// - 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)
+ /// ### Direct file upload
+ /// **[Work in progress]** 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.
/// ### Async Operations
/// Imports run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.
/// ### Dynamic webhook
diff --git a/src/libs/Descript/Generated/Descript.IApiEndpointsClient.ImportProjectMedia.g.cs b/src/libs/Descript/Generated/Descript.IApiEndpointsClient.ImportProjectMedia.g.cs index 4d0b284..292755a 100644 --- a/src/libs/Descript/Generated/Descript.IApiEndpointsClient.ImportProjectMedia.g.cs +++ b/src/libs/Descript/Generated/Descript.IApiEndpointsClient.ImportProjectMedia.g.cs @@ -18,6 +18,8 @@ public partial interface IApiEndpointsClient /// - 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)
+ /// ### Direct file upload
+ /// **[Work in progress]** 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.
/// ### Async Operations
/// Imports run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.
/// ### Dynamic webhook
@@ -45,6 +47,8 @@ public partial interface IApiEndpointsClient /// - 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)
+ /// ### Direct file upload
+ /// **[Work in progress]** 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.
/// ### Async Operations
/// Imports run in the background and return a `job_id`. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.
/// ### Dynamic webhook
diff --git a/src/libs/Descript/openapi.yaml b/src/libs/Descript/openapi.yaml index d7ef57a..a8f0e49 100644 --- a/src/libs/Descript/openapi.yaml +++ b/src/libs/Descript/openapi.yaml @@ -177,7 +177,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### 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/hc/en-us/articles/10164098416909-Supported-file-types)\n\n### Direct file upload\n\n**[Work in progress]** 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.\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: @@ -1966,6 +1966,7 @@ x-tagGroups: - Getting started - Using the CLI - API Endpoints + - Direct file upload - Authentication - Rate Limiting - name: Partner APIs