Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Add user authentication feature with JWT token support #36

Merged
merged 1 commit into from
Aug 24, 2024
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
10 changes: 5 additions & 5 deletions src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,23 +617,23 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<global::LangSmith.DataType2?, object>? Type151 { get; set; }
public global::System.AnyOf<global::LangSmith.DatasetInputsSchemaDefinition, object>? Type151 { get; set; }
/// <summary>
///
/// </summary>
public global::System.AnyOf<global::LangSmith.DatasetInputsSchemaDefinition, object>? Type152 { get; set; }
public global::LangSmith.DatasetInputsSchemaDefinition? Type152 { get; set; }
/// <summary>
///
/// </summary>
public global::LangSmith.DatasetInputsSchemaDefinition? Type153 { get; set; }
public global::System.AnyOf<global::LangSmith.DatasetOutputsSchemaDefinition, object>? Type153 { get; set; }
/// <summary>
///
/// </summary>
public global::System.AnyOf<global::LangSmith.DatasetOutputsSchemaDefinition, object>? Type154 { get; set; }
public global::LangSmith.DatasetOutputsSchemaDefinition? Type154 { get; set; }
/// <summary>
///
/// </summary>
public global::LangSmith.DatasetOutputsSchemaDefinition? Type155 { get; set; }
public global::System.AnyOf<global::LangSmith.DataType2?, object>? Type155 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,41 +102,41 @@ partial void ProcessCreateDatasetApiV1DatasetsPostResponseContent(
/// <param name="name"></param>
/// <param name="description"></param>
/// <param name="createdAt"></param>
/// <param name="dataType">
/// Default Value: kv
/// </param>
/// <param name="inputsSchemaDefinition"></param>
/// <param name="outputsSchemaDefinition"></param>
/// <param name="externallyManaged">
/// Default Value: false
/// </param>
/// <param name="id"></param>
/// <param name="extra"></param>
/// <param name="dataType">
/// Default Value: kv
/// </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.Dataset> CreateDatasetApiV1DatasetsPostAsync(
string name,
global::System.AnyOf<string?, object>? description = default,
global::System.DateTime createdAt = default,
global::System.AnyOf<global::LangSmith.DataType2?, object>? dataType = default,
global::System.AnyOf<global::LangSmith.DatasetCreateInputsSchemaDefinition, object>? inputsSchemaDefinition = default,
global::System.AnyOf<global::LangSmith.DatasetCreateOutputsSchemaDefinition, object>? outputsSchemaDefinition = default,
global::System.AnyOf<bool?, object>? externallyManaged = default,
global::System.AnyOf<string, object>? id = default,
global::System.AnyOf<global::LangSmith.DatasetCreateExtra, object>? extra = default,
global::System.AllOf<global::LangSmith.DataType2?>? dataType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::LangSmith.DatasetCreate
{
Name = name,
Description = description,
CreatedAt = createdAt,
DataType = dataType,
InputsSchemaDefinition = inputsSchemaDefinition,
OutputsSchemaDefinition = outputsSchemaDefinition,
ExternallyManaged = externallyManaged,
Id = id,
Extra = extra,
DataType = dataType,
};

return await CreateDatasetApiV1DatasetsPostAsync(
Expand Down
14 changes: 7 additions & 7 deletions src/libs/LangSmith/Generated/LangSmith.Models.Dataset.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ public sealed partial class Dataset
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
public global::System.DateTime CreatedAt { get; set; }

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand All @@ -58,6 +51,13 @@ public sealed partial class Dataset
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<bool?, object>? ExternallyManaged { get; set; } = false;

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand Down
14 changes: 7 additions & 7 deletions src/libs/LangSmith/Generated/LangSmith.Models.DatasetCreate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ public sealed partial class DatasetCreate
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
public global::System.DateTime CreatedAt { get; set; }

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -72,6 +65,13 @@ public sealed partial class DatasetCreate
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DatasetCreateExtra, object>? Extra { get; set; }

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::LangSmith.DataType2?>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ public sealed partial class DatasetPublicSchema
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
public global::System.DateTime CreatedAt { get; set; }

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand All @@ -60,6 +53,13 @@ public sealed partial class DatasetPublicSchema
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<bool?, object>? ExternallyManaged { get; set; } = false;

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ public sealed partial class DatasetSchemaForUpdate
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
public global::System.DateTime CreatedAt { get; set; }

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

/// <summary>
///
/// </summary>
Expand All @@ -58,6 +51,13 @@ public sealed partial class DatasetSchemaForUpdate
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<bool?, object>? ExternallyManaged { get; set; } = false;

/// <summary>
/// Default Value: kv
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<global::LangSmith.DataType2?, object>? DataType { get; set; } = global::LangSmith.DataType2.Kv;

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

/// <summary>
Expand Down Expand Up @@ -107,6 +111,7 @@ public static string ToValueString(this OrgFeatureFlags value)
OrgFeatureFlags.ConsolidatePlaygroundComparative => "consolidate_playground_comparative",
OrgFeatureFlags.ResourceTags => "resource_tags",
OrgFeatureFlags.LanggraphDeployOwnCloudEnabled => "langgraph_deploy_own_cloud_enabled",
OrgFeatureFlags.CustomChartsEnabled => "custom_charts_enabled",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand Down Expand Up @@ -134,6 +139,7 @@ public static string ToValueString(this OrgFeatureFlags value)
"consolidate_playground_comparative" => OrgFeatureFlags.ConsolidatePlaygroundComparative,
"resource_tags" => OrgFeatureFlags.ResourceTags,
"langgraph_deploy_own_cloud_enabled" => OrgFeatureFlags.LanggraphDeployOwnCloudEnabled,
"custom_charts_enabled" => OrgFeatureFlags.CustomChartsEnabled,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public sealed partial class OrganizationConfig
[global::System.Text.Json.Serialization.JsonPropertyName("max_langgraph_cloud_deployments")]
public int MaxLanggraphCloudDeployments { get; set; } = 1;

/// <summary>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("collated_threads_view")]
public bool CollatedThreadsView { get; set; } = false;

/// <summary>
///
/// </summary>
Expand Down
45 changes: 25 additions & 20 deletions src/libs/LangSmith/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10812,11 +10812,6 @@ components:
title: Created At
type: string
format: date-time
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
inputs_schema_definition:
title: Inputs Schema Definition
anyOf:
Expand All @@ -10833,6 +10828,11 @@ components:
- type: boolean
- type: 'null'
default: false
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
id:
title: Id
type: string
Expand Down Expand Up @@ -10876,11 +10876,6 @@ components:
title: Created At
type: string
format: date-time
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
inputs_schema_definition:
title: Inputs Schema Definition
anyOf:
Expand Down Expand Up @@ -10908,6 +10903,10 @@ components:
anyOf:
- type: object
- type: 'null'
data_type:
allOf:
- $ref: '#/components/schemas/DataType'
default: kv
description: Create class for Dataset.
DatasetDiffInfo:
title: DatasetDiffInfo
Expand Down Expand Up @@ -10990,11 +10989,6 @@ components:
title: Created At
type: string
format: date-time
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
inputs_schema_definition:
title: Inputs Schema Definition
anyOf:
Expand All @@ -11011,6 +11005,11 @@ components:
- type: boolean
- type: 'null'
default: false
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
id:
title: Id
type: string
Expand Down Expand Up @@ -11039,11 +11038,6 @@ components:
title: Created At
type: string
format: date-time
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
inputs_schema_definition:
title: Inputs Schema Definition
anyOf:
Expand All @@ -11060,6 +11054,11 @@ components:
- type: boolean
- type: 'null'
default: false
data_type:
anyOf:
- $ref: '#/components/schemas/DataType'
- type: 'null'
default: kv
id:
title: Id
type: string
Expand Down Expand Up @@ -13053,6 +13052,7 @@ components:
- consolidate_playground_comparative
- resource_tags
- langgraph_deploy_own_cloud_enabled
- custom_charts_enabled
type: string
description: 'Feature flags for orgs (cannot subclass an enum and may diverge from tenant flags, so maintained separately).'
OrgIdentityPatch:
Expand Down Expand Up @@ -13413,6 +13413,10 @@ components:
title: Max Langgraph Cloud Deployments
type: integer
default: 1
collated_threads_view:
title: Collated Threads View
type: boolean
default: false
flags:
title: Flags
type: object
Expand All @@ -13436,6 +13440,7 @@ components:
consolidate_playground_comparative: false
resource_tags: false
langgraph_deploy_own_cloud_enabled: false
custom_charts_enabled: false
description: Organization level configuration. May include any field that exists in tenant config and additional fields.
OrganizationDashboardColorScheme:
title: OrganizationDashboardColorScheme
Expand Down