GHHG10's picture
download
raw
752 Bytes
import { Credential } from "@opencode-ai/core/credential"
import { Effect } from "effect"
import { HttpApiBuilder, HttpApiSchema } from "effect/unstable/httpapi"
import { Api } from "../api"
export const CredentialHandler = HttpApiBuilder.group(Api, "server.credential", (handlers) =>
handlers
.handle(
"credential.update",
Effect.fn(function* (ctx) {
yield* (yield* Credential.Service).update(ctx.params.credentialID, { label: ctx.payload.label })
return HttpApiSchema.NoContent.make()
}),
)
.handle(
"credential.remove",
Effect.fn(function* (ctx) {
yield* (yield* Credential.Service).remove(ctx.params.credentialID)
return HttpApiSchema.NoContent.make()
}),
),
)

Xet Storage Details

Size:
752 Bytes
·
Xet hash:
42ab68a70d382fc0ddaebc836257647ad5c2cb3bdc63472c1859117f3eb8f67d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.