From 8fc0b726c2d6c36d7d6d53b71553f88395f29229 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Tue, 4 Jun 2024 15:20:32 -0700 Subject: [PATCH] fix(client): add webhookUrl to subscribe options (#67) * fix(client): add webhookUrl to subscribe options * chore(client): bump version for release --- libs/client/package.json | 2 +- libs/client/src/function.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/client/package.json b/libs/client/package.json index 4e0e814..cc266f1 100644 --- a/libs/client/package.json +++ b/libs/client/package.json @@ -1,7 +1,7 @@ { "name": "@fal-ai/serverless-client", "description": "The fal serverless JS/TS client", - "version": "0.10.2", + "version": "0.10.3", "license": "MIT", "repository": { "type": "git", diff --git a/libs/client/src/function.ts b/libs/client/src/function.ts index 51ee3fe..434ae9b 100644 --- a/libs/client/src/function.ts +++ b/libs/client/src/function.ts @@ -187,6 +187,12 @@ type QueueSubscribeOptions = { * Defaults to `false`. */ logs?: boolean; + + /** + * The URL to send a webhook notification to when the request is completed. + * @see WebHookResponse + */ + webhookUrl?: string; }; /**