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 @@ -134,7 +134,7 @@ partial void ProcessGetRepositoryInfoResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
global::Greptile.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessIndexRepositoryResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessQueryCodebaseResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessSearchCodebaseResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Greptile/Generated/Greptile.GreptileClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class GreptileClient : global::Greptile.IGreptileClient, g
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Greptile.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Greptile/Generated/Greptile.IGreptileClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public partial interface IGreptileClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class IndexRepositoryRequestRemoteJsonConverter : global::System.T
{
return global::Greptile.IndexRepositoryRequestRemoteExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class IndexRepositoryRequestRemoteNullableJsonConverter : global::
{
return global::Greptile.IndexRepositoryRequestRemoteExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class QueryMessageRoleJsonConverter : global::System.Text.Json.Ser
{
return global::Greptile.QueryMessageRoleExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class QueryMessageRoleNullableJsonConverter : global::System.Text.
{
return global::Greptile.QueryMessageRoleExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RepositoryInfoStatusJsonConverter : global::System.Text.Json
{
return global::Greptile.RepositoryInfoStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RepositoryInfoStatusNullableJsonConverter : global::System.T
{
return global::Greptile.RepositoryInfoStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RepositoryRefRemoteJsonConverter : global::System.Text.Json.
{
return global::Greptile.RepositoryRefRemoteExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RepositoryRefRemoteNullableJsonConverter : global::System.Te
{
return global::Greptile.RepositoryRefRemoteExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,132 +6,132 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class JsonSerializerContextTypes
{
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, string>? StringStringDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, object>? StringObjectDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.JsonElement? JsonElement { get; set; }

/// <summary>
///
///
/// </summary>
public global::Greptile.IndexRepositoryRequest? Type0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.IndexRepositoryRequestRemote? Type1 { get; set; }
/// <summary>
///
///
/// </summary>
public string? Type2 { get; set; }
/// <summary>
///
///
/// </summary>
public bool? Type3 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.IndexRepositoryResponse? Type4 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.RepositoryInfo? Type5 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.RepositoryInfoStatus? Type6 { get; set; }
/// <summary>
///
///
/// </summary>
public int? Type7 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type8 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.QueryMessage? Type9 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.QueryMessageRole? Type10 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.RepositoryRef? Type11 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.RepositoryRefRemote? Type12 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.QueryRequest? Type13 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Greptile.QueryMessage>? Type14 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Greptile.RepositoryRef>? Type15 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.QueryResponse? Type16 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Greptile.Source>? Type17 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.Source? Type18 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.SearchRequest? Type19 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.SearchResponse? Type20 { get; set; }
/// <summary>
///
///
/// </summary>
public double? Type21 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Greptile.ErrorResponse? Type22 { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<string>? ListType0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Greptile.QueryMessage>? ListType1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Greptile.RepositoryRef>? ListType2 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Greptile.Source>? ListType3 { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class ErrorResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class IndexRepositoryRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ namespace Greptile
public enum IndexRepositoryRequestRemote
{
/// <summary>
///
///
/// </summary>
Github,
/// <summary>
///
///
/// </summary>
Gitlab,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class IndexRepositoryResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class QueryMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ namespace Greptile
public enum QueryMessageRole
{
/// <summary>
///
///
/// </summary>
Assistant,
/// <summary>
///
///
/// </summary>
User,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class QueryRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class QueryResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Greptile
{
/// <summary>
///
///
/// </summary>
public sealed partial class RepositoryInfo
{
Expand Down
Loading