summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src
diff options
context:
space:
mode:
authoropencode <[email protected]>2025-09-18 20:51:03 +0000
committeropencode <[email protected]>2025-09-18 20:51:03 +0000
commit5a7a7257873b1ade284dc80086ce1f132644a7e4 (patch)
tree46406a4c354e4d6b35da826db7567a25791bfdf4 /packages/sdk/js/src
parentf277512938dc926b111ffe16f10e332a276e017e (diff)
downloadopencode-5a7a7257873b1ade284dc80086ce1f132644a7e4.tar.gz
opencode-5a7a7257873b1ade284dc80086ce1f132644a7e4.zip
release: v0.10.0
Diffstat (limited to 'packages/sdk/js/src')
-rw-r--r--packages/sdk/js/src/gen/sdk.gen.ts17
-rw-r--r--packages/sdk/js/src/gen/types.gen.ts53
2 files changed, 2 insertions, 68 deletions
diff --git a/packages/sdk/js/src/gen/sdk.gen.ts b/packages/sdk/js/src/gen/sdk.gen.ts
index 9d5ee2e80..b6dfcb8f6 100644
--- a/packages/sdk/js/src/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/gen/sdk.gen.ts
@@ -8,9 +8,6 @@ import type {
ProjectCurrentResponses,
ConfigGetData,
ConfigGetResponses,
- ToolRegisterData,
- ToolRegisterResponses,
- ToolRegisterErrors,
ToolIdsData,
ToolIdsResponses,
ToolIdsErrors,
@@ -177,20 +174,6 @@ class Config extends _HeyApiClient {
class Tool extends _HeyApiClient {
/**
- * Register a new HTTP callback tool
- */
- public register<ThrowOnError extends boolean = false>(options?: Options<ToolRegisterData, ThrowOnError>) {
- return (options?.client ?? this._client).post<ToolRegisterResponses, ToolRegisterErrors, ThrowOnError>({
- url: "/experimental/tool/register",
- ...options,
- headers: {
- "Content-Type": "application/json",
- ...options?.headers,
- },
- })
- }
-
- /**
* List all tool IDs (including built-in and dynamically registered)
*/
public ids<ThrowOnError extends boolean = false>(options?: Options<ToolIdsData, ThrowOnError>) {
diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts
index e0cf7cdfd..8cfd14b8c 100644
--- a/packages/sdk/js/src/gen/types.gen.ts
+++ b/packages/sdk/js/src/gen/types.gen.ts
@@ -504,36 +504,14 @@ export type Config = {
}
}
+export type ToolIds = Array<string>
+
export type _Error = {
data: {
[key: string]: unknown
}
}
-export type HttpParamSpec = {
- type: "string" | "number" | "boolean" | "array"
- description?: string
- optional?: boolean
- items?: "string" | "number" | "boolean"
-}
-
-export type HttpToolRegistration = {
- id: string
- description: string
- parameters: {
- type: "object"
- properties: {
- [key: string]: HttpParamSpec
- }
- }
- callbackUrl: string
- headers?: {
- [key: string]: string
- }
-}
-
-export type ToolIds = Array<string>
-
export type ToolListItem = {
id: string
description: string
@@ -1222,33 +1200,6 @@ export type ConfigGetResponses = {
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses]
-export type ToolRegisterData = {
- body?: HttpToolRegistration
- path?: never
- query?: {
- directory?: string
- }
- url: "/experimental/tool/register"
-}
-
-export type ToolRegisterErrors = {
- /**
- * Bad request
- */
- 400: _Error
-}
-
-export type ToolRegisterError = ToolRegisterErrors[keyof ToolRegisterErrors]
-
-export type ToolRegisterResponses = {
- /**
- * Tool registered successfully
- */
- 200: boolean
-}
-
-export type ToolRegisterResponse = ToolRegisterResponses[keyof ToolRegisterResponses]
-
export type ToolIdsData = {
body?: never
path?: never