@opencode-ai/protocol
Advanced tools
@@ -212,3 +212,10 @@ import { Integration } from "@opencode-ai/schema/integration"; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.connect.key", "POST", "/api/integration/:integrationID/connect/key", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
| readonly directory: Schema.optional<Schema.String>; | ||
| readonly workspace: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| readonly url: Schema.String; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.connect.key", "POST", "/api/integration/:integrationID/connect/key", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -215,0 +222,0 @@ }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ |
@@ -30,2 +30,14 @@ import { Integration } from "@opencode-ai/schema/integration"; | ||
| }))) | ||
| .add(HttpApiEndpoint.post("integration.wellknown.add", "/api/experimental/integration/wellknown", { | ||
| query: LocationQuery, | ||
| payload: Schema.Struct({ url: Schema.String }), | ||
| success: HttpApiSchema.NoContent, | ||
| error: InvalidRequestError, | ||
| }) | ||
| .annotateMerge(locationQueryOpenApi) | ||
| .annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.experimental.integration.wellknown.add", | ||
| summary: "Add wellknown integration", | ||
| description: "Discover and persist an experimental wellknown integration source.", | ||
| }))) | ||
| .add(HttpApiEndpoint.post("integration.connect.key", "/api/integration/:integrationID/connect/key", { | ||
@@ -32,0 +44,0 @@ params: { integrationID: Integration.ID }, |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-next-15632", | ||
| "version": "0.0.0-next-15636", | ||
| "type": "module", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-15632", | ||
| "@opencode-ai/schema": "0.0.0-next-15636", | ||
| "effect": "4.0.0-beta.83" | ||
@@ -32,0 +32,0 @@ }, |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1870110
0.06%30188
0.07%+ Added
- Removed