New:Socket for Asana Is Now Available.Learn more
Sign In

@opencode-ai/protocol

Package Overview
Dependencies
Maintainers
2
Versions
1268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/protocol - npm Package Compare versions

Comparing version
0.0.0-beta-18219
to
0.0.0-beta-18230
+10
-1
dist/groups/credential.d.ts

@@ -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-beta-18219",
"version": "0.0.0-beta-18230",
"type": "module",

@@ -35,3 +35,3 @@ "license": "MIT",

"dependencies": {
"@opencode-ai/schema": "0.0.0-beta-18219",
"@opencode-ai/schema": "0.0.0-beta-18230",
"effect": "4.0.0-rc.111"

@@ -38,0 +38,0 @@ },

Sorry, the diff of this file is too big to display