Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and HavenDV committed Aug 20, 2024
1 parent b256815 commit b303a85
Show file tree
Hide file tree
Showing 12 changed files with 517 additions and 509 deletions.
2 changes: 1 addition & 1 deletion src/libs/LangSmith/Generated/JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace LangSmith
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
826 changes: 413 additions & 413 deletions src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ partial void ProcessReadSingleChartApiV1ChartsChartIdPostResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.SingleCustomChartResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.NullableSingleCustomChartResponse) ??

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 100 in src/libs/LangSmith/Generated/LangSmith.ChartsClient.ReadSingleChartApiV1ChartsChartIdPost.g.cs

View workflow job for this annotation

GitHub Actions / Publish / Build, test and publish

'SourceGenerationContext' does not contain a definition for 'NullableSingleCustomChartResponse' and no accessible extension method 'NullableSingleCustomChartResponse' accepting a first argument of type 'SourceGenerationContext' could be found (are you missing a using directive or an assembly reference?)
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ namespace LangSmith
{
public partial class DatasetsClient
{
partial void PrepareGetServedInfoApiV1DatasetsDatasetIdIndexGetArguments(
partial void PrepareGetIndexInfoApiV1DatasetsDatasetIdIndexGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string datasetId);
partial void PrepareGetServedInfoApiV1DatasetsDatasetIdIndexGetRequest(
partial void PrepareGetIndexInfoApiV1DatasetsDatasetIdIndexGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string datasetId);
partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponse(
partial void ProcessGetIndexInfoApiV1DatasetsDatasetIdIndexGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
partial void ProcessGetIndexInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Get Served Info<br/>
/// Get served dataset info.
/// Get Index Info<br/>
/// Get index info.
/// </summary>
/// <param name="datasetId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.ServedDatasetInfo> GetServedInfoApiV1DatasetsDatasetIdIndexGetAsync(
public async global::System.Threading.Tasks.Task<global::LangSmith.DatasetIndexInfo> GetIndexInfoApiV1DatasetsDatasetIdIndexGetAsync(
string datasetId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: _httpClient);
PrepareGetServedInfoApiV1DatasetsDatasetIdIndexGetArguments(
PrepareGetIndexInfoApiV1DatasetsDatasetIdIndexGetArguments(
httpClient: _httpClient,
datasetId: ref datasetId);

Expand All @@ -45,7 +45,7 @@ partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareGetServedInfoApiV1DatasetsDatasetIdIndexGetRequest(
PrepareGetIndexInfoApiV1DatasetsDatasetIdIndexGetRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
datasetId: datasetId);
Expand All @@ -58,7 +58,7 @@ partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponse(
ProcessGetIndexInfoApiV1DatasetsDatasetIdIndexGetResponse(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -68,7 +68,7 @@ partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
ProcessGetIndexInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand All @@ -83,7 +83,7 @@ partial void ProcessGetServedInfoApiV1DatasetsDatasetIdIndexGetResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.ServedDatasetInfo) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.DatasetIndexInfo) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,50 @@ namespace LangSmith
{
public partial class DatasetsClient
{
partial void PrepareServeApiV1DatasetsDatasetIdIndexPostArguments(
partial void PrepareIndexApiV1DatasetsDatasetIdIndexPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string datasetId,
global::LangSmith.DatasetServeRequest request);
partial void PrepareServeApiV1DatasetsDatasetIdIndexPostRequest(
global::LangSmith.DatasetIndexRequest request);
partial void PrepareIndexApiV1DatasetsDatasetIdIndexPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string datasetId,
global::LangSmith.DatasetServeRequest request);
partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponse(
global::LangSmith.DatasetIndexRequest request);
partial void ProcessIndexApiV1DatasetsDatasetIdIndexPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
partial void ProcessIndexApiV1DatasetsDatasetIdIndexPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Serve<br/>
/// Serve a dataset.
/// Index<br/>
/// Index a dataset.
/// </summary>
/// <param name="datasetId"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.ServeApiV1DatasetsDatasetIdIndexPostResponse> ServeApiV1DatasetsDatasetIdIndexPostAsync(
public async global::System.Threading.Tasks.Task<global::LangSmith.IndexApiV1DatasetsDatasetIdIndexPostResponse> IndexApiV1DatasetsDatasetIdIndexPostAsync(
string datasetId,
global::LangSmith.DatasetServeRequest request,
global::LangSmith.DatasetIndexRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));

PrepareArguments(
client: _httpClient);
PrepareServeApiV1DatasetsDatasetIdIndexPostArguments(
PrepareIndexApiV1DatasetsDatasetIdIndexPostArguments(
httpClient: _httpClient,
datasetId: ref datasetId,
request: request);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/api/v1/datasets/{datasetId}/index", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::LangSmith.SourceGenerationContext.Default.DatasetServeRequest);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::LangSmith.SourceGenerationContext.Default.DatasetIndexRequest);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand All @@ -58,7 +58,7 @@ partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareServeApiV1DatasetsDatasetIdIndexPostRequest(
PrepareIndexApiV1DatasetsDatasetIdIndexPostRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
datasetId: datasetId,
Expand All @@ -72,7 +72,7 @@ partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessServeApiV1DatasetsDatasetIdIndexPostResponse(
ProcessIndexApiV1DatasetsDatasetIdIndexPostResponse(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -82,7 +82,7 @@ partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
ProcessIndexApiV1DatasetsDatasetIdIndexPostResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand All @@ -97,31 +97,31 @@ partial void ProcessServeApiV1DatasetsDatasetIdIndexPostResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.ServeApiV1DatasetsDatasetIdIndexPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.IndexApiV1DatasetsDatasetIdIndexPostResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

/// <summary>
/// Serve<br/>
/// Serve a dataset.
/// Index<br/>
/// Index a dataset.
/// </summary>
/// <param name="datasetId"></param>
/// <param name="tag">
/// Default Value: latest
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.ServeApiV1DatasetsDatasetIdIndexPostResponse> ServeApiV1DatasetsDatasetIdIndexPostAsync(
public async global::System.Threading.Tasks.Task<global::LangSmith.IndexApiV1DatasetsDatasetIdIndexPostResponse> IndexApiV1DatasetsDatasetIdIndexPostAsync(
string datasetId,
global::System.AnyOf<string?, object>? tag = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::LangSmith.DatasetServeRequest
var request = new global::LangSmith.DatasetIndexRequest
{
Tag = tag,
};

return await ServeApiV1DatasetsDatasetIdIndexPostAsync(
return await IndexApiV1DatasetsDatasetIdIndexPostAsync(
datasetId: datasetId,
request: request,
cancellationToken: cancellationToken).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ namespace LangSmith
{
public partial class DatasetsClient
{
partial void PrepareUnserveApiV1DatasetsDatasetIdIndexDeleteArguments(
partial void PrepareRemoveIndexApiV1DatasetsDatasetIdIndexDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string datasetId);
partial void PrepareUnserveApiV1DatasetsDatasetIdIndexDeleteRequest(
partial void PrepareRemoveIndexApiV1DatasetsDatasetIdIndexDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string datasetId);
partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponse(
partial void ProcessRemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
partial void ProcessRemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Unserve<br/>
/// Serve a dataset.
/// Remove Index<br/>
/// Remove an index for a dataset.
/// </summary>
/// <param name="datasetId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LangSmith.UnserveApiV1DatasetsDatasetIdIndexDeleteResponse> UnserveApiV1DatasetsDatasetIdIndexDeleteAsync(
public async global::System.Threading.Tasks.Task<global::LangSmith.RemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponse> RemoveIndexApiV1DatasetsDatasetIdIndexDeleteAsync(
string datasetId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: _httpClient);
PrepareUnserveApiV1DatasetsDatasetIdIndexDeleteArguments(
PrepareRemoveIndexApiV1DatasetsDatasetIdIndexDeleteArguments(
httpClient: _httpClient,
datasetId: ref datasetId);

Expand All @@ -45,7 +45,7 @@ partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareUnserveApiV1DatasetsDatasetIdIndexDeleteRequest(
PrepareRemoveIndexApiV1DatasetsDatasetIdIndexDeleteRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
datasetId: datasetId);
Expand All @@ -58,7 +58,7 @@ partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponse(
ProcessRemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponse(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -68,7 +68,7 @@ partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
ProcessRemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand All @@ -83,7 +83,7 @@ partial void ProcessUnserveApiV1DatasetsDatasetIdIndexDeleteResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.UnserveApiV1DatasetsDatasetIdIndexDeleteResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::LangSmith.SourceGenerationContext.Default.RemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace LangSmith
/// <summary>
/// Dataset schema for serving.
/// </summary>
public sealed partial class ServedDatasetInfo
public sealed partial class DatasetIndexInfo
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace LangSmith
/// <summary>
/// Dataset schema for serving.
/// </summary>
public sealed partial class DatasetServeRequest
public sealed partial class DatasetIndexRequest
{
/// <summary>
/// Default Value: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace LangSmith
/// <summary>
///
/// </summary>
public sealed partial class ServeApiV1DatasetsDatasetIdIndexPostResponse
public sealed partial class IndexApiV1DatasetsDatasetIdIndexPostResponse
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public enum OrgFeatureFlags
///
/// </summary>
ResourceTags,
/// <summary>
///
/// </summary>
LanggraphDeployOwnCloudEnabled,
}

/// <summary>
Expand Down Expand Up @@ -102,6 +106,7 @@ public static string ToValueString(this OrgFeatureFlags value)
OrgFeatureFlags.CompareTraceEnabled => "compare_trace_enabled",
OrgFeatureFlags.ConsolidatePlaygroundComparative => "consolidate_playground_comparative",
OrgFeatureFlags.ResourceTags => "resource_tags",
OrgFeatureFlags.LanggraphDeployOwnCloudEnabled => "langgraph_deploy_own_cloud_enabled",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -128,6 +133,7 @@ public static string ToValueString(this OrgFeatureFlags value)
"compare_trace_enabled" => OrgFeatureFlags.CompareTraceEnabled,
"consolidate_playground_comparative" => OrgFeatureFlags.ConsolidatePlaygroundComparative,
"resource_tags" => OrgFeatureFlags.ResourceTags,
"langgraph_deploy_own_cloud_enabled" => OrgFeatureFlags.LanggraphDeployOwnCloudEnabled,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace LangSmith
/// <summary>
///
/// </summary>
public sealed partial class UnserveApiV1DatasetsDatasetIdIndexDeleteResponse
public sealed partial class RemoveIndexApiV1DatasetsDatasetIdIndexDeleteResponse
{

/// <summary>
Expand Down
Loading

0 comments on commit b303a85

Please sign in to comment.