Skip to content

Commit

Permalink
chore: sdk-node rename handleCustomerAuth (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith authored Dec 11, 2024
1 parent 5518ab2 commit 7c84c68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const masked = () => {

export {
onStatusChangeInput,
handleCustomerAuthInput,
handleCustomAuthInput,
ContextInput,
} from "./types";

Expand Down
10 changes: 6 additions & 4 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 @@ -43,20 +44,21 @@ export const onStatusChangeInput = z.object({
});

/**
* Schema for handleCustomerAuth functions
* Schema for handleCustomAuth 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 7c84c68

Please sign in to comment.