From 58541dd114da944f4c277a5b339ae3b08056194f Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 10 Dec 2024 21:25:57 +1030 Subject: [PATCH 1/2] feat: Add Go HandleCustomerAuthInput type --- sdk-go/inferable.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk-go/inferable.go b/sdk-go/inferable.go index e6ca9e97..43828da4 100644 --- a/sdk-go/inferable.go +++ b/sdk-go/inferable.go @@ -65,7 +65,8 @@ type InferableOptions struct { MachineID string } -// Struct type that will be returned to a Run's OnStatusChange Function +// Input object for onStatusChange functions +// https://docs.inferable.ai/pages/runs#onstatuschange type OnStatusChangeInput struct { Status string `json:"status"` RunId string `json:"runId"` @@ -73,6 +74,12 @@ type OnStatusChangeInput struct { Metadata interface{} `json:"metadata"` } +// Input object for handleCustomerAuth functions +// https://docs.inferable.ai/pages/auth#handlecustomerauth +type HandleCustomerAuthInput struct { + Token string `json:"token"` +} + type runResult = OnStatusChangeInput type RunTemplate struct { From 05cf1f8a7e58efd56ed259ee72fe798913a25079 Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 10 Dec 2024 21:29:51 +1030 Subject: [PATCH 2/2] chore: Formatting --- sdk-go/inferable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-go/inferable.go b/sdk-go/inferable.go index 43828da4..5b017190 100644 --- a/sdk-go/inferable.go +++ b/sdk-go/inferable.go @@ -77,7 +77,7 @@ type OnStatusChangeInput struct { // Input object for handleCustomerAuth functions // https://docs.inferable.ai/pages/auth#handlecustomerauth type HandleCustomerAuthInput struct { - Token string `json:"token"` + Token string `json:"token"` } type runResult = OnStatusChangeInput