Skip to content

Commit

Permalink
feat: Add HandleCustomerAuthInput type for .NET (#275)
Browse files Browse the repository at this point in the history
Resolves #262
  • Loading branch information
johnjcsmith authored Dec 10, 2024
1 parent c504732 commit 778f685
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sdk-dotnet/src/Inferable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ public class Links
}

/// <summary>
/// Object type that will be returned to a Run's OnStatusChange Function.
/// Input object for onStatusChange functions
/// Generic type T is the type of the result the run's (resultSchema)
/// https://docs.inferable.ai/pages/runs#onstatuschange
/// </summary>
public struct OnStatusChangeInput<T>
{
Expand All @@ -29,6 +30,16 @@ public struct OnStatusChangeInput<T>
public Dictionary<string, string> Metadata { get; set; }
}

/// <summary>
/// Input object for handleCustomerAuth functions
/// https://docs.inferable.ai/pages/auth#handlecustomerauth
/// </summary>
public struct HandleCustomerAuthInput<T>
{
[JsonPropertyName("token")]
public string Token { get; set; }
}

public class InferableOptions
{
public string? BaseUrl { get; set; }
Expand Down

0 comments on commit 778f685

Please sign in to comment.