From 57032570382dc3e4bd57ef63b4db18b7fe657781 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 11 Dec 2024 13:46:56 +1030 Subject: [PATCH] chore: sdk-node rename handleCustomerAuth --- sdk-node/src/types.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk-node/src/types.ts b/sdk-node/src/types.ts index 94194d8d..55a0a541 100644 --- a/sdk-node/src/types.ts +++ b/sdk-node/src/types.ts @@ -23,6 +23,7 @@ export type FunctionInput = /** * Schema for onStatusChange functions * + * @see {@link https://docs.inferable.ai/pages/runs#onstatuschange} * @example * ```ts * inferable.default.register({ @@ -45,18 +46,19 @@ export const onStatusChangeInput = z.object({ /** * Schema for handleCustomerAuth functions * + * @see {@link https://docs.inferable.ai/pages/custom-auth} * @example * ```ts * inferable.default.register({ - * name: "handleCustomerAuth", + * name: "handleCustomAuth", * schema: { - * input: handleCustomerAuthInput + * input: handleCustomAuthInput * }, * func: (_input) => {}, * }); * ``` */ -export const handleCustomerAuthInput = z.object({ +export const handleCustomAuthInput = z.object({ token: z.string(), });