@opencode-ai/protocol
Advanced tools
@@ -14,3 +14,3 @@ import { Schema } from "effect"; | ||
| readonly label: Schema.String; | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.remove", "DELETE", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.activate", "POST", "/api/credential/:credentialID/activate", Schema.toCodecStringTree<Schema.Struct<{ | ||
| credentialID: Schema.brand<Schema.String, "Credential.ID"> & { | ||
@@ -24,2 +24,11 @@ create: () => string & import("effect/Brand").Brand<"Credential.ID">; | ||
| }>>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.remove", "DELETE", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| credentialID: Schema.brand<Schema.String, "Credential.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Credential.ID">; | ||
| }; | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
| readonly directory: Schema.optional<Schema.String>; | ||
| readonly workspace: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>; |
@@ -19,2 +19,13 @@ import { Credential } from "@opencode-ai/schema/credential"; | ||
| .annotateMerge(OpenApi.annotations({ title: "credential" })) | ||
| .add(HttpApiEndpoint.post("credential.activate", "/api/credential/:credentialID/activate", { | ||
| params: { credentialID: Credential.ID }, | ||
| query: LocationQuery, | ||
| success: HttpApiSchema.NoContent, | ||
| }) | ||
| .annotateMerge(locationQueryOpenApi) | ||
| .annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.credential.activate", | ||
| summary: "Activate credential", | ||
| description: "Activate a stored integration credential.", | ||
| }))) | ||
| .add(HttpApiEndpoint.delete("credential.remove", "/api/credential/:credentialID", { | ||
@@ -21,0 +32,0 @@ params: { credentialID: Credential.ID }, |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-dev-18227", | ||
| "version": "0.0.0-dev-18229", | ||
| "type": "module", | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-dev-18227", | ||
| "@opencode-ai/schema": "0.0.0-dev-18229", | ||
| "effect": "4.0.0-rc.111" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is too big to display
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.
1979843
0.33%31955
0.34%+ Added
- Removed