From c6a93cf245feb822b86a6ddeff6730204cae30ae Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 3 Oct 2025 08:36:14 -0700 Subject: [PATCH] sdk/client: update --- packages/client/package-lock.json | 8 ++++---- packages/client/package.json | 2 +- sdk/package-lock.json | 4 ++-- sdk/package.json | 2 +- sdk/types/package-lock.json | 4 ++-- sdk/types/package.json | 2 +- sdk/types/scrypted_python/scrypted_sdk/types.py | 14 +++++++------- sdk/types/src/types.input.ts | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/client/package-lock.json b/packages/client/package-lock.json index 22f82472f..4866d8220 100644 --- a/packages/client/package-lock.json +++ b/packages/client/package-lock.json @@ -21,7 +21,7 @@ "typescript": "^5.8.3" }, "peerDependencies": { - "@scrypted/types": "^0.5.44" + "@scrypted/types": "^0.5.45" } }, "node_modules/@cspotcode/source-map-support": { @@ -104,9 +104,9 @@ } }, "node_modules/@scrypted/types": { - "version": "0.5.44", - "resolved": "https://registry.npmjs.org/@scrypted/types/-/types-0.5.44.tgz", - "integrity": "sha512-4NL5AWyPZWryp6oDT5/AGXUb1+vRa0hmpJZ9Ryy+Z8QaGwLUWs2WaVhmSi8QNAj4URbucpwMfL5XUaE2m35z8Q==", + "version": "0.5.45", + "resolved": "https://registry.npmjs.org/@scrypted/types/-/types-0.5.45.tgz", + "integrity": "sha512-ysySpWkGUrUpNj0BoTZpyn2HeVCyN0kfsQ2qyUoegdj7O8Z4VWROQa1mSrrPAAftM8zhTHrgYw8RcvMsfh0BTQ==", "license": "ISC", "peer": true, "dependencies": { diff --git a/packages/client/package.json b/packages/client/package.json index 86bc066c2..c6bd3fbd9 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -19,7 +19,7 @@ "typescript": "^5.8.3" }, "peerDependencies": { - "@scrypted/types": "^0.5.44" + "@scrypted/types": "^0.5.45" }, "dependencies": { "engine.io-client": "^6.6.3", diff --git a/sdk/package-lock.json b/sdk/package-lock.json index 6eada1aa9..774d5da1b 100644 --- a/sdk/package-lock.json +++ b/sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/sdk", - "version": "0.5.47", + "version": "0.5.48", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/sdk", - "version": "0.5.47", + "version": "0.5.48", "license": "ISC", "dependencies": { "@babel/preset-typescript": "^7.27.1", diff --git a/sdk/package.json b/sdk/package.json index 7c980b483..a5c41f293 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/sdk", - "version": "0.5.47", + "version": "0.5.48", "description": "", "main": "dist/src/index.js", "exports": { diff --git a/sdk/types/package-lock.json b/sdk/types/package-lock.json index dc5e2274d..428c44c25 100644 --- a/sdk/types/package-lock.json +++ b/sdk/types/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/types", - "version": "0.5.44", + "version": "0.5.45", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/types", - "version": "0.5.44", + "version": "0.5.45", "license": "ISC", "dependencies": { "openai": "^6.1.0" diff --git a/sdk/types/package.json b/sdk/types/package.json index fefb5a877..b2fb39d2a 100644 --- a/sdk/types/package.json +++ b/sdk/types/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/types", - "version": "0.5.44", + "version": "0.5.45", "description": "", "main": "dist/index.js", "author": "", diff --git a/sdk/types/scrypted_python/scrypted_sdk/types.py b/sdk/types/scrypted_python/scrypted_sdk/types.py index 02980069c..1249cbb4c 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/types.py +++ b/sdk/types/scrypted_python/scrypted_sdk/types.py @@ -449,12 +449,6 @@ class VideoStreamOptions(TypedDict): quality: float width: float -class ChatCompletionTool(TypedDict): - """A function tool that can be used to generate a response.""" - - pass - - class ContentBlock(TypedDict): pass @@ -566,6 +560,12 @@ class ChatCompletionCreateParamsNonStreaming(TypedDict): verbosity: Any | Any | Any # Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are , , and . web_search_options: WebSearchOptions # This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). +class ChatCompletionFunctionTool(TypedDict): + """A function tool that can be used to generate a response.""" + + function: FunctionDefinition + type: Any # The type of the tool. Currently, only is supported. + class ClusterForkInterfaceOptions(TypedDict): clusterWorkerId: str # The id of the cluster worker id that will execute this fork. @@ -1093,7 +1093,7 @@ class TamperState(TypedDict): pass -TYPES_VERSION = "0.5.44" +TYPES_VERSION = "0.5.45" class AirPurifier: diff --git a/sdk/types/src/types.input.ts b/sdk/types/src/types.input.ts index befa99ca0..9df78e1a5 100644 --- a/sdk/types/src/types.input.ts +++ b/sdk/types/src/types.input.ts @@ -1,10 +1,10 @@ import type { ChildProcess as NodeChildProcess } from 'child_process'; import type { Socket as NodeNetSocket } from 'net'; import type { ChatCompletionStreamParams } from 'openai/lib/ChatCompletionStream'; -import type { ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionFunctionTool, ChatCompletionMessageParam, ChatCompletion as ChatCompletionResponse, ChatCompletionTool } from 'openai/resources'; +import type { ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionFunctionTool, ChatCompletionMessageParam, ChatCompletion as ChatCompletionResponse } from 'openai/resources'; import type { Worker as NodeWorker } from 'worker_threads'; import { CallToolResult } from './mcp'; -export type { ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionMessageParam, ChatCompletion as ChatCompletionResponse, ChatCompletionTool } from 'openai/resources'; +export type { ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionFunctionTool, ChatCompletionMessageParam, ChatCompletion as ChatCompletionResponse } from 'openai/resources'; export type * from './mcp'; export type ScryptedNativeId = string | undefined;