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
12 changes: 12 additions & 0 deletions src/libs/Dust/Generated/Dust.ISkillsClient.CreateWByWIdSkills.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public partial interface ISkillsClient
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -56,6 +59,7 @@ public partial interface ISkillsClient
global::System.Collections.Generic.IList<byte[]> files,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);

Expand All @@ -76,6 +80,9 @@ public partial interface ISkillsClient
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Dust.ApiException"></exception>
Expand All @@ -85,6 +92,7 @@ public partial interface ISkillsClient
global::System.Collections.Generic.IReadOnlyList<string>? filesFileNames = default,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -104,6 +112,9 @@ public partial interface ISkillsClient
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Dust.ApiException"></exception>
Expand All @@ -113,6 +124,7 @@ public partial interface ISkillsClient
global::System.Collections.Generic.IReadOnlyList<string>? filesFileNames = default,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
13 changes: 12 additions & 1 deletion src/libs/Dust/Generated/Dust.Models.CreateWSkillsRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public sealed partial class CreateWSkillsRequest
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWSkillsRequestOnConflictJsonConverter))]
public global::Dust.CreateWSkillsRequestOnConflict? OnConflict { get; set; }

/// <summary>
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("editors")]
public global::System.Collections.Generic.IList<string>? Editors { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -46,17 +52,22 @@ public sealed partial class CreateWSkillsRequest
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public CreateWSkillsRequest(
global::System.Collections.Generic.IList<byte[]> files,
global::System.Collections.Generic.IList<string>? names,
global::Dust.CreateWSkillsRequestOnConflict? onConflict)
global::Dust.CreateWSkillsRequestOnConflict? onConflict,
global::System.Collections.Generic.IList<string>? editors)
{
this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
this.Names = names;
this.OnConflict = onConflict;
this.Editors = editors;
}

/// <summary>
Expand Down
39 changes: 39 additions & 0 deletions src/libs/Dust/Generated/Dust.SkillsClient.CreateWByWIdSkills.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
content: new global::System.Net.Http.StringContent((request.OnConflict).HasValue ? (request.OnConflict).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"onConflict\"");

}
if (request.Editors != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Editors, x => x))}]"),
name: "\"editors\"");

}

__httpRequest.Content = __httpRequestContent;
Expand Down Expand Up @@ -600,6 +608,9 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -608,6 +619,7 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
global::System.Collections.Generic.IList<byte[]> files,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -616,6 +628,7 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
Files = files,
Names = names,
OnConflict = onConflict,
Editors = editors,
};

return await CreateWByWIdSkillsAsync(
Expand All @@ -642,6 +655,9 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Dust.ApiException"></exception>
Expand All @@ -651,6 +667,7 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
global::System.Collections.Generic.IReadOnlyList<string>? filesFileNames = default,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -661,6 +678,7 @@ partial void ProcessCreateWByWIdSkillsResponseContent(
Files = new global::System.Collections.Generic.List<byte[]>(),
Names = names,
OnConflict = onConflict,
Editors = editors,
};
PrepareArguments(
client: HttpClient);
Expand Down Expand Up @@ -793,6 +811,14 @@ __fileNameFiles is null
content: new global::System.Net.Http.StringContent((request.OnConflict).HasValue ? (request.OnConflict).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"onConflict\"");

}
if (request.Editors != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Editors, x => x))}]"),
name: "\"editors\"");

}

__httpRequest.Content = __httpRequestContent;
Expand Down Expand Up @@ -1189,6 +1215,9 @@ __fileNameFiles is null
/// <param name="onConflict">
/// Conflict handling strategy. Defaults to error.
/// </param>
/// <param name="editors">
/// Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Dust.ApiException"></exception>
Expand All @@ -1198,6 +1227,7 @@ __fileNameFiles is null
global::System.Collections.Generic.IReadOnlyList<string>? filesFileNames = default,
global::System.Collections.Generic.IList<string>? names = default,
global::Dust.CreateWSkillsRequestOnConflict? onConflict = default,
global::System.Collections.Generic.IList<string>? editors = default,
global::Dust.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -1208,6 +1238,7 @@ __fileNameFiles is null
Files = new global::System.Collections.Generic.List<byte[]>(),
Names = names,
OnConflict = onConflict,
Editors = editors,
};
PrepareArguments(
client: HttpClient);
Expand Down Expand Up @@ -1340,6 +1371,14 @@ __fileNameFiles is null
content: new global::System.Net.Http.StringContent((request.OnConflict).HasValue ? (request.OnConflict).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"onConflict\"");

}
if (request.Editors != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Editors, x => x))}]"),
name: "\"editors\"");

}

__httpRequest.Content = __httpRequestContent;
Expand Down
8 changes: 8 additions & 0 deletions src/libs/Dust/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3511,6 +3511,14 @@
"override"
],
"description": "Conflict handling strategy. Defaults to error."
},
"editors": {
"type": "array",
"items": {
"type": "string",
"format": "email"
},
"description": "Optional editor email addresses to add to imported or updated skills. Editors must be active workspace builders. Existing skills keep their current editors."
}
}
}
Expand Down