From 778f685ae68d49016b2affcc2a2adcc12e4a3350 Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 10 Dec 2024 21:38:40 +1030 Subject: [PATCH] feat: Add HandleCustomerAuthInput type for .NET (#275) Resolves #262 --- sdk-dotnet/src/Inferable.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sdk-dotnet/src/Inferable.cs b/sdk-dotnet/src/Inferable.cs index 62f7661e..129c3333 100644 --- a/sdk-dotnet/src/Inferable.cs +++ b/sdk-dotnet/src/Inferable.cs @@ -11,8 +11,9 @@ public class Links } /// - /// 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 /// public struct OnStatusChangeInput { @@ -29,6 +30,16 @@ public struct OnStatusChangeInput public Dictionary Metadata { get; set; } } + /// + /// Input object for handleCustomerAuth functions + /// https://docs.inferable.ai/pages/auth#handlecustomerauth + /// + public struct HandleCustomerAuthInput + { + [JsonPropertyName("token")] + public string Token { get; set; } + } + public class InferableOptions { public string? BaseUrl { get; set; }