diff --git a/sdk-go/inferable.go b/sdk-go/inferable.go index e6ca9e97..5b017190 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 {