Skip to content

Commit

Permalink
chore: sdk-node rename handleCustomerAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 11, 2024
1 parent 347cfae commit 5703257
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdk-node/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type FunctionInput<T extends z.ZodTypeAny | JsonSchemaInput> =
/**
* Schema for onStatusChange functions
*
* @see {@link https://docs.inferable.ai/pages/runs#onstatuschange}
* @example
* ```ts
* inferable.default.register({
Expand All @@ -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(),
});

Expand Down

0 comments on commit 5703257

Please sign in to comment.