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 @@ -42,13 +42,13 @@ namespace Zep
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Zep.GraphitiEpisodeMetadataFilter>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Zep.GraphitiMetadataFilterGroup>))]
internal sealed partial class GraphEpisodeSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
internal sealed partial class EpisodeSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
/// <summary>
///
/// </summary>
public sealed partial class GraphEpisodeSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
public sealed partial class EpisodeSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
{
private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver();

Expand All @@ -61,9 +61,9 @@ public sealed partial class GraphEpisodeSourceGenerationContext : global::System
/// <summary>
///
/// </summary>
public static GraphEpisodeSourceGenerationContext Default { get; } = new(DefaultOptions);
public static EpisodeSourceGenerationContext Default { get; } = new(DefaultOptions);

private GraphEpisodeSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options)
private EpisodeSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options)
: base(options)
{
}
Expand Down Expand Up @@ -214,7 +214,7 @@ private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.
{
return index switch
{
0 => new GraphEpisodeSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()),
0 => new EpisodeSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()),
_ => throw new global::System.ArgumentOutOfRangeException(nameof(index)),
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Zep
{
public partial class GraphEpisodeClient
public partial class EpisodeClient
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Zep
{
public partial class GraphEpisodeClient
public partial class EpisodeClient
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Zep
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class GraphNodeClient : global::Zep.IGraphNodeClient, global::System.IDisposable
public sealed partial class EpisodeClient : global::Zep.IEpisodeClient, global::System.IDisposable
{
/// <summary>
/// https://api.getzep.com/api/v2
Expand All @@ -34,7 +34,7 @@ public sealed partial class GraphNodeClient : global::Zep.IGraphNodeClient, glob
/// <inheritdoc/>
public global::Zep.AutoSDKClientOptions Options { get; }

internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Zep.GraphNodeSourceGenerationContext.Default);
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Zep.EpisodeSourceGenerationContext.Default);

/// <summary>
///
Expand All @@ -47,15 +47,15 @@ public sealed partial class GraphNodeClient : global::Zep.IGraphNodeClient, glob


/// <summary>
/// Creates a new instance of the GraphNodeClient.
/// Creates a new instance of the EpisodeClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphNodeClient(
public EpisodeClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations = null,
Expand All @@ -69,14 +69,14 @@ public GraphNodeClient(
}

/// <summary>
/// Creates a new instance of the GraphNodeClient with explicit options but no base URL override.
/// Creates a new instance of the EpisodeClient with explicit options but no base URL override.
/// Skips passing <c>baseUri</c> so the default base URL from the OpenAPI spec applies.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphNodeClient(
public EpisodeClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
global::Zep.AutoSDKClientOptions? options,
Expand All @@ -90,7 +90,7 @@ public GraphNodeClient(
}

/// <summary>
/// Creates a new instance of the GraphNodeClient.
/// Creates a new instance of the EpisodeClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
Expand All @@ -99,7 +99,7 @@ public GraphNodeClient(
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphNodeClient(
public EpisodeClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Uri? baseUri,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zep
{
public partial interface IGraphEpisodeClient
public partial interface IEpisodeClient
{
/// <summary>
/// List Graph Episodes<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zep
{
public partial interface IGraphEpisodeClient
public partial interface IEpisodeClient
{
/// <summary>
/// List User Episodes<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Zep
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface IGraphNodeClient : global::System.IDisposable
public partial interface IEpisodeClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zep
{
public partial interface IGraphNodeClient
public partial interface INodeClient
{
/// <summary>
/// Get Node Neighbors<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Zep
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface IGraphEpisodeClient : global::System.IDisposable
public partial interface INodeClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Zep/Generated/Zep.IZepClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,22 @@ public partial interface IZepClient : global::System.IDisposable
/// <summary>
///
/// </summary>
public EpisodesClient Episodes { get; }
public EpisodeClient Episode { get; }

/// <summary>
///
/// </summary>
public GraphClient Graph { get; }
public EpisodesClient Episodes { get; }

/// <summary>
///
/// </summary>
public GraphEpisodeClient GraphEpisode { get; }
public GraphClient Graph { get; }

/// <summary>
///
/// </summary>
public GraphNodeClient GraphNode { get; }
public NodeClient Node { get; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ namespace Zep
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Zep.GraphitiPropertyFilter>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Zep.GraphitiEntityEdge>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Zep.ApidataGraphNodeNeighbor>))]
internal sealed partial class GraphNodeSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
internal sealed partial class NodeSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
/// <summary>
///
/// </summary>
public sealed partial class GraphNodeSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
public sealed partial class NodeSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
{
private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver();

Expand All @@ -70,9 +70,9 @@ public sealed partial class GraphNodeSourceGenerationContext : global::System.Te
/// <summary>
///
/// </summary>
public static GraphNodeSourceGenerationContext Default { get; } = new(DefaultOptions);
public static NodeSourceGenerationContext Default { get; } = new(DefaultOptions);

private GraphNodeSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options)
private NodeSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options)
: base(options)
{
}
Expand Down Expand Up @@ -195,7 +195,7 @@ private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.
{
return index switch
{
0 => new GraphNodeSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()),
0 => new NodeSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()),
_ => throw new global::System.ArgumentOutOfRangeException(nameof(index)),
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Zep
{
public partial class GraphNodeClient
public partial class NodeClient
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Zep
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class GraphEpisodeClient : global::Zep.IGraphEpisodeClient, global::System.IDisposable
public sealed partial class NodeClient : global::Zep.INodeClient, global::System.IDisposable
{
/// <summary>
/// https://api.getzep.com/api/v2
Expand All @@ -34,7 +34,7 @@ public sealed partial class GraphEpisodeClient : global::Zep.IGraphEpisodeClient
/// <inheritdoc/>
public global::Zep.AutoSDKClientOptions Options { get; }

internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Zep.GraphEpisodeSourceGenerationContext.Default);
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Zep.NodeSourceGenerationContext.Default);

/// <summary>
///
Expand All @@ -47,15 +47,15 @@ public sealed partial class GraphEpisodeClient : global::Zep.IGraphEpisodeClient


/// <summary>
/// Creates a new instance of the GraphEpisodeClient.
/// Creates a new instance of the NodeClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphEpisodeClient(
public NodeClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations = null,
Expand All @@ -69,14 +69,14 @@ public GraphEpisodeClient(
}

/// <summary>
/// Creates a new instance of the GraphEpisodeClient with explicit options but no base URL override.
/// Creates a new instance of the NodeClient with explicit options but no base URL override.
/// Skips passing <c>baseUri</c> so the default base URL from the OpenAPI spec applies.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphEpisodeClient(
public NodeClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
global::Zep.AutoSDKClientOptions? options,
Expand All @@ -90,7 +90,7 @@ public GraphEpisodeClient(
}

/// <summary>
/// Creates a new instance of the GraphEpisodeClient.
/// Creates a new instance of the NodeClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
Expand All @@ -99,7 +99,7 @@ public GraphEpisodeClient(
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GraphEpisodeClient(
public NodeClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Uri? baseUri,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Zep/Generated/Zep.ZepClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public sealed partial class ZepClient : global::Zep.IZepClient, global::System.I
/// <summary>
///
/// </summary>
public EpisodesClient Episodes => new EpisodesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
public EpisodeClient Episode => new EpisodeClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContextProvider = JsonSerializerContextProvider,
Expand All @@ -112,7 +112,7 @@ public sealed partial class ZepClient : global::Zep.IZepClient, global::System.I
/// <summary>
///
/// </summary>
public GraphClient Graph => new GraphClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
public EpisodesClient Episodes => new EpisodesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContextProvider = JsonSerializerContextProvider,
Expand All @@ -121,7 +121,7 @@ public sealed partial class ZepClient : global::Zep.IZepClient, global::System.I
/// <summary>
///
/// </summary>
public GraphEpisodeClient GraphEpisode => new GraphEpisodeClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
public GraphClient Graph => new GraphClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContextProvider = JsonSerializerContextProvider,
Expand All @@ -130,7 +130,7 @@ public sealed partial class ZepClient : global::Zep.IZepClient, global::System.I
/// <summary>
///
/// </summary>
public GraphNodeClient GraphNode => new GraphNodeClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
public NodeClient Node => new NodeClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContextProvider = JsonSerializerContextProvider,
Expand Down
Loading
Loading