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 @@ -40,7 +40,7 @@ provided. Requires `project_id`.
name: @"--model")
{
Description = @"AI model to use for editing. Accepts a canonical model id
(e.g. `claude-opus-4.8`) or a friendly alias that tracks the
(e.g. `claude-opus-5.5`) or a friendly alias that tracks the
stable version of a family (e.g. `claude-opus`). Call
[GET /agent/models](#operation/listAgentModels) for the current
set of supported models and aliases.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ partial void ProcessAgentEditJobResponseContent(
/// </param>
/// <param name="model">
/// AI model to use for editing. Accepts a canonical model id<br/>
/// (e.g. `claude-opus-4.8`) or a friendly alias that tracks the<br/>
/// (e.g. `claude-opus-5.5`) or a friendly alias that tracks the<br/>
/// stable version of a family (e.g. `claude-opus`). Call<br/>
/// [GET /agent/models](#operation/listAgentModels) for the current<br/>
/// set of supported models and aliases.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public partial interface IApiEndpointsClient
/// </param>
/// <param name="model">
/// AI model to use for editing. Accepts a canonical model id<br/>
/// (e.g. `claude-opus-4.8`) or a friendly alias that tracks the<br/>
/// (e.g. `claude-opus-5.5`) or a friendly alias that tracks the<br/>
/// stable version of a family (e.g. `claude-opus`). Call<br/>
/// [GET /agent/models](#operation/listAgentModels) for the current<br/>
/// set of supported models and aliases.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class AgentEditJobRequest

/// <summary>
/// AI model to use for editing. Accepts a canonical model id<br/>
/// (e.g. `claude-opus-4.8`) or a friendly alias that tracks the<br/>
/// (e.g. `claude-opus-5.5`) or a friendly alias that tracks the<br/>
/// stable version of a family (e.g. `claude-opus`). Call<br/>
/// [GET /agent/models](#operation/listAgentModels) for the current<br/>
/// set of supported models and aliases.<br/>
Expand Down Expand Up @@ -127,7 +127,7 @@ public sealed partial class AgentEditJobRequest
/// </param>
/// <param name="model">
/// AI model to use for editing. Accepts a canonical model id<br/>
/// (e.g. `claude-opus-4.8`) or a friendly alias that tracks the<br/>
/// (e.g. `claude-opus-5.5`) or a friendly alias that tracks the<br/>
/// stable version of a family (e.g. `claude-opus`). Call<br/>
/// [GET /agent/models](#operation/listAgentModels) for the current<br/>
/// set of supported models and aliases.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ public sealed partial class AgentEditJobResponse

/// <summary>
/// Model reported for this request: the canonical id for an explicit<br/>
/// model or alias (e.g. `claude-opus-4.8` for `claude-opus`), or<br/>
/// model or alias (e.g. `claude-opus-5.5` for `claude-opus`), or<br/>
/// `auto` for an `auto` request. Lets you confirm the selection<br/>
/// immediately, without waiting for the job result. Matches<br/>
/// `result.resolved_model` on [GET /jobs/{job_id}](#operation/getJob).<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </summary>
/// <example>claude-opus-4.8</example>
/// <example>claude-opus-5.5</example>
[global::System.Text.Json.Serialization.JsonPropertyName("resolved_model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ResolvedModel { get; set; }
Expand Down Expand Up @@ -109,11 +109,11 @@ public sealed partial class AgentEditJobResponse
/// </param>
/// <param name="resolvedModel">
/// Model reported for this request: the canonical id for an explicit<br/>
/// model or alias (e.g. `claude-opus-4.8` for `claude-opus`), or<br/>
/// model or alias (e.g. `claude-opus-5.5` for `claude-opus`), or<br/>
/// `auto` for an `auto` request. Lets you confirm the selection<br/>
/// immediately, without waiting for the job result. Matches<br/>
/// `result.resolved_model` on [GET /jobs/{job_id}](#operation/getJob).<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </param>
/// <param name="driveName">
/// Human-readable name of the connected drive (workspace)<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public sealed partial class AgentErrorResult
/// alias, `auto` for an `auto` request, or `inherited` when a resume keeps<br/>
/// the conversation's model. Present on jobs submitted via the public API<br/>
/// after the model-aliases launch; older jobs may omit it.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </summary>
/// <example>claude-opus-4.8</example>
/// <example>claude-opus-5.5</example>
[global::System.Text.Json.Serialization.JsonPropertyName("resolved_model")]
public string? ResolvedModel { get; set; }

Expand Down Expand Up @@ -81,7 +81,7 @@ public sealed partial class AgentErrorResult
/// alias, `auto` for an `auto` request, or `inherited` when a resume keeps<br/>
/// the conversation's model. Present on jobs submitted via the public API<br/>
/// after the model-aliases launch; older jobs may omit it.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </param>
/// <param name="conversationId">
/// Conversation ID for this agent session, if one was created before the error occurred.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public sealed partial class AgentSuccessResult

/// <summary>
/// Model reported for this job: the canonical id for an explicit model or<br/>
/// alias (e.g. `claude-opus-4.8` for `claude-opus`), `auto` for an `auto`<br/>
/// alias (e.g. `claude-opus-5.5` for `claude-opus`), `auto` for an `auto`<br/>
/// request, or `inherited` when a resume keeps the conversation's model.<br/>
/// Present on jobs submitted via the public API after the model-aliases<br/>
/// launch; older jobs may omit it.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </summary>
/// <example>claude-opus-4.8</example>
/// <example>claude-opus-5.5</example>
[global::System.Text.Json.Serialization.JsonPropertyName("resolved_model")]
public string? ResolvedModel { get; set; }

Expand Down Expand Up @@ -103,11 +103,11 @@ public sealed partial class AgentSuccessResult
/// </param>
/// <param name="resolvedModel">
/// Model reported for this job: the canonical id for an explicit model or<br/>
/// alias (e.g. `claude-opus-4.8` for `claude-opus`), `auto` for an `auto`<br/>
/// alias (e.g. `claude-opus-5.5` for `claude-opus`), `auto` for an `auto`<br/>
/// request, or `inherited` when a resume keeps the conversation's model.<br/>
/// Present on jobs submitted via the public API after the model-aliases<br/>
/// launch; older jobs may omit it.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </param>
/// <param name="conversationId">
/// Conversation ID for this agent session. Pass this value as `conversation_id` in a<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public sealed partial class ListAgentModelsResponseAliase

/// <summary>
/// Canonical model id this alias currently resolves to.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </summary>
/// <example>claude-opus-4.8</example>
/// <example>claude-opus-5.5</example>
[global::System.Text.Json.Serialization.JsonPropertyName("resolvesTo")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ResolvesTo { get; set; }
Expand Down Expand Up @@ -60,7 +60,7 @@ public sealed partial class ListAgentModelsResponseAliase
/// </param>
/// <param name="resolvesTo">
/// Canonical model id this alias currently resolves to.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </param>
/// <param name="description">
/// Human-readable description of the alias's intent.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public sealed partial class ListAgentModelsResponseAvailableModel
{
/// <summary>
/// Canonical model id to pass as `model` on `POST /jobs/agent`.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </summary>
/// <example>claude-opus-4.8</example>
/// <example>claude-opus-5.5</example>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Id { get; set; }
Expand All @@ -38,7 +38,7 @@ public sealed partial class ListAgentModelsResponseAvailableModel
/// </summary>
/// <param name="id">
/// Canonical model id to pass as `model` on `POST /jobs/agent`.<br/>
/// Example: claude-opus-4.8
/// Example: claude-opus-5.5
/// </param>
/// <param name="cost">
/// Relative cost tier for this model.<br/>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Descript/Generated/autosdk.generated-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Slug": "agenteditjob",
"Description": "Use a background agent to create and edit projects using a natural language prompt.\n\n- **Edit existing project**: Provide a \u0060project_id\u0060 to edit an existing project\n- **Target a specific composition**: Provide both \u0060project_id\u0060 and \u0060composition_id\u0060 to direct the agent to a specific composition within the project\n- **Create new project**: Provide a \u0060project_name\u0060 instead of \u0060project_id\u0060 to create a new project\n\n### Common use cases\n- Create new content: \u0022create a 30-second video about cooking tips\u0022\n- Apply audio effects: \u0022add studio sound to every clip\u0022\n- Remove filler words: \u0022remove all filler words from the transcript\u0022\n- Create highlights: \u0022create a 30-second highlight reel\u0022\n- Content editing: \u0022remove the section from 1:30 to 2:15\u0022\n\n### Async Operations\n\nAgent edits run 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 completes or fails.\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.AgentEditJobRequest\u003E(\n @\u0022{\n \u0022\u0022project_id\u0022\u0022: \u0022\u00229f36ee32-5a2c-47e7-b1a3-94991d3e3ddb\u0022\u0022,\n \u0022\u0022model\u0022\u0022: \u0022\u0022claude-haiku-4.5\u0022\u0022,\n \u0022\u0022prompt\u0022\u0022: \u0022\u0022add studio sound to every clip\u0022\u0022\n}\u0022)!;\n\nvar response = await client.ApiEndpoints.AgentEditJobAsync(\n request: request\n);",
"Code": "using var client = new DescriptClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Descript.AgentEditJobRequest\u003E(\n @\u0022{\n \u0022\u0022project_id\u0022\u0022: \u0022\u00229f36ee32-5a2c-47e7-b1a3-94991d3e3ddb\u0022\u0022,\n \u0022\u0022model\u0022\u0022: \u0022\u0022claude-haiku-5.5\u0022\u0022,\n \u0022\u0022prompt\u0022\u0022: \u0022\u0022add studio sound to every clip\u0022\u0022\n}\u0022)!;\n\nvar response = await client.ApiEndpoints.AgentEditJobAsync(\n request: request\n);",
"Format": "sdk",
"OperationId": "agentEditJob",
"Setup": "This example assumes \u0060using Descript;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
Expand Down Expand Up @@ -83,7 +83,7 @@
"Slug": "listagentmodels",
"Description": "List the currently available agent models and the aliases that resolve to them.\n\nThe \u0060model\u0060 parameter on [POST /jobs/agent](#operation/agentEditJob) accepts any\nvalue listed under \u0060availableModels[].id\u0060 or \u0060aliases[].id\u0060. Aliases let you target\nthe latest\nrecommended model for a given tier without chasing version bumps \u2014 for example,\npassing \u0060claude-opus\u0060 always routes to whichever Claude Opus version Descript\ncurrently recommends.\n\nThe catalog changes as models launch and retire, so this endpoint\u0027s live response\nis the source of truth \u2014 the example below is an abridged illustration, not the\nfull list.\n\nCost tiers are coarse buckets \u2014 \u0060low\u0060, \u0060medium\u0060, \u0060high\u0060 \u2014 useful for showing\nusers a relative price/performance signal. Exact pricing is reported per job via\nthe \u0060ai_credits_used\u0060 field on [GET /jobs/{job_id}](#operation/getJob).\n\nWhen \u0060model\u0060 is omitted on \u0060POST /jobs/agent\u0060, the request defaults to \u0060auto\u0060, which\nselects a recommended model for your account. \u0060auto\u0060 is a \u0060medium\u0060-cost option. For an\n\u0060auto\u0060 request, \u0060result.resolved_model\u0060 on [GET /jobs/{job_id}](#operation/getJob) reports\n\u0060auto\u0060; for an explicit model or alias it reports the canonical id that ran.",
"Language": "csharp",
"Code": "using var client = new DescriptClient(apiKey);\nvar response = await client.ApiEndpoints.ListAgentModelsAsync();\n\n// Example response:\n// {\n// \u0022availableModels\u0022: [\n// {\n// \u0022id\u0022: \u0022auto\u0022,\n// \u0022cost\u0022: \u0022medium\u0022\n// },\n// {\n// \u0022id\u0022: \u0022claude-opus-4.8\u0022,\n// \u0022cost\u0022: \u0022high\u0022\n// },\n// {\n// \u0022id\u0022: \u0022claude-haiku-4.5\u0022,\n// \u0022cost\u0022: \u0022low\u0022\n// }\n// ],\n// \u0022aliases\u0022: [\n// {\n// \u0022id\u0022: \u0022claude-opus\u0022,\n// \u0022resolvesTo\u0022: \u0022claude-opus-4.8\u0022,\n// \u0022description\u0022: \u0022Tracks stable Anthropic Claude Opus\u0022,\n// \u0022cost\u0022: \u0022high\u0022\n// }\n// ]\n// }",
"Code": "using var client = new DescriptClient(apiKey);\nvar response = await client.ApiEndpoints.ListAgentModelsAsync();\n\n// Example response:\n// {\n// \u0022availableModels\u0022: [\n// {\n// \u0022id\u0022: \u0022auto\u0022,\n// \u0022cost\u0022: \u0022medium\u0022\n// },\n// {\n// \u0022id\u0022: \u0022claude-opus-5.5\u0022,\n// \u0022cost\u0022: \u0022high\u0022\n// },\n// {\n// \u0022id\u0022: \u0022claude-haiku-5.5\u0022,\n// \u0022cost\u0022: \u0022low\u0022\n// }\n// ],\n// \u0022aliases\u0022: [\n// {\n// \u0022id\u0022: \u0022claude-opus\u0022,\n// \u0022resolvesTo\u0022: \u0022claude-opus-5.5\u0022,\n// \u0022description\u0022: \u0022Tracks stable Anthropic Claude Opus\u0022,\n// \u0022cost\u0022: \u0022high\u0022\n// }\n// ]\n// }",
"Format": "sdk",
"OperationId": "listAgentModels",
"Setup": "This example assumes \u0060using Descript;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
Expand Down
24 changes: 12 additions & 12 deletions src/libs/Descript/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ paths:
type: string
description: |
AI model to use for editing. Accepts a canonical model id
(e.g. `claude-opus-4.8`) or a friendly alias that tracks the
(e.g. `claude-opus-5.5`) or a friendly alias that tracks the
stable version of a family (e.g. `claude-opus`). Call
[GET /agent/models](#operation/listAgentModels) for the current
set of supported models and aliases.
Expand Down Expand Up @@ -1033,7 +1033,7 @@ paths:
summary: Add Studio Sound effect
value:
project_id: 9f36ee32-5a2c-47e7-b1a3-94991d3e3ddb
model: claude-haiku-4.5
model: claude-haiku-5.5
prompt: add studio sound to every clip
remove_filler_words:
summary: Remove filler words
Expand Down Expand Up @@ -1105,11 +1105,11 @@ paths:
type: string
description: |
Model reported for this request: the canonical id for an explicit
model or alias (e.g. `claude-opus-4.8` for `claude-opus`), or
model or alias (e.g. `claude-opus-5.5` for `claude-opus`), or
`auto` for an `auto` request. Lets you confirm the selection
immediately, without waiting for the job result. Matches
`result.resolved_model` on [GET /jobs/{job_id}](#operation/getJob).
example: claude-opus-4.8
example: claude-opus-5.5
required:
- job_id
- drive_id
Expand Down Expand Up @@ -1263,7 +1263,7 @@ paths:
id:
type: string
description: Canonical model id to pass as `model` on `POST /jobs/agent`.
example: claude-opus-4.8
example: claude-opus-5.5
cost:
type: string
enum:
Expand Down Expand Up @@ -1295,7 +1295,7 @@ paths:
resolvesTo:
type: string
description: Canonical model id this alias currently resolves to.
example: claude-opus-4.8
example: claude-opus-5.5
description:
type: string
description: Human-readable description of the alias's intent.
Expand All @@ -1315,13 +1315,13 @@ paths:
availableModels:
- id: auto
cost: medium
- id: claude-opus-4.8
- id: claude-opus-5.5
cost: high
- id: claude-haiku-4.5
- id: claude-haiku-5.5
cost: low
aliases:
- id: claude-opus
resolvesTo: claude-opus-4.8
resolvesTo: claude-opus-5.5
description: Tracks stable Anthropic Claude Opus
cost: high
'401':
Expand Down Expand Up @@ -3724,11 +3724,11 @@ components:
type: string
description: |
Model reported for this job: the canonical id for an explicit model or
alias (e.g. `claude-opus-4.8` for `claude-opus`), `auto` for an `auto`
alias (e.g. `claude-opus-5.5` for `claude-opus`), `auto` for an `auto`
request, or `inherited` when a resume keeps the conversation's model.
Present on jobs submitted via the public API after the model-aliases
launch; older jobs may omit it.
example: claude-opus-4.8
example: claude-opus-5.5
conversation_id:
type: string
format: uuid
Expand Down Expand Up @@ -3768,7 +3768,7 @@ components:
alias, `auto` for an `auto` request, or `inherited` when a resume keeps
the conversation's model. Present on jobs submitted via the public API
after the model-aliases launch; older jobs may omit it.
example: claude-opus-4.8
example: claude-opus-5.5
conversation_id:
type: string
format: uuid
Expand Down
Loading